Posted: Fri May 29, 2009 3:35 am Post subject: ICETOOL , VB input record file...
Hi,
Using ICETOOL, I am trying to selcet data from input file to output file.
If input file is FB then it works fine but if input file is VBA type then my JCL is failing
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Fri May 29, 2009 5:16 am Post subject:
I believe there is a difference of 4 for the offset of a fix-length record and a variable-length record.
I believe that if 29 was the starting position for the FLR, then 33 should be the length for the VLR.
The difference of 4 is due to the RDW (Record Descriptor Word - 4 byte vli) at the beginning of the VLR. _________________ Dick Brenholtz
American living in Varel, Germany
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Fri May 29, 2009 9:52 am Post subject:
avd678,
A VBA record has the following structure:
Code:
|RDW|cc|Data
4 1 n
So the first data byte starts at 6, not 1. If you are not taking the RDW and cc (carriage control character) into account when determining the starting position of your field, then you need to add +5 which would give you ON(34,2,BI).
If that doesn't help, then use DFSORT to show what your VBA records look like in HEX:
Code:
OPTION COPY
INREC BUILD=(1,4,1,4,HEX,5,HEX)
That should help you find the correct starting position of your field.
BTW, since your input file has RECFM=VBA, do you really want your output file to have RECFM=VB instead of RECFM=VBA? _________________ 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
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Jun 02, 2009 9:22 am Post subject:
The message tells you that you have a "short" record ... you specified ON(34,2,BI) which requires a record of at least 35 bytes, but you have a record that is only 6 bytes. If you want to eliminate short records before SELECT processing you can use:
If you want to do something else about the short records, you need to explain what you want to do. _________________ 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