Hi,
I need separate one file in other files. The 1.000 first records write in the first file, the 1.000 next in the two file. I don't know which are the record's of my file
File1: 1....... 9.000 records
fileOutput: 1... 1.000
fileOutput2: 1.001 .... 2.000 ...
...
...
FileOutputX : 8.001 .... 9.000 (or end the file)
Thanks
How Can I Separate one file in others files
-
- Posts: 114
- Joined: Mon Dec 10, 2007 10:18 pm
- Skillset: cobol
- Referer: internet
- Frank Yaeger
- Global moderator
- Posts: 1079
- Joined: Sat Jun 09, 2007 8:44 pm
- Skillset: DFSORT, ICETOOL, ICEGENER
- Referer: Search
- Contact:
Re: How Can I Separate one file in others files
Here's an example of a DFSORT job that will split the input file to 12 output files. You can change the job to use as many output files as you need.
Code: Select all
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//OUT001 DD DSN=... output file 1
//OUT002 DD DSN=... output file 2
//OUT003 DD DSN=... output file 3
//OUT004 DD DSN=... output file 4
//OUT005 DD DSN=... output file 5
//OUT006 DD DSN=... output file 6
//OUT007 DD DSN=... output file 7
//OUT008 DD DSN=... output file 8
//OUT009 DD DSN=... output file 9
//OUT010 DD DSN=... output file 10
//OUT011 DD DSN=... output file 11
//OUT012 DD DSN=... output file 12
//SYSIN DD *
OUTFIL SPLIT1R=1000,
FNAMES=(OUT001,OUT002,OUT003,OUT004,OUT005,OUT006,
OUT007,OUT008,OUT009,OUT010,OUT011,OUT012)
/*
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
-
- Similar Topics
- Replies
- Views
- Last post
-
-
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
- 4440
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-
-
-
Joining 2 vb files into vsam files ended error
by newbiemainframe » Thu Nov 12, 2020 7:59 am » in JCL - 1
- 1770
-
by NicC
View the latest post
Thu Nov 12, 2020 7:15 pm
-
-
- 8
- 6156
-
by kbabu
View the latest post
Mon Mar 15, 2021 8:25 am
-
- 0
- 2607
-
by JIMDOOEY
View the latest post
Tue Mar 01, 2022 8:48 am
-
- 1
- 1260
-
by sergeyken
View the latest post
Tue Nov 08, 2022 7:22 pm