Page 1 of 1

Help needed in resolving A006 PROGRAM error..

PostPosted: Fri Feb 13, 2009 12:02 am
by tania
I am getting the following error in my easytrieve program:

66 *******A006 PROGRAM INTERRUPT - CODE 7 (DATA EXCP)
INTERRUPT OCCURRED AT 049C BLOCK 1 FROM EP CA-EASYTRIEVE PLUS 6.4
INSTRUCTION AT 0000F4AC IS FA97402A5093
FIRST OPERAND ADDRESS 0000EC72 CONTENTS 0000000000000000000C
SECOND OPERAND ADDRESS 0002CD73 CONTENTS F2F2F0F8F4F9F8F7

The input file to this prog is getting created using a SAS program and it has 3 amount fields. These fields are defined in input file as follows:
MAILORDERAMT :14.2
AMTPERCYC :10.2
AMTDIFF :10.2

These fields are defined in easytrive as follows:
EXP-MAIL-ORDER-AMT 148 08 P 2
EXP-AMT-PER-CYC 162 06 P 2
EXP-AMT-DIFF 172 06 P 2

I tried defining them as Numeric too, instead of packed, and it still does not work. Can you please help me decipher it.

Re: Help needed in resolving A006 PROGRAM error..

PostPosted: Fri Feb 13, 2009 1:11 am
by dick scherrer
Hello Tania and welcome to the forum,

FIRST OPERAND ADDRESS 0000EC72 CONTENTS 0000000000000000000C
SECOND OPERAND ADDRESS 0002CD73 CONTENTS F2F2F0F8F4F9F8F7
The first value is packed-decimal (comp-3) - the other is not, it is zoned-decimal. They each need to be defined properly to eztrieve. Also, have you been able to confirm that the displacements are correct?

Suggest you look at the data with "hex on" and make sure the data is what you expect.

Re: Help needed in resolving A006 PROGRAM error..

PostPosted: Fri Feb 13, 2009 4:12 am
by tania
I tried changing the input to zoned decimal and it worked.. Thank you so much...

Re: Help needed in resolving A006 PROGRAM error..

PostPosted: Fri Feb 13, 2009 4:25 am
by dick scherrer
You're welcome - thanks for the follow-up :)

d