I am a beginner with JCL, and i have the JCL below to define the ALIAS to a new TSO ID....
//JOBNAME JOB CLASS=S,MSGCLASS=X,NOTIFY=USERID
/*JOBPARM SYSAFF=LPAR
//TSOBATCH EXEC PGM=IKJEFT01,DYNAMNBR=30,TIME=1440
//SYSTSPRT DD DSN=USERID.ALIAS.TXT,
// DISP=(NEW,CATLG),DCB=(RECFM=FB,LRECL=133)
//*YSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
DEFINE ALIAS(NAME('USERID') RELATE('CATALOG'))
/*JOBPARM SYSAFF=LPAR
//TSOBATCH EXEC PGM=IKJEFT01,DYNAMNBR=30,TIME=1440
//SYSTSPRT DD DSN=USERID.ALIAS.TXT,
// DISP=(NEW,CATLG),DCB=(RECFM=FB,LRECL=133)
//*YSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
DEFINE ALIAS(NAME('USERID') RELATE('CATALOG'))
But in this case, I would like to know how this JCL can read a dataset with a lot of IDs, to define the ALIAS to all those IDs.
This dataset with IDs organized as follows:
'USERID1',
'USERID2',
'USERID3',
'USERID4'
'USERID2',
'USERID3',
'USERID4'
I saw another JCL with this same structure, but I couldn't copy the content for business restrictions.
Somebody could you please help me with this question?
Thank you so much for all attention.
Edited to use code tags