Posted: Mon Feb 26, 2007 1:14 pm Post subject: Split a file to multiple files
I need to split a FB file to 600 files. We have a file with data for all the 600 distribution locations. I have to seperate the data for each location and write to 600 different files. The input file is already sorted by Location.
Once the files are created I need to FTP them to a central repositry.
Can you please suggest which is the best way to accomplish the task.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Feb 26, 2007 2:05 pm Post subject:
There are many ways to do it. You need to provide more details. Do you know all the distribution locations right away or is it dynamically changing ? If the distribution list is fixed then it is very easy to split.
Run the sample as is and check the output from step0200 and once you verify that the created JCL is correct change the the following statement in step0200 to the following
When I tried to execute the JCL as is, I am getting RC - 16 for STEP0100.
Dataset were created with following Names.
SYS07059.T150634.RA000.JUAMACHA.C1.H01 for DDNAME=CARD
SYS07059.T150634.RA000.JUAMACHA.D1.H01 for DDNAME=DDLS
Can you please direct me the manual which explains STEP0100.
One last question does thsi JCL submit 500 Jobs if we have data for 500 location.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Wed Feb 28, 2007 3:53 pm Post subject:
fidelity,
Are you getting an error on the submitted job via INTRDR or the first step in the above posted jcl? If you are getting a RC of 16 , that means there is something with the control cards. You need to check the SYSOUT of Step0100. If you cannot figure out the error post it here and we will try to help.
Quote:
One last question does thsi JCL submit 500 Jobs if we have data for 500 location.
It fails in STEP0200 with Cond code = 16. here is the SYSOUT
Code:
SYNCSORT FOR Z/OS 1.2.0.0R U.S. PATENTS: 4210961, 5117495 (C) 2005 SYNCSO
z/OS 1.5.0
PRODUCT LICENSED FOR CPU SERIAL NUMBER 11570, MODEL 2094 503 LICEN
SYSIN :
SORT FIELDS=COPY
WER276B SYSDIAG= 3389525, 4689142, 4689142, 1058396
WER164B 13,996K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 6,124K BYTES USED
WER146B 20K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=FB ; LRECL= 80; BLKSIZE= 80
WER171A CONCAT DS, LRECLS NE OR RECFMS DIFF
And here is SYSOUT from STEP0100 if it helps
Code:
WER276B SYSDIAG= 3389751, 4689214, 4689214, 1058396
WER164B 13,996K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B 0 BYTES RESERVE REQUESTED, 6,231,104 BYTES USED
WER146B 20K BYTES OF EMERGENCY SPACE ALLOCATED
WER108I SORTIN : RECFM=FB ; LRECL= 1900; BLKSIZE= 26600
WER110I CARD : RECFM=FB ; LRECL= 1900; BLKSIZE= 26600
WER110I DDLS : RECFM=FB ; LRECL= 1900; BLKSIZE= 26600
WER405I CARD : DATA RECORDS OUT 0; TOTAL RECORDS OUT 4
WER405I DDLS : DATA RECORDS OUT 0; TOTAL RECORDS OUT 15
WER416B SORTIN : EXCP'S=1,UNIT=3390,DEV=8A40,CHP=E4E6E8EA,VOL=WORK83
WER416B OUTFIL WAS USED FOR SORTOUT
WER054I RCD IN 10, OUT 10
WER169I RELEASE 1.2 BATCH 0427 TPF LEVEL 0.0
WER052I END SYNCSORT - JUAMACHA,STEP0100,,DIAG=AC00,FB80,8082,004C,E46E,488A,0
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum