I am reading a input file(in1) and creating a report(r1).
the layout of the input is:
01 input rec.
03 field1 pic x(05)
03 fileld2 pic x(02)
03 field3 pic x(02)
03 field4 pic x(02)
03 error-codes pic x(50).
value in the error code can is 01,02,03,04,32,06,76,08,09,10
or it can be 01,02,03 or any combination but maximum no. of error
codes can be upto 10.
now while writing to report my report should look like
[code] ***report header**
field1 field2 field3 field4 error-code error-message
aaaaa aa aa aa 01 eligibility missing
02 invalid code
03 client code
32 referece id
bbbbb bb bb bb 03 client code
32 reference id
A single record can contain the max error code or 10 ...
can anyone pls give the logic while reading the record
how i will see the error codes and how i will print
the error message in the report along with their corresponding
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
Could give a sample of the input record.
Am not clear on what value the error-codes field will have exactly.
Also, the error-message you have given as part of the report, where do we get that description.