Before this they are moving the values to host variables from the file like this:
Code:
MOVE DUNS-NBR TO GRN001-DUNS-NBR
MOVE DATE TO GRN001-FINL-STMT-PRD-END.
MOVE A(counter) TO GRN003-BAL-SHT-CLSF-CD.
MOVE B(counter) TO GRN003-BAL-SHT-CAT-CD.
MOVE C(counter) TO GRN003-AMT.
Counter varies from 1 to 20.
The sql inserts the values A1,B1,C1.
After inserting the query takes the values A2,B2,C2.
As already these values are inserted into the table the query fails with -803.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Mon Oct 18, 2004 10:46 am Post subject:
Paneendra,
what is the format and length of the A,B,C? Post the copybook layout definitions for your input file and I will post the solution. Another option is to check in the program itself.
option 1: declare a working-storage variable to hold the values.
Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
Posted: Tue Oct 19, 2004 6:52 am Post subject:
VKphani,
The following DFSORT/ICETOOL jcl will give you the desired results. A brief explanation of the job. We need to break each occurance of BSF-FINL-DATA into individual records, so that we can eliminate the duplicates. The parm / is used to split the records. Once we break 1 single into 2 records then we sort the on the key and eliminate the duplicates.
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