Why wouldnt you use an &&dataset with a disp of (new,pass) and a unit of VIO in the creating step, then just reference the file in successive steps?
//STEP1 EXEC PGM=SOMEPGM //DD1 DD DSN=&&temp1,disp=(new,pass),unit=vio,DCB=... //STEP2 EXEC PGM=SOMEPGM //DD2 DD DSN=&&temp1,disp=(old,pass) //STEP3 EXEC PGM=SOMEPGM //DD3 DD DSN=&&temp1,disp=(old,pass) and so on Joe On Thu, Nov 21, 2024 at 7:41 AM Steff Gladstone < [email protected]> wrote: > Hi, > > Without specifying a file (temporary or otherwise) statically in the JCL of > a job, how can I create a temporary data record in an earlier step of the > job and have it persist and be accessible by all succeeding steps of the > job (and then be deleted by the system at the end of the job)? > > Am I correct in understanding that I cannot dynamically allocate a > temporary file with DISP=PASS? > > Thanks, > Steff Gladstone > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
