Previously posted to ISPL-List



I have a situation where I need to execute a single JCL procedure, but ONLY 
execute some steps (including the DSN allocations) for part B or part C, 
depending on the return code of part A. The problem I seem to be stuck with is 
that in part B (STEP10 below) I have some datasets defined in the JCL with 
UNIT=SYSDA and VOL=SER=XXXXXX. However, if STEPA.RC is not 12, then we are not 
executing in an environment where VOL=SER=XXXXXX is available/mounted. I have 
been told that I need to have this whole job as a single unit, so it can 
execute in the different environments as necessary.

Is this feasible? Can it be achieved, or do I have to split the parts B and C 
out into separate discreet bits of JCL? 

//STEPA EXEC PGM=BLAHBLAH
// ...
// ...
//IFDR     IF (STEPA.RC = 12) THEN 
//STEP10
// ...
//  ELSE 
//STEP50
// ...
// ENDIF 


Regards - Grant

DTCC Internal (Green)
DTCC DISCLAIMER: This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to whom they are 
addressed. If you have received this email in error, please notify us 
immediately and delete the email and any attachments from your system. The 
recipient should check this email and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused by any virus 
transmitted by this email.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to