On Sat, 15 Apr 2017 11:00:57 -0700, Sri h Kolusu <skol...@us.ibm.com> wrote:

>Minoru Massaki,
>
>It is quite simple to set a return code using COUNT operator. Here are a 
>couple of ways setting the RC=4 . You can also set RC8 and RC12 too.
>
>//STEP0100 EXEC PGM=ICETOOL 
>//TOOLMSG  DD SYSOUT=* 
>//DFSMSG   DD SYSOUT=* 
>//IN       DD * 
>A 
>//TOOLIN   DD * 
>  COUNT FROM(IN) NOTEMPTY RC4 
>//* 
>
>or
>
>//STEP0100 EXEC PGM=ICETOOL 
>//TOOLMSG  DD SYSOUT=* 
>//DFSMSG   DD SYSOUT=* 
>//IN       DD * 
>//TOOLIN   DD * 
>  COUNT FROM(IN) HIGHER(0) RC4 
>//* 

Hmm, Sri, did we forget about the NULLOUT Parm/OPTION?  :-)>

NULLOUT= RC0
                  RC4
                  RC16
 
Temporarily overrides the NULLOUT installation option, which specifies the
action to be taken by DFSORT when there are no records for the SORTOUT
data set, as indicated by an OUT count of 0 in message ICE054I
RC0
specifies that DFSORT should issue message ICE173I, set a return code of
0, and continue processing when there are no records for the SORTOUT
data set.
RC4
specifies that DFSORT should issue message ICE173I, set a return code of
4, and continue processing when there are no records for the SORTOUT
data set.
RC16
specifies that DFSORT should issue message ICE206A, terminate, and give
a return code of 16 when there are no records for the SORTOUT data set.

-- 
Dale R. Smith

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to