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: [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)
  • typo error...
    ... First Proc should be p1 and not p3 ... > exec p1 ... >> Over night we take a copy of various live SQL databases onto another SQL ... >> I connect to the live databases using linked servers. ...
    (microsoft.public.sqlserver.programming)
  • Re: Strangeness in PROC-land
    ... //STEP1 EXEC PGM=IEFBR14 ... It complains about the second PEND because you can not nest PROCs inside ... instream data inside a PROC. ... But the JCL error is on the second PEND ...
    (bit.listserv.ibm-main)
  • Re: SQL Variable USE.
    ... I then exec the proc like so: ... SQL server will decide where to put it on ... > it from the database level settings. ...
    (microsoft.public.sqlserver.programming)