Another simple way to do this is a simple Rexx exec using MVSVAR to get the system symbol that you want . See https://www.ibm.com/docs/en/zos/2.5.0?topic=tef-mvsvar to see examples of how to do this.
Doug On Mon, 4 Mar 2024 16:01:51 +0000, Cameron Conacher <[email protected]> wrote: >Hello everyone, >From what I have read this is not possible, but I decided to throw it out >there to see if something is possible. > >I have a block of JCL with a bunch f steps. >I have symbolic parameters assigned. (JP1/JP2 SYSPLEX Symbolics for DFSORT) > >I was looking for a Utility that would examine the value of a Symbolic and >assign a User Return Coe value. RC1 = Development; RC2 = Pre-Production; RC3 = >Production? >I need a Return Code value to be able to conditionally execute subsequent JOB >steps. I cannot execute steps conditionally based on Symbolic Variable values. >IF Step001.RC = 0 ….Development > >I could write a tine program to do this. >I was hunting around for a utility to do this. >DFSORT is my go to Utility but as mentioned, I believe it is not suitable for >this task. >I believe I could set RC0 or RC4 or RC16. RC0 and RC4 generate a message and >continue, but RC16 generates a message and terminates. I think this >(Termination) would be unsuitable. > >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. > >Just curious, and I think my ADHD has just sent me down another rabbit hole 😊 > >I could do this in Easytrieve. Or COBOL. Or Assembler. Or Rexx. Or ….. > >Hope this makes sense. > >Thanks > > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
