Posted: Tue Oct 14, 2008 12:56 pm Post subject: How to Save records which does not satisfy conditions?
Hi,
I need to create a file which is based on some condition and all the remaining records which doesnt satisfy that condition has to go into another file. I code my condition as
Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
Posted: Tue Oct 14, 2008 1:27 pm Post subject: Re: Doubt in SORT
arvibala wrote:
Hi,
I need to create a file which is based on some condition and all the remaining records which doesnt satisfy that condition has to go into another file.
parm SAVE on outfil specifies that OUTFIL input records not included by STARTREC, ENDREC, SAMPLE, INCLUDE or OMIT for any other OUTFIL group are to be included in the data sets for this OUTFIL group. SAVE operates in a global fashion over all of the other OUTFIL statements for which SAVE is not specified, enabling you to keep any OUTFIL input records that would not be kept otherwise. SAVE will include the same records for each group for which it is specified.
Quote:
So all records satisfying this condition goes into SORTOF1, remaining records should go into another file.
All the records which are omitted from the first group will be in SORTOF2 dataset. _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum