Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Default file for records which do not match any split criter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
leomahen

New User


Joined: 16 Nov 2007
Posts: 2
Location: Aylesbury

PostPosted: Fri Dec 21, 2007 9:41 pm    Post subject: Default file for records which do not match any split criter
Reply with quote

Hi,

I am splitting a file into several files based on some conditions using outfil. I also want to get the records which does not match my critieria.

For example,

if my sortin file contains,

ABC
123
A12
12B

File 1 should contain ABC

File 2 should contain 123

File 3 should contain A12 and 12B.

Since I am splitting my input file to 58 files + the default file. Its very difficult for me to write the include condition for the default file. Can you please let me know how to set the default file.
Back to top
View user's profile Send private message

Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Dec 21, 2007 10:07 pm    Post subject: Reply to: Default file for records which do not match any sp
Reply with quote

leomahen,

You can use DFSORT's Save Parm on OUTFIL. SAVE 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.

Code:

//STEP0100 EXEC PGM=ICEMAN                     
//SYSOUT   DD SYSOUT=*                         
//SORTIN   DD *                               
ABC                                           
123                                           
A12                                           
12B                                           
//OUT1     DD SYSOUT=*                         
//OUT2     DD SYSOUT=*                         
//OUT3     DD SYSOUT=*                         
//SYSIN    DD *                               
  SORT FIELDS=COPY                             
  OUTFIL FNAMES=OUT1,INCLUDE=(1,3,CH,EQ,C'ABC')
  OUTFIL FNAMES=OUT2,INCLUDE=(1,3,CH,EQ,C'123')
  OUTFIL FNAMES=OUT3,SAVE                     
//*                                           


Hope this helps...
Back to top
View user's profile Send private message
leomahen

New User


Joined: 16 Nov 2007
Posts: 2
Location: Aylesbury

PostPosted: Mon Dec 24, 2007 5:36 pm    Post subject: Reply to: Default file for records which do not match any sp
Reply with quote

Skolusu,
Thank you very much. I was looking for this only.

Thanks,
K.S.Mahendran
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us