Hi Jim,
One of our internal people reviewed this topic and here is his input.
DBA on a DKU segment works fine; see the bottom of this master.
FILENAME=EMPLOYEE, SUFFIX=FOC
SEGNAME=EMPINFO, SEGTYPE=S1
FIELDNAME=EMP_ID, ALIAS=EID, FORMAT=A9, $
FIELDNAME=LAST_NAME, ALIAS=LN, FORMAT=A15, $
FIELDNAME=FIRST_NAME, ALIAS=FN, FORMAT=A10,$
FIELDNAME=HIRE_DATE, ALIAS=HDT, FORMAT=I6YMD, $
FIELDNAME=DEPARTMENT, ALIAS=DPT, FORMAT=A10, $
FIELDNAME=CURR_SAL, ALIAS=CSAL, FORMAT=D12.2M, $
FIELDNAME=CURR_JOBCODE, ALIAS=CJC, FORMAT=A3, $
FIELDNAME=ED_HRS, ALIAS=OJT, FORMAT=F6.2, $
SEGNAME=FUNDTRAN, SEGTYPE=U, PARENT=EMPINFO
FIELDNAME=BANK_NAME, ALIAS=BN, FORMAT=A20, $
FIELDNAME=BANK_CODE, ALIAS=BC, FORMAT=I6S, $
FIELDNAME=BANK_ACCT, ALIAS=BA, FORMAT=I9S, $
FIELDNAME=EFFECT_DATE, ALIAS=EDATE, FORMAT=I6YMD, $
SEGNAME=PAYINFO, SEGTYPE=SH1, PARENT=EMPINFO
FIELDNAME=DAT_INC, ALIAS=DI, FORMAT=I6YMD, $
FIELDNAME=PCT_INC, ALIAS=PI, FORMAT=F6.2, $
FIELDNAME=SALARY, ALIAS=SAL, FORMAT=D12.2M, $
FIELDNAME=JOBCODE, ALIAS=JBC, FORMAT=A3, $
SEGNAME=ADDRESS, SEGTYPE=S1, PARENT=EMPINFO
FIELDNAME=TYPE, ALIAS=AT, FORMAT=A4, $
FIELDNAME=ADDRESS_LN1, ALIAS=LN1, FORMAT=A20, $
FIELDNAME=ADDRESS_LN2, ALIAS=LN2, FORMAT=A20, $
FIELDNAME=ADDRESS_LN3, ALIAS=LN3, FORMAT=A20, $
FIELDNAME=ACCTNUMBER, ALIAS=ANO, FORMAT=I9L, $
SEGNAME=SALINFO, SEGTYPE=SH1, PARENT=EMPINFO
FIELDNAME=PAY_DATE, ALIAS=PD, FORMAT=I6YMD, $
FIELDNAME=GROSS, ALIAS=MO_PAY, FORMAT=D12.2M, $
SEGNAME=DEDUCT, SEGTYPE=S1, PARENT=SALINFO
FIELDNAME=DED_CODE, ALIAS=DC, FORMAT=A4, $
FIELDNAME=DED_AMT, ALIAS=DA, FORMAT=D12.2M, $
SEGNAME=JOBSEG, SEGTYPE=KU ,PARENT=PAYINFO, CRFILE=JOBFILE, CRKEY=JOBCODE,$
SEGNAME=SECSEG, SEGTYPE=KLU,PARENT=JOBSEG, CRFILE=JOBFILE,$
SEGNAME=SKILLSEG,SEGTYPE=KL, PARENT=JOBSEG, CRFILE=JOBFILE,$
SEGNAME=ATTNDSEG,SEGTYPE=DKU, PARENT=EMPINFO, CRFILE=EDUCFILE, <========= this works!
CRKEY=EMP_ID,$
SEGNAME=COURSEG, SEGTYPE=KLU,PARENT=ATTNDSEG,CRFILE=EDUCFILE,$
END
DBA=BOSS,$
USER=BILL ,ACCESS=R ,RESTRICT=SEGMENT ,NAME=ATTNDSEG,$ <==== use BILL to test
TABLE FILE EMPLOYEE
PRINT LN
COURSE_CODE
DATE_ATTEND
END
Hope this helps.
Cheers,
Kerry
Kerry Zhan
Focal Point Moderator
Information Builders, Inc.