Classification: Confidential I don't think the COND=EVEN step is required. Just create the temp ds with DISP=(NEW,PASS). It will persist until EOJ.
-----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Steve Thompson Sent: Monday, December 2, 2024 7:33 AM To: [email protected] Subject: Re: Temporary data that must persist till end of job [CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.] Perhaps what you want is in effect COMREG from DOS. In doing migrations from DOS to MVS one of the ways of simulating this was to create a temp dataset that we wrote into it what we needed and then read from and/or updated with each succeeding job step. The last job step had COND=EVEN so that if anything ABENDed, this step would still run to delete the "temp" data set. Granted, if one were using a temp dataset the INIT would get rid of it during "alloc cleanup" before starting the next JOB. Granted, you probably do not want the contents of COMREG as it would have been for DOS (which gets passed within each partition....). But it sounds like this is the kind of process you may be after. HTH Steve Thompson On 12/2/2024 4:35 AM, Steff Gladstone wrote: > Maybe I should rephrase my question. I put too much emphasis on the > idea of a temporary dataset. > > What I am really looking for is a way of maintaining a piece of > information that is created in one job step and is accessible to all > succeeding job-steps. A type of memory that is getmained in one job > step and persists till the end of the last job step, would be perfect. > If it was possible to create a name-token with the life of the entire > job, that would be perfect. But it would disappear by itself without > the last job-step having to be "aware" that it was the last job-step > and without being responsible to delete it. Any ideas? > > On Thu, 21 Nov 2024 at 15:40, 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 -- Regards, Steve Thompson ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ::DISCLAIMER:: ________________________________ The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects. ________________________________ ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
