I would say, no, you cannot have DFSORT do something like this. I am not seeing anything the DFSORT manuals from IBM to allow the user to force DFSORT to set codes other than it is already doing.
Better to wrap you process with something that can set the RC you want. I sometimes pass output from a utility to REXX and then set my return code in the REXX. You may also want to consider other processes like data base functions (DB2,IMS, VSAM) to better handle your process. Or add different fields in DFSORT for your needs. ICETOOL can provide the way to include different data (say at the end of the record) to provide your flag. I always suggest to find the process that makes the most sense for the requirement, rather than using something just because it is easier or familiar. Sometimes a program (rather than a utility) is the better option. Lizette > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Minoru Massaki > Sent: Saturday, April 15, 2017 8:53 AM > To: [email protected] > Subject: Re: How can I set Non-zero return code in DFSORT when SORTOUT record > count is not zero > > There are two large tape volume list files, master and transaction files, and > key is volume serial(VOLSER). > No duplicate VOLSER is in the files (master as well as transaction). > I have to check whether all volumes in the master is processed or not by the > transaction file. > If there is no transaction volumes in the master files, I have to generate > control statements to process the volume. > In this situation, I want to set zero-return code to indicate additional > process is required. > If all volumes in the master file are processed, I want to set zero return > code. > I already have made a DFSORT JOINKEY job to do this process. > Only things I want to do is return code setting such as > RC=0 (No SORTOUT Record): No need additional process > RC=8,12,16 (Non-zero SORTOUT records): Need additional process > > Above is what I like to do in DFSORT. > > Regards, > > Minoru Massaki - (M*M) > > > > 2017-04-16 0:08 GMT+09:00 Lizette Koehler <[email protected]>: > > > What problem are you trying to solve by doing this? > > > > Lizette > > > > > > > -----Original Message----- > > > From: IBM Mainframe Discussion List > > > [mailto:[email protected]] On Behalf Of Minoru Massaki > > > Sent: Saturday, April 15, 2017 8:03 AM > > > To: [email protected] > > > Subject: How can I set Non-zero return code in DFSORT when SORTOUT > > > record count is not zero > > > > > > Hello > > > > > > I'm looking for a way to set Non-zero return code in DFSORT, when > > > record > > count > > > of SORTOUT is not zero. > > > > > > I know that setting non-zero return code when SORTOUT record count > > > is > > zero. > > > > > > Your help would be highly appreciated. > > > > > > -- > > > > > > 全先 実 - Minoru Massaki (M*M) > > > E-mail: [email protected] > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
