Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Help with Load * INLINE and where exist

I need some help with this script why I got this error message after load the script:

Garbage after statement

EmplHist:
LOAD EMPL_ID,
  FULL_NAME,
  Status,
  HOME_ORG_ID,
  TITLE_DESC,
  GLC
 
RESIDENT TempEmployeeHist
WHERE EXISTS (DirOrgList, HOME_ORG_ID)

DROP TABLE TempEmployeeHist

---------------------------------------------

// First Tab:

//

// List of ORG ID containing Direct Billable Rate

//

DirOrgList:

LOAD * INLINE [

DirectOrg

'1.ABP.HLT.24'

'1.ABP.HLT.57'

'1.ABP.HSV.25'

'1.ABP.HSV.58'

];

// Second Tab

TempEmployeeHist:
LOAD   EMPL_ID,
    LAST_NAME & ', '& FIRST_NAME as [FULL_NAME],
    S_EMPL_STATUS_CD as Status;
   
SQL SELECT *
FROM $(vSchemaOwner).EMPL;

LEFT JOIN (TempEmployeeHist)
LOAD   EMPL_ID,
    ORG_ID as [HOME_ORG_ID],
    TITLE_DESC,
    GENL_LAB_CAT_CD as GLC,
    DATE(END_DT);

SQL SELECT *
FROM $(vSchemaOwner).EMPL_LAB_INFO;


//***********************
EmplHist:
LOAD EMPL_ID,
  FULL_NAME,
  Status,
  HOME_ORG_ID,
  TITLE_DESC,
  GLC
 
RESIDENT TempEmployeeHist
WHERE EXISTS  (DirOrgList, HOME_ORG_ID)

DROP TABLE TempEmployeeHist;

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Don't you miss a semicolon (' ; ') before the last drop table?

edit:

And I think it should be the field name DirectOrg instead of table name DirOrgList in the where exists clause.

View solution in original post

3 Replies
swuehl
MVP
MVP

Don't you miss a semicolon (' ; ') before the last drop table?

edit:

And I think it should be the field name DirectOrg instead of table name DirOrgList in the where exists clause.

Anonymous
Not applicable
Author

Thank you It's work now

Anonymous
Not applicable
Author

Thanks Lot !!