Changing the step name in a procedure by using a parameter



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 listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html


.



Relevant Pages

  • Re: using nexted procs
    ... of the PROC, although it should work either way. ... //FFND05 EXEC ... For IBM-MAIN subscribe / signoff / archive access instructions, ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ...
    (bit.listserv.ibm-main)
  • Re: /*XEQ /*XMIT question
    ... But a PROC is just one way to implement the ... When I have geographically diverse MVS systems, ... Or an exec that basically builds an expanded proc. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: using nexted procs
    ... //FFND05 EXEC ... XXDLIBATCH PROC ... IEFC653I SUBSTITUTION JCL - PGM=DFSRRC00,PARM= ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: [subject added] Override a proc step
    ... Use the IF/THEN/ELSE/ENDIF statement construct to conditionally ... Is there an easy way to override a proc step so that it does not run? ... //JSTEP1 EXEC PROC1 ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: SqlDataAdapter1.SelectCommand.CommandType= CommandType.StoredProcedure
    ... >> kann man beim EXEC PROC keine Parameter beifügen. ... > da das TDS Protokoll das intern unterscheiden kann. ... > nach der Ausführung ungültig werden. ...
    (microsoft.public.de.german.entwickler.dotnet.datenbank)