In a recent note, Ed Finnell said:

> Date:         Tue, 20 Sep 2005 08:54:03 EDT
> 
> In a message dated 9/19/2005 10:52:45 P.M. Central Standard Time,
> [log in to unmask] writes:
> 
> What's a  good and very reliable way to write a step which sets its
> return code to a  particular non-zero value?  (2 is ideal since
> it's not even warning  severity.)
> 
> REXX sample:
> 1.4.3.1 EXIT Instruction
> 
Indeed.  But if one wants the JCL to be self-contained (as I do)
then one must put the Rexx EXEC in an instream SYSUT1 of an
IEBGENER step to use SYSUT2 as the SYSEXEC of the IRXJCL step
to set the completion code.  (Or, at least IKJEFT01 with a
REPRO and an EXEC.)  How does one get IKJEFT01 to set the jobstep
return code, again?  That one wasn't in John Gilmore's survey.
I'll stay with the scheme he attributed to Volker and call
IDCAMS directly.

Of course, with Rexx, one can supply the desired completion code
in a PARM; often useful.

Thanks for pondering this,
gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
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

Reply via email to