Hi,
My requirement is that , I have a JCL in which a variable is defined as
// SET VAR1=N0123456
Value of VAR1 is changing in every run of the job and it is always like N-------- or T-------
now i want to run some steps in this same JCL based on the value of VAR1 ,for example:- STEP3 will run if VAR1 has a value N------- and STEP4 will run if VAR1 has a value T------- .
somehow I want to set return code based on the above two conditions of VAR1 so that I can put COND on STEP3 and STEP4.
Can this be done in JCL? Maybe I can code REXX in a step to check value of VAR1 and get return code from that, but I dont know how, can you please show me a way through.