Gadi, Take a look at the INCLUDE MEMBER= verb. It allows to copy inline a *dynamically cooked* member name. If you clone your inner step as a separate MEMBER under the names of B1, B2, ... Bn, and replace it in the proce with the INCLUDE MEMBER=&B you should be able to pass the name on the proc parms.
HTH, -Victor- On Wed, 22 Feb 2006 13:28:34 +0200, =?windows-1255?B?4uPpIOHvICDg4ek=?= <[EMAIL PROTECTED]> wrote: >Hi, > >One of our users has a job that uses a JCL procedure (lets call it A) many time. One of the steps in the procedure runs another procedure (we'll call that B). > >The user would like to conditionally run a step based on the condition code of the step with PROC B. > >Naming each step for PROC A is easy, but all the steps generated by PROC B will have the same name. > >We haven't found a way to reference the condition code of a step within a procedure within a procedure. > >The user asked if there is a way to name a step using a parameter for example: > >//X PROC,MSR= >//X&MSR.A EXEC ... > >When used will generate >//A EXEC X,MSR=10 > >//X10A EXEC .... > >Is there a way to do this? > >TIA > >Gadi > > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO >Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

