i have a back up job that uses a symbolic. and this symbolic is for the julian date of the dataset also the system when running the jobs does not use any job scheduler.
below is the code.
// SET DATE=13123
//STEP10 EXEC PGM=SORT,REGION=1024K
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=AKCF21.SAMPLE.FILE.D&DATE,DISP=SHR
//SORTOUT DD DSN=AKCF21.SAMPLE.FILE.D&DATE..BKUP,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=COPY
/*
//STEP10 EXEC PGM=SORT,REGION=1024K
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=AKCF21.SAMPLE.FILE.D&DATE,DISP=SHR
//SORTOUT DD DSN=AKCF21.SAMPLE.FILE.D&DATE..BKUP,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
//SYSIN DD *
SORT FIELDS=COPY
/*
would there be a way on how to get the previous date and set it as a value of the symbolic DATE? I think the proper word for it is, would there be a way on creating an automated job wherein i don't need to change the DATE value on everytime i executed my job?