Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SPLIT the Records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
boobalamurugan

New User


Joined: 26 Oct 2007
Posts: 4
Location: chennai

PostPosted: Wed Jul 02, 2008 11:23 am    Post subject: SPLIT the Records
Reply with quote

If i have a file, which contains four records I would like to split the 4 different outputs for each record how to do?

Can anyone explain me?
Back to top
View user's profile Send private message

Vasukip
Currently Banned

New User


Joined: 17 Jun 2008
Posts: 48
Location: Chennai

PostPosted: Wed Jul 02, 2008 11:51 am    Post subject: Re: SPLIT the Records
Reply with quote

Hi,
Try ds Code !
Code:

//STEPLIB EXEC PGM=SORT                       
//SORTIN DD *                                 
AAA   123      401                             
AAA   456      401                             
BBB   987      411                             
BBB   123      411                             
/*                                             
//OUT1 DD DSN=Output File1,DISP=SHR     
//OUT2 DD DSN=Output File2,DISP=SHR     
//OUT3 DD DSN=Output File3,DISP=SHR     
//OUT4 DD DSN=Output File4,DISP=SHR
//SYSIN DD *                                       
  SORT FIELDS=COPY                                 
  OUTFIL FNAMES=(OUT1,OUT2,OUT3,OUT4),SPLITBY=1   
/*                                                 
//SYSPRINT DD SYSOUT=*                             
//SYSOUT   DD SYSOUT=*                             
//                                                     


SPLITBY=N , 'n' no of records will be splited in to output Files.
Back to top
View user's profile Send private message
boobalamurugan

New User


Joined: 26 Oct 2007
Posts: 4
Location: chennai

PostPosted: Wed Jul 02, 2008 12:00 pm    Post subject: Reply to: SPLIT the Records
Reply with quote

Its working fine vasukip.
Back to top
View user's profile Send private message
Vasukip
Currently Banned

New User


Joined: 17 Jun 2008
Posts: 48
Location: Chennai

PostPosted: Wed Jul 02, 2008 12:05 pm    Post subject: Re: Reply to: SPLIT the Records
Reply with quote

yw icon_razz.gif !
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us