Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
Posted: Wed Aug 20, 2014 7:32 am Post subject: Merge input files and limit number of records selected
I know this must be trivial, but despite the 10's of googled sites I've read, I can't find a relevant example.
All I want to do is use DFSORT/ICETOOL to merge 4 files but only select the first 100 records from each file. Here's AN example of the code I've tried (without the 100 record limitation so far)
I've seen example of splitting one file into multiple output files, I've seen examples where multiple input files are spliced into one output file etc etc, but nothing as trivial (?) as what I want to do _________________ Michael
Do you mean MERGE as in MERGE (input files in key order, output file in key order from each) or do you want a "concatenation", 100 records from file 1, then 100 from file 2, then file 3, then file 4?
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
Posted: Thu Aug 21, 2014 12:16 am Post subject: As usual, thanks.
I changed to what you suggested above and it still failed with RC 16.
Then I copied/pasted your code above and submitted it - success. Then I tried removing a bit at a time where my original code differed from yours until .....
The RC 16 was coming from the fact that I'd defined the RECFM/LRECL. Once I removed them, the job worked.
No wonder I was having problems. _________________ Michael
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Thu Aug 21, 2014 10:17 am Post subject: Re: As usual, thanks.
misi01 wrote:
I changed to what you suggested above and it still failed with RC 16.
misi01,
DFSORT does a good job of listing what the error is with message Suffix A ie. ICE217A The informational messages have a suffix of I
misi01 wrote:
Then I copied/pasted your code above and submitted it - success. Then I tried removing a bit at a time where my original code differed from yours until .....
The RC 16 was coming from the fact that I'd defined the RECFM/LRECL. Once I removed them, the job worked.
No wonder I was having problems.
I would suggest you look up the message in DFSORT Messages, Codes and Diagnosis Guide and you would have resolved it on the first try itself.
ICE200I 0 IDENTIFIER FROM CALLING PROGRAM IS 0001
ICE805I 0 JOBNAME: Q48SORT9 , STEPNAME: STEP0100
ICE802I 0 BLOCKSET TECHNIQUE IN CONTROL
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 0 - CONTROL STATEMENTS FOR 5650-ZOS, Z/OS DFSORT V2R1 - 08:52 ON WED SE
OPTION STOPAFT=100
ICE146I 0 END OF STATEMENTS FROM CTL1CNTL - PARAMETER LIST STATEMENTS FOLLOW
DEBUG NOABEND,ESTAE
OPTION MSGDDN=DFSMSG,LIST,MSGPRT=ALL,RESINV=0,SORTDD=CTL1,SORTIN=IN1,S
RTOUT=OUT,DYNALLOC
SORT FIELDS=COPY
ICE043A 3 INVALID DATA SET ATTRIBUTES: OUT RECFM - REASON CODE IS 08
ICE751I 0 C5-I12417 C6-BASE C7-K96411 C8-I15445 E7-I12417
ICE052I 3 END OF DFSORT
I'm guessing the "INVALID DATA SET ATTRIBUTES" message is the indicator, but as a newbie to DFSORT, it's not really telling me much. _________________ Michael
Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
Posted: Wed Sep 03, 2014 3:06 am Post subject:
misi01,
1. click on quick manuals link at top of this page
2. scroll down to DFSORT manuals and click on DFSORT Messages, codes and diagnosis guide
3. click on torch light icon at top and search for ICE043A
4. read about the reason code 8 and if you still feel DFSORT isn't telling much then please let us know _________________ Kolusu
www.linkedin.com/in/kolusu
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