Building on Tony's example:
TABLE FILE RACFGRP
SUM MAX.RACF1
MAX.RACF2
MAX.RACF3
BY USER
ON TABLE HOLD FORMAT ALPHA
END
DEFINE FILE HOLD
DRACF1/A1=IF RACF1 EQ ' ' THEN RACF2 ELSE RACF1;
DRACF2/A1=IF RACF2 EQ RACF1 THEN RACF3 ELSE IF RACF2 EQ ' ' THEN RACF3 ELSE RACF2;
DRACF3/A1=IF RACF3 EQ RACF2 THEN ' ' ELSE IF RACF3 EQ ' ' THEN RACF3;
END
TABLE FILE HOLD
PRINT DRACF1 AS RACF1
DRACF2 AS RACF2
DRACF3 AS RACF3
BY USER
END
You might have to play with that 3rd DEFINE if one user had all 3.
Also, your master needs a little work:
FILENAME=RACFGRP,SUFFIX=FIX
SEGNAME=ROOT
FIELDNAME=USER, ALIAS=user, FORMAT=A5,ACTUAL=A5,$
FIELDNAME=blk, ALIAS=b1, FORMAT=A1,ACTUAL=A1,$
FIELDNAME=RACF1, ALIAS=rac1, FORMAT=A1,ACTUAL=A1,$
FIELDNAME=RACF2, ALIAS=rac2, FORMAT=A1,ACTUAL=A1,$
FIELDNAME=RACF3, ALIAS=rac3, FORMAT=A1,ACTUAL=A1,$
Don't forget the actuals. There was also a comma missing on the first line and some field names were in lower case.
Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google