The situation is that I have three different environments. If we are in development, lets ignore the email If we are in pre-prod, let’s assume someone is perform a User Acceptance test. If we are in production, we should jump in and deal with remediation.
When the email is sent, I have embedded Symbolics in the email text itself, meaning I need to use //SYSUT1 DD *,SYMBOLS=EXECSYS, with IEBGENER. In this situation, I cannot put the email text in a PDS as I would not be able to use the SYSBOLS= clause with IEBGENER, On the other hand I could put all the email text into a PDS member, and pre-process this email text performing all the Symbolic substitutions, and create a temp file that has already had all of the substitution performed, pass it to IEBGENER without the SYMBOLS= clause, and go from there. Sri, showed me how to gather the available data from the existing System Symbolics, and I can pass other data I need via PARMs. So I am all good to go now. However, I am going to look into writing a tiny C program, that I can call as a utility to assign a return code value. Just to see what it takes. I was looking to run a utility that would simply generate a Return Code value, I could use to conditionally execute a JOBSTEP. Thanks …….Cameron From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Michael Oujesky Sent: Monday, March 4, 2024 12:38 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Can DFSORT assign custom Return Code values? Presuming these are three different z/OS instances. why not just use system symbols to make the determination of what environment is being used? Michael At 10: 12 AM 3/4/2024, Sri Hari Kolusu wrote: >Content-Transfer-Encoding: base64>> Presuming these are three different z/OS instances. why not just use system symbols to make the determination of what environment is being used? Michael At 10:12 AM 3/4/2024, Sri Hari Kolusu wrote: >Content-Transfer-Encoding: base64>> I was to be able to assign one >of three different Return Code values (any value) that I can let >check to determine if I am running in Development, Pre-Prod or >Production, and then execute steps related to the specific environment. >Not something I absolutely need since I could write a tiny program for this. > >Cameron, > >DFSORT has limited ability to set a return code but not the way you >want. However, I think we can solve your issue quite easily by >validating the symbol and only generating the steps that needs to >run for that Symbolic. Remember DFSORT has the ability of reading >the system symbols and determine the LPAR it is running. > >Please send an offline email with your complete requirement and I >will show you a way to do it. > >Thanks, >Kolusu >DFSORT Development >IBM Corporation > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to lists...@listserv.ua.edu<mailto: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<mailto:lists...@listserv.ua.edu> with the message: INFO IBM-MAIN ________________________________ American Express made the following annotations ________________________________ This e-mail was sent to you by a representative of Amex Bank of Canada, P.O. Box 3204, Station "F", Toronto, ON, M1W 3W7, www.americanexpress.ca. If you no longer wish to receive these e-mails, please notify the sender by reply e-mail. This e-mail is solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail and immediately and permanently delete this e-mail and any attachments. Thank you. American Express a fait les remarques suivantes Ce courriel vous a été envoyé par un représentant de la Banque Amex du Canada, C.P. 3204, succursale F, Toronto (Ontario) M1W 3W7, www.americanexpress.ca. Si, par la suite, vous ne souhaitez plus recevoir ces courriels, veuillez en aviser les expéditeurs par courriel. Ce courriel est réservé au seul destinataire indiqué et peut renfermer des renseignements confidentiels et privilégiés. Si vous n’êtes pas le destinataire prévu, toute divulgation, duplication, utilisation ou distribution du courriel est interdite. Si vous avez reçu ce courriel par erreur, veuillez en aviser l’expéditeur par courriel et détruire immédiatement le courriel et toute pièce jointe. Merci. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN