Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Cameron Conacher
Code value, I could use to conditionally execute a JOBSTEP. Thanks …….Cameron From: IBM Mainframe Discussion List 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

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Binyamin Dissen
Not exactly sure what you are trying to do, but . it should be a simple rexx procedure /* REXX */ STRING = "TEST PROD WHATEVER" RCS = "4 8 12"

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Sri Hari Kolusu
>> 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, As I mentioned earlier you don't need REXX to get the MVS variables. DFSORT

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Michael Oujesky
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

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Robert Prins
On Mon, 4 Mar 2024 at 16:13, Sri Hari Kolusu wrote: > Please send an offline email with your complete requirement and I will > show you a way to do it. > After all, why would anyone else be interested in it? Robert -- Robert AH Prins robert(a)prino(d)org The hitchhiking grandfather

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Robert Prins
Or this, posted on @ Tue Jul 28, 2009 11:59 pm //* Use a tiny Rexx exec to check both month and year //* If 1st of month, return number of month, else return 99 //MAKEREXX EXEC PGM=IEBUPDTE,PARM=NEW //SYSINDD DATA ./ADD NAME=CHKDATE

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Doug Henry
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 +, Cameron Conacher wrote: >Hello everyone, >From

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Colin Paice
I think I did what you want, many years ago. A very small C program something like int main(argc,argv) { if (strcmp(argv[1],argv[2]) == 0 return 0 else return 4; } //S1 EXEC PGM=IFPROG,PARM="DEV," // if S1.RC == 0 they are the same Colin On Mon, 4 Mar 2024 at 16:02, Cameron Conacher <

Re: Can DFSORT assign custom Return Code values?

2024-03-04 Thread Sri Hari Kolusu
>> 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

Can DFSORT assign custom Return Code values?

2024-03-04 Thread Cameron Conacher
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 of steps. I have symbolic parameters assigned. (JP1/JP2 SYSPLEX Symbolics for DFSORT) I was looking for a Utility that would