Hi Guys,
Apologies for opening multiple threads on this issue.
This isn't actually SQL passthru, I'm attempting to use SQL to join FOCUS hold files instead of having the use FOCUS.
With trace flags on, it's actually interesting to see how FOCUS implements the SQL engine on hold files - but I digress.
Here is the master file for RTWCURRENT - all the other files i'm joining have the same definition
FILENAME=RTWCURRENT, SUFFIX=FOC , $
SEGMENT=SEG01, SEGTYPE=S1, $
FIELDNAME=FOCLIST , ALIAS=E01, USAGE=I5, $
FIELDNAME=CLAIM_ID, ALIAS=E02, USAGE=A11, $
FIELDNAME=SEGMENT_CD, ALIAS=E03, USAGE=A3,
MISSING=ON, $
FIELDNAME=SECTION_CD, ALIAS=E04, USAGE=A4,
MISSING=ON, $
FIELDNAME=OFFICERNAME, ALIAS=E05, USAGE=A42,
MISSING=ON, $
FIELDNAME=WORKERNAME, ALIAS=E06, USAGE=A41,
MISSING=ON, $
FIELDNAME=EMPLOYERSIZE, ALIAS=E07, USAGE=A30,
MISSING=ON, $
FIELDNAME=EMPLOYERNAME, ALIAS=E08, USAGE=A80,
MISSING=ON, $
FIELDNAME=MEDCERTTYPE, ALIAS=E09, USAGE=A36,
MISSING=ON, $
FIELDNAME=AGENTRECEIVEDDATE, ALIAS=E10, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=CLAIMSTATUSDESC, ALIAS=E11, USAGE=A100,
MISSING=ON, $
FIELDNAME=FIRSTCEASEDDT, ALIAS=E12, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=FIRSTRESUMEDDT, ALIAS=E13, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=LASTCEASEDDT, ALIAS=E14, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=LASTRESUMEDDT, ALIAS=E15, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=MEASUREDATE, ALIAS=E16, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=ACTUALMEASUREDATE, ALIAS=E17, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=PUBLICHOLIDAY, ALIAS=E18, USAGE=A1,
MISSING=ON, $
FIELDNAME=DAYOFWEEK, ALIAS=E19, USAGE=A3,
MISSING=ON, $
FIELDNAME=DEATH_DT, ALIAS=E20, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=DEATH_VERIFIED_FL, ALIAS=E21, USAGE=A1,
MISSING=ON, $
FIELDNAME=DERIVED_DAYS, ALIAS=E22, USAGE=D20.2,
MISSING=ON, $
FIELDNAME=FULLWEEKLYSTATUS, ALIAS=E23, USAGE=A28,
MISSING=ON, $
FIELDNAME=PARTIALWEEKLYSTAT, ALIAS=E24, USAGE=A31,
MISSING=ON, $
FIELDNAME=RTWSTATUS, ALIAS=E25, USAGE=A19,
MISSING=ON, $
FIELDNAME=RTWSTSATMEASURE, ALIAS=E26, USAGE=A1,
MISSING=ON, $
FIELDNAME=RTWATMEASURE, ALIAS=E27, USAGE=YYMD,
MISSING=ON, $
FIELDNAME=TERMINATIONFLAG, ALIAS=E28, USAGE=A20,
MISSING=ON, $
FIELDNAME=RTW, ALIAS=E29, USAGE=D20.2,
MISSING=ON, $
FIELDNAME=NUMERATOR, ALIAS=E30, USAGE=D20.2,
MISSING=ON, $
FIELDNAME=RTWREASON, ALIAS=E31, USAGE=A37,
MISSING=ON, $
FIELDNAME=RTWREASONVWA, ALIAS=E32, USAGE=A59,
MISSING=ON, $
Thanks for your responses, and again apologies for spamming with multiple threads - I will behave in future!
Cheers,
Josh
Focus 7