Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Easytrieve Error, NOT A VALID FILE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Fri Jan 16, 2015 11:54 am    Post subject: Easytrieve Error, NOT A VALID FILE
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Jan 16, 2015 1:18 pm    Post subject: Reply to: Easytrieve Error
Reply with quote

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
View user's profile Send private message
kumar1234

New User


Joined: 06 Nov 2007
Posts: 84
Location: bangalore

PostPosted: Fri Jan 16, 2015 1:52 pm    Post subject: Reply to: Easytrieve Error
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us