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: 2435
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 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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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