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
 
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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm

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