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 file into multiple files using sort

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

New User


Joined: 24 Sep 2009
Posts: 1
Location: Hyderabad

PostPosted: Thu Sep 24, 2009 12:47 pm    Post subject: Split file into multiple files using sort
Reply with quote

Hi

I want to Split file into multiple files using sort
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Sep 24, 2009 12:53 pm    Post subject:
Reply with quote

Hello Nisha,

Welcome to the forum.
Please check previous post related to this topic before posting a new question.


Let us know if you are still not able to find answers.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Thu Sep 24, 2009 1:48 pm    Post subject:
Reply with quote

Hi,
Please provide us with the details on what basis you want to split the file?
what is the file type?
which sort product you are using at your shop?
Back to top
View user's profile Send private message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Thu Sep 24, 2009 6:20 pm    Post subject:
Reply with quote

If you are using short
then you can split it
Code:
 SORT FIELDS=COPY                           
 OUTFIL INCLUDE=(10,2,CH,EQ,C'RJ',OR,       
                 10,2,CH,EQ,C'KJ',OR,       
                 10,2,CH,EQ,C'TK'),FILES=1 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'KN'),FILES=2 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'SH'),FILES=3 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'IK'),FILES=4 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'TK'),FILES=5 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'PK'),FILES=6 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'NJ'),FILES=7 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'MN'),FILES=8 
 OUTFIL INCLUDE=(10,2,CH,EQ,C'TN'),FILES=9 

here you can create 9 files from one file

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 25, 2009 10:05 am    Post subject:
Reply with quote

santosh100678 wrote:
If you are using short
Sorry but I did not get this -- did you mean SyncSort?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 25, 2009 10:56 am    Post subject:
Reply with quote

santosh100678 -- you've pre-assumed a lot of things in your solution.

nishaik,

With the information you provided to the Forum, Suggest you search on SPLIT1R or SPLITBY in the Forum. There are lots of working example aroud -- pick one of your choice. Note that SPLIT1R is a better choice than SPLITBY.

Alternatively, You can use the technique shown in the "Split a file to n output files dynamically" Smart DFSORT Trick at:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
Back to top
View user's profile Send private message
santosh100678

New User


Joined: 21 Sep 2009
Posts: 55
Location: Kolkatta

PostPosted: Fri Sep 25, 2009 6:18 pm    Post subject:
Reply with quote

What i write is split one file into multiple file on base of condition.

Please provide me your requirement its condtinal spliting or unconditional splitting ,could you please elaborate more on this
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 Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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