Hello
I have to associate the owner of a RACF-Profile to a given Dataset list from an Input file. The current approach is to create a two-pass Carla that first creates a Carla script doing the resolution of the associated profile in RACF.
Assuming I have a member containing a random list of dataset names like this:
SYS4.VTS.USS.SHARED.MSHARED.D201112.T234512
AABBC.FVD.ZO9A15.VTS.FILEU.G0110V00
AABBC.FVD.ML1901.VTS.FILEU.G1980V00
IBM.SAVE.ZFS1.ZM24G1.D220205.VTS.FILEV
AABBC.FVD.SY9002.VTS.FILEU.G3084V00
AABBC.FVD.AJKB15.VTS.FILEU.G0110V00
AABBC.Y05.UCAT.GROUP.VTS.FILEV.G3043V00
IBM.SAVE.SMPE.Z24.D220205.VTS.FILEV
IBM.SAVE.AJK4D1.D220205.VTS.FILEV
IBM.SAVE.SMPE.Z24.D220205.VTS.FILEV
IBM.SAVE.ZFS1.ZP24G1.D220205.VTS.FILEV
IBM.SAVE.SMPE.Z24.D220205.VTS.FILEV
I then plan to run the following Carla:
ALLOC TYPE=RACF PRIMARY ACTIVE
DEFTYPE TYPE=#TAPELST
ALLOC TYPE=#TAPELST DD=TAPEDSN
DEF TYPE=#TAPELST #TAPE AS WORD(RECORD,1)
newlist retain required nodup nopage DD=SYSPRINT
sortlist ,
" NEWLIST RETAIN REQUIRED NODUP NOPAGE " / ,
" s s=base c=dataset bestmatch=" #TAPE / ,
" sortlist profile(0) owner " #TAPE
I would then expect a list like:
AABC.FVD.** OWNR1 AABBC.FVD.ZO9A15.VTS.FILEU.G0110V00
After executing the second script that has been created for each of the dataset in the input file.
Would that be a feasible approach to tackle this or do you have an better (performing) suggestion?
regards
marco
------------------------------
Marco Egli
------------------------------