I prefer to use DDNAME referbacks in subsequent
steps as it helps remind me of what is in the dataset.
Michael
At 08:26 AM 11/21/2024, Joe Monk wrote:
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 <
000005c5038228fa-dmarc-requ...@listserv.ua.edu> 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN