View previous topic :: View next topic
|
Author |
Message |
kumar1234
New User
Joined: 06 Nov 2007 Posts: 84 Location: bangalore
|
|
|
|
Hi,
I am trying to replace a value in the input flat file itself. But I am getting an error. Could please let me know what could be the reason. I checked the file DD name in Jcl is correct.
Error Im getting is '*******B054 NOT A VALID FILE - B3700251'
Here is the easytrieve code which I have used.
IN-CLAIM-NUMBER 005 012 A
IN-REINS-TYPE-MST 026 001 A
IN-RESV-AMT-CURRENT-MST 313 006 P 2
*
*
* OUTPUT FILE - FILE NAME CORRESPONDS TO DDNAME IN JCL
*
HISTORY-RECORD-CNT W 006 P 2 VALUE 38159.29
*
* WORKING STORAGE
*
* PROCEDURE DIVISION
IF IN-CLAIM-NUMBER EQ '564614597011' +
AND IN-REINS-TYPE-MST EQ '0' +
AND IN-RESV-AMT-CURRENT-MST EQ 161.29
MOVE HISTORY-RECORD-CNT TO IN-RESV-AMT-CURRENT-MST
WRITE B3700251 UPDATE
*******B054 NOT A VALID FILE - B3700251
Could anyone let me know on this.
Thanks |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You'll go wrong, and send your colleagues and future viewers wrong, by using names list this:
Code: |
HISTORY-RECORD-CNT W 006 P 2 VALUE 38159.29 |
That is not the problem. It is a problem.
You need to get hold of a manual. First, look up the error message. Second, look at where WRITE .... UPDATE can be used, and look where WRITE ... can be used.
You haven't shown your file definition, but we know it is wrong. |
|
Back to top |
|
|
kumar1234
New User
Joined: 06 Nov 2007 Posts: 84 Location: bangalore
|
|
|
|
This is the file definition
FILE B3700251
*
*
IN-CLAIM-NUMBER 005 012 A
IN-REINS-TYPE-MST 026 001 A
IN-RESV-AMT-CURRENT-MST 313 006 P 2
not sure why im getting this error. I need to replace that amount in a flat file. |
|
Back to top |
|
|
|