I have need to split a very large file of roughly 17.8 million records into many "sub-files" of about 50,000 records each. It's for tax season and our mainframe isn't allowed to run unfettered.
I know I can use steps of successive "$$DD01 SPACE IN=50000 $$DD01 COPY OUT=50000", but the calculations indicate that this will have to be repeated about 355 times. Ouch.
Is there another way to get File Aid to split more efficiently? Would the be better in DFSORT? Or should I just pop out a quick and dirty program?
Splitting a very large file
-
socker_dad
- Posts: 19
- Joined: Tue Sep 22, 2020 5:37 am
- Skillset: COBOL
SORT
JCL
File Aid - Referer: Bing Search
-
NicC
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Splitting a very large file
Look up the DFSort Tricks publication which gives several ways to split datasets.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
chaat
- Posts: 27
- Joined: Sun Aug 16, 2009 11:07 pm
- Skillset: cobol, db2, application performance tuning
- Referer: SEARCH
- Location: St. Cloud, Minnesota
Re: Splitting a very large file
I've written an E15 sort exit to count the number of records, it then passes this count to an E35 sort exit which splits the sort out using Dynamic allocation to multiple output files. This number of files is controlled by an input split control file.
If you are interested in the source code, send me a private message and include your email address. I will send you the two COBOL Sort Exit programs.
Chuck Haatvedt
If you are interested in the source code, send me a private message and include your email address. I will send you the two COBOL Sort Exit programs.
Chuck Haatvedt
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Need to check whether file is ESDS file or not by using REXX
by Devrana » Sat Oct 05, 2024 2:28 pm » in CLIST & REXX - 11
- 8966
-
by willy jensen
View the latest post
Sat Aug 02, 2025 7:16 pm
-
-
-
z/OS to Win FTP, why file encoding ANSI / UTF-8?
by jcbrotel » Mon Feb 21, 2022 2:01 pm » in All other IBM Tools - 0
- 3087
-
by jcbrotel
View the latest post
Mon Feb 21, 2022 2:01 pm
-
-
- 6
- 3026
-
by sergeyken
View the latest post
Wed Apr 13, 2022 7:01 pm
-
- 24
- 14119
-
by Pedro
View the latest post
Wed Jan 04, 2023 5:59 am
-
- 6
- 3564
-
by sergeyken
View the latest post
Sun Oct 22, 2023 6:58 am