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
-
- Posts: 19
- Joined: Tue Sep 22, 2020 5:37 am
- Skillset: COBOL
SORT
JCL
File Aid - Referer: Bing Search
-
- 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
-
- 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
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4961
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4423
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
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 - 6
- 3190
-
by sergeyken
View the latest post
Tue Oct 08, 2024 5:25 pm
-
-
- 6
- 2503
-
by MFDEV
View the latest post
Fri Sep 11, 2020 9:04 am
-
-
.TXT file conversion to .CSV/.XLSX
by dangtran10 » Thu May 20, 2021 7:09 am » in DFSORT/ICETOOL/ICEGENER - 3
- 1930
-
by steve-myers
View the latest post
Fri May 21, 2021 10:57 pm
-