IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Query on File Splitting, without using SORT OUTFIL


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Mon Nov 13, 2006 11:57 am
Reply with quote

Hi All,

My requirement is,
Input: I have ?N? number of records in a file. (N>6)

Desired output:
File1: first N/6 records
File2: next N/6 records
File3: next N/6 records
File4: next N/6 records
File5: next N/6 records
File6: left over records?

Above condition needs to be done using sort,

SORT with OUTFIL option will not serve my purpose, as it wud divide first 6 records into 6 different files.

Please provide me pointers for the above kind of situation.
Back to top
View user's profile Send private message
Alain Benveniste

New User


Joined: 14 Feb 2005
Posts: 88

PostPosted: Mon Nov 13, 2006 2:40 pm
Reply with quote

Take a look at the 'Split a file to n output files dynamically' Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

I think it's what you are looking for

Alain
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top