i wrote a program (aptly named SETCC) that accepts various parms passed
in the parm field and passes them as condition codes, including an
option to pass the date and time. The program accepts numbers to be
passed as well as various keywords that it converts to numbers.


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On
Behalf Of Paul Gilmartin
Sent: Thursday, June 25, 2009 9:36 AM
To: IBM-MAIN@bama.ua.edu
Subject: Re: IF-Statement in JCL

On Thu, 25 Jun 2009 14:01:54 +0200, Michael Knigge wrote:

>Roland,
>
>> Not with YES/NO but like this
>> Note: IEFBR14 always set RC0
>
>oh my god, that simple......
>
>I always thought to myself, I could write a utility that just returns
>(so do a "B R14") and set a RC that I've specified with a PARM
>JCL-Statement (EXEC PGM=FOO,PARM='1' or something like that)
>
You can use IDCAMS to set RC to a desired value, but it must
appear in SYSIN, not in PARM.

And you can use JCL symbols in IF statements; something like:

    //  SET YES=0
            ...
    //  IF ( IEFBR14.RC = &YES ) ...

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu 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 lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to