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
 

 

file status in easytrive

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

New User


Joined: 01 Jun 2010
Posts: 43
Location: India

PostPosted: Wed Jun 15, 2011 2:25 pm    Post subject: file status in easytrive
Reply with quote

How to check file status in easytrive while reading flat file.

I want to do ...
If status = 0 then perform required.
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Jun 15, 2011 2:36 pm    Post subject: Reply to: file status in easytrive
Reply with quote

Have you looked in the manual? Searched this forum for FILE-STATUS?
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2433
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 15, 2011 2:52 pm    Post subject:
Reply with quote

FILE-STATUS is not for flat files. It is used for ISAM/VSAM/DLI/SQL processing.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Jun 15, 2011 3:09 pm    Post subject:
Reply with quote

To expand on what Peter has said:

If you have JOB INPUT filename, and filename is VSAM, don't bother checking the FILE-STATUS. Easytrieve is doing all that for you automatically. Unless, of course, you POINT to particular parts of the file, so do the check on the status after POINT. Or WRITE.

Don't know about the other types, not used them. I guess the manual would say, but I'm not going to look it up.

If you have JOB INPUT filename, and filename is "flat", again, nothing to check.

If you are doing controlled reads (GET) of a "flat" file, you use EOF to determin end-of-file, not FILE-STATUS. PUT will not return to your program if it has failed to write a record.
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 Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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