IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

file status in easytrive


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 15, 2011 2:36 pm
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jun 15, 2011 2:52 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Jun 15, 2011 3:09 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top