Page 1 of 1

Variable Length in ICETOOL

PostPosted: Tue Jan 17, 2012 3:19 pm
by fornanthakumar
Hi,

I am using ICETOOL to get the trailer sum up records for my project. It does have header and trailer. Hence this file consider as variable length record with three different layout for header (33 length), trailer and transaction record respectively.

My SORT card like,
SORT FIELDS=(58,4,CH,A,63,3,CH,A,67,16,ZD,A,84,4,CH,A)
OUTFIL REMOVECC,
SECTIONS=(58,4,63,3,67,16,84,4,
TRAILER3=(5,26,TOT=(31,8,PD,TO=PD,LENGTH=8),39,190,C'T'))

While executing this utility , i got an error
"ICE218A 0 37 BYTE VARIABLE RECORD IS SHORTER THAN 87 BYTE MINIMUM FOR " because of variable length..

OPTION VLSHRT/VLSCMP are not working in ICETOOL..

Please somebody help me out on this...

Re: Variable Length in ICETOOL

PostPosted: Tue Jan 17, 2012 4:44 pm
by BillyBoyo
Can you be more exact about your processing please, with a sample from your input dataset and the expected output for that sample. If you have headers and trailers on your input, how do you want them to appear on your output?

Re: Variable Length in ICETOOL

PostPosted: Tue Jan 17, 2012 11:33 pm
by Frank Yaeger
fornanthakumar,

Since you didn't show your complete job or JES log,it's difficult to know exactly what you're doing (you mention ICETOOL but you aren't showing any ICETOOL JCL).

The ICE218A refers to a minimum of 87 bytes which would correspond to your 84,4,CH,A sort field. VLSHRT would take care of that, so perhaps you aren't coding it in the correct way. Wherever you have these control statements:

  SORT FIELDS=(58,4,CH,A,63,3,CH,A,67,16,ZD,A,84,4,CH,A)
  OUTFIL REMOVECC,
    SECTIONS=(58,4,63,3,67,16,84,4,
   TRAILER3=(5,26,TOT=(31,8,PD,TO=PD,LENGTH=8),39,190,C'T'))


add OPTION VLSHRT to them like this:

  OPTION VLSHRT
  SORT FIELDS=(58,4,CH,A,63,3,CH,A,67,16,ZD,A,84,4,CH,A)
  OUTFIL REMOVECC,
    SECTIONS=(58,4,63,3,67,16,84,4,
   TRAILER3=(5,26,TOT=(31,8,PD,TO=PD,LENGTH=8),39,190,C'T'))


If that doesn't work then show your complete JES log for the failing run. Also, tell me the RECFM and LRECL of your input file.