ICE080I 0 IN MAIN STORAGE SORT
ICE055I 0 INSERT 0, DELETE 77947
ICE054I 0 RECORDS - IN: 77947, OUT: 0
ICE134I 0 NUMBER OF BYTES SORTED: 545629000
ICE253I 0 RECORDS SORTED - PROCESSED: 77947, EXPECTED: 77947
ICE165I 0 TOTAL WORK DATA SET TRACKS ALLOCATED: 24570 , TRACKS USED: 0
ICE199I 0 MEMORY OBJECT STORAGE USED = 522M BYTES
ICE180I 0 HIPERSPACE STORAGE USED = 0K BYTES
ICE188I 0 DATA SPACE STORAGE USED = 0K BYTES
ICE052I 0 END OF DFSORT
JNF2JMSG
Code:
ICE080I 0 IN MAIN STORAGE SORT
ICE055I 0 INSERT 0, DELETE 1169011
ICE054I 0 RECORDS - IN: 1169011, OUT: 0
ICE134I 0 NUMBER OF BYTES SORTED: 883772316
ICE253I 0 RECORDS SORTED - PROCESSED: 1169011, EXPECTED: 1169041
ICE165I 0 TOTAL WORK DATA SET TRACKS ALLOCATED: 24570 , TRACKS USED: 0
ICE199I 0 MEMORY OBJECT STORAGE USED = 857M BYTES
ICE180I 0 HIPERSPACE STORAGE USED = 0K BYTES
ICE188I 0 DATA SPACE STORAGE USED = 0K BYTES
ICE052I 0 END OF DFSORT
SYSOUT
Code:
ICE235I 0 OPTIONS: NULLOUT=RC0
ICE084I 0 EXCP ACCESS METHOD USED FOR SORTOUT
ICE751I 1 EF-K49535 F0-K49038 E8-K51707
[u]ICE421I 0 JOINED RECORDS: COUNT=0 [/u]
ICE055I 0 INSERT 0, DELETE 0
ICE054I 0 RECORDS - IN: 0, OUT: 0
ICE173I 0 NO RECORDS FOR THE SORTOUT DATA SET - RC=0
ICE052I 0 END OF DFSORT
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Feb 19, 2010 4:10 pm Post subject:
Quote:
To my surprise it ommitted records in JNF1CNTL and JNF2CNTL. It selected no records!!!
Are you assuming it selected no records based on the JNF1JMSG message:
ICE054I 0 RECORDS - IN: 77947, OUT: 0
If so, that's a bad assumption. For JOINKEYS the ICE054I message in JNFxJMSG will always show 0. Since the records are passed to an E35, not directly to an output file, the ICE054I shows all of the records as "deleted" by the E35 (=0 output records) regardless of how many were actually kept by the E35. But actually, the selected F1 and F2 records are passed to E35s and those that match between the two files are passed to the main task as joined records.
Since SYSOUT shows:
ICE421I 0 JOINED RECORDS: COUNT=0
I'd guess you do NOT have any matches on all of the keys you specified in JOINKEYS FIELDS for F1 and F2 for the selected records. So there weren't any records to actually join and the count of joined records is 0.
I tried your job with records in F1 and F2 that did match on all of the keys and I got a non-zero COUNT in the ICE421I message indicating records were joined. Those joined/reformatted records were written to SORTOUT.
Here's a portion of my //SYSOUT messages:
Code:
ICE411I 0 THIS IS THE JOINKEYS MAIN TASK FOR JOINING F1 AND F2
ICE416I 0 JOINKEYS IS USING THE F1 SUBTASK FOR SORTJNF1 - SEE JNF1JMSG MESSAGES
ICE416I 1 JOINKEYS IS USING THE F2 SUBTASK FOR SORTJNF2 - SEE JNF2JMSG MESSAGES
ICE419I 0 JOINED RECORDS: TYPE=F, LENGTH=25
...
ICE421I 0 JOINED RECORDS: COUNT=2
ICE090I 0 OUTPUT LRECL = 25, BLKSIZE = 25, TYPE = FB
ICE055I 0 INSERT 2, DELETE 0
ICE054I 0 RECORDS - IN: 0, OUT: 2
ICE052I 0 END OF DFSORT
Note that ICE054I has OUT: 0 even though records were in fact joined and output.
If you think you have matches between F1 and F2 for all of the keys of the selected records, I'll show you a way to disprove that. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Frank,
That was my assumption.
I thought (in my assumption of course), that
ICE054I 0 RECORDS - IN: 77947, OUT: 0 were probably introduced to help us debug any issues until I checked the message below. I should have done that earlier.
Code:
ICE054I :- For a JOINKEYS subtask, 0 is always displayed for OUT. The number of joined records is displayed in message ICE421I for the main task.
About my not finding any match, I checked both the files in File-Aid and they have plenty of records that matched on all 3 key fields. But since these is one of my first test jobs with new PTF, I would double check my job.
Meanwhile, I am curisous to know about the another way you mentioned to find out if I have match or not. Hopefully this will help to debug the issue.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri Feb 19, 2010 4:49 pm Post subject:
Quote:
About my not finding any match, I checked both the files in File-Aid and they have plenty of records that matched on all 3 key fields. But since these is one of my first test jobs with new PTF, I would double check my job.
Then I suspect your INCLUDE statements filtered out those matching records.
Quote:
Meanwhile, I am curisous to know about the another way you mentioned to find out if I have match or not. Hopefully this will help to debug the issue.
This is the verification job I had in mind. It uses SELECT rather than JOINKEYS for a better "sanity" test. If OUT is empty, it proves there are no matching selected records.
Never mind, I did UNPAIRED,F1,ONLY and it returned all the F1 records.
I will have to revisit my job/file/logic.
Ok. Keep us posted. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Hi,
I took one of the keys from the comparison, which I thought was causing mis-match due to different data types and both the files matched after that!!!
Thanks for all the help.
However, while testing I got one more question.
As mentioned in my earlier post, I tried to find the mismatch causing key using UNPAIRED,F1,ONLY. So, I ran below mentioned sort control card...
ICE419I 0 JOINED RECORDS: TYPE=F, LENGTH=5
ICE201I G RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE230A 0 23 BYTE HEADER/TRAILER RECORD EXCEEDS 5 BYTE LRECL FOR SORTOUT
Per my understanding...After the join maintask creates file of LRECL based on REFORMAT FIELDS but TRAILER1 function
can't increase LRECL of the file but can actually shrink the file.
I went ahead and added Text using INREC BUILD as below.
Job ran successfully and gave me messages as below..
Code:
ICE419I 0 JOINED RECORDS: TYPE=F, LENGTH=15
some more messages ....not displayed here...
Code:
ICE210I 0 SORTOUT : BSAM USED, LRECL = 17, BLKSIZE = 17, TYPE = FB
ICE421I 0 JOINED RECORDS: COUNT=356091
ICE055I 0 INSERT 356091, DELETE 0
ICE054I 0 RECORDS - IN: 0, OUT: 356091
ICE227I 0 SORTOUT : DELETED = 356091, REPORT = 1, DATA = 0
ICE228I 0 SORTOUT : TOTAL IN = 356091, TOTAL OUT = 1
ICE174I 0 NO DATA RECORDS FOR AN OUTFIL DATA SET - RC=0
ICE052I 0 END OF DFSORT
SORTOUT Display :- 00356091
I would now change INREC BUILD with INREC OVERLAY and it worked too. So it it working with increased LRECL.
Now, I went back and ran my DFSort COUNT Job (No JOINKEYS) for which Input File's LRECL is 1 Byte only.
My job is as mentioned below and it abended with the same reason. SYSOUT given below.
OPTION COPY
OUTFIL NODETAIL,REMOVECC,
TRAILER1=('RECORDS COUNT',COUNT=(M11,LENGTH=12))
ICE201I G RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE230A 0 25 BYTE HEADER/TRAILER RECORD EXCEEDS 1 BYTE LRECL FOR SORTOUT
ICE751I 0 C5-K51707 C6-K51707 C7-K51707 C8-K51707 E9-K51707 E7-K51707
ICE052I 3 END OF DFSORT
This may be my lack of understanding but does this mean, TRAILER1 can't actually increase the file size but
it can reduce it? Meaning, I can create 10 byte count output file from 80 byte input file but not vice versa?
Does it assume that the output file created with TRAILER1 is always less than input file but the reverse is not true?
I am still to test/learn NULL INDICATOR of DFSort but this is really interesting stuff.
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Mon Feb 22, 2010 1:38 pm Post subject:
The length of the output file is determined by the data records, not the report records. The length of the data records must be greater than or equal to the length of the report records. If you want your TRAILER1 length to be 25 bytes, then your data records must be at least 25 bytes. An easy way to make this happen is to add an OVERLAY or BUILD operator to increase the length of the data records. For example:
The doc for the ICE230A message explains this. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
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