Page 1 of 1

balance field declaration in icetool while xtraction

PostPosted: Mon Aug 01, 2011 11:47 am
by ramesh reddy
i am extracting accts using icetool the bal field amt not coming properly...
field name declared as CURRENT-BAL PIC S9(13)V99 COMP-3
while xtraction i declared as HEADER('CURNT BAL') ON(302,08,PD,C4) in icetool.
this declaration giving the result is 0.00,but acct having some balance.

plz help.....

Re: balance field declaration in icetool while xtraction

PostPosted: Mon Aug 01, 2011 12:19 pm
by dick scherrer
Hello,

You need to post some of the input data (in hex). You don't need to post entire records unless they are small, only the problem field(s).

If the records are variable length, did you add 4 for the rdw?

Re: balance field declaration in icetool while xtraction

PostPosted: Mon Aug 01, 2011 1:35 pm
by ramesh reddy
hi dick,
thanks for reply.
my input file records r fb length,
i am writing a report using icetool ...the report records are must have the balance..those records are pulling into the report.
plz give the syntax how to code that one...

Re: balance field declaration in icetool while xtraction

PostPosted: Mon Aug 01, 2011 7:13 pm
by NicC
How about showing us the control statements that you are using and, as Dick requested, some of the data - displayed in hex. Use the code tags to keep your code and data aligned. Code tags are [ code] and [/ code] (without the embedded spaces that I put in there.

Re: balance field declaration in icetool while xtraction

PostPosted: Tue Aug 02, 2011 1:47 am
by Frank Yaeger
CURRENT-BAL PIC S9(13)V99 COMP-3

That declaration is indeed for an 8-byte PD field. So ON(302,08,PD,C4) would be correct. If it's NOT, then either the field does NOT start in position 302 or it does NOT actually match that declaration.

To find out, you can use ON(302,08,HEX) to see what the field really looks like in hex.