Join this group to access featured content and participate in discussions related to all Syncsort Mainframe Products.

112 Members
Join Us!

unable to set RC=4 when output file is empty

I am running a process to validate the date in the first record of the input file.
the idea is to create an output record only when date is not valid.
process is doing what is suppose to.
however, I have been unable to set the RC = 4 when output file is empty.
I am using NULLOFL to set it. however, it always come back with RC0.
is there another way to force it? or point me the error in the code?

here it is the code
INREC BUILD=(FEMA,COM,HDAT,BLK,HTIM,BLK,
HYEA,SLH,HMON,SLH,HDAY,BLK,DATE1(/)-1)
SORT FIELDS=COPY,STOPAFT=1
OUTFIL INCLUDE=(26,10,CH,LT,37,10,CH),BUILD=(1,24),
NULLOFL=RC4
DATA DICTIONARY SYMBOLS SUBSTITUTED :
INREC BUILD=(1,4,C',',6,10,C' ',17,8,C' ',12,4,C'/',6,2,C'/',9,2,C' ',DATE1(/)-1
)
SORT FIELDS=COPY,STOPAFT=1
OUTFIL INCLUDE=(26,10,CH,LT,37,10,CH),BUILD=(1,24),NULLOFL=RC4
WER813I INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED
WER276B SYSDIAG= 4153261, 6300782, 6300782, 3966425
WER164B 10,840K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 2,409,360 BYTES USED
WER146B 20K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=FB ; LRECL= 704; BLKSIZE= 27456
WER073I SORTIN : DSNAME=FEMP.FTP.LLQ.DATA.G2388V00
WER257I INREC RECORD LENGTH = 46
WER110I SORTOUT : RECFM=FB ; LRECL= 24; BLKSIZE= 27984
WER074I SORTOUT : DSNAME=FEMA.DSM.LLQ.DATA.T1120
WER410B 9,812K BYTES OF VIRTUAL STORAGE AVAILABLE ABOVE THE 16-MEGABYTE LINE,
WER410B 0 BYTES RESERVE REQUESTED, 2,261,904 BYTES USED
WER405I SORTOUT : DATA RECORDS OUT 0; TOTAL RECORDS OUT 0
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000

You need to be a member of Syncsort Community to add comments!

Join Syncsort Community

Email me when people reply –

Replies

  • Try include this card:

    //$ORTPARM DD *  
     NULLOUT=RC4    

    • Thank you, Rene Antonio,

      That made the difference!

This reply was deleted.

To access Syncsort Knowledge Base, visit:

My Support