Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us