Page 1 of 1

Can a file be opened in IO mode in Easytrieve?

PostPosted: Tue Feb 01, 2011 11:57 am
by satya549
Hi,

Please let me know if a file can be opened in I-O mode in Easytrieve. If so, what is the keyword for it?

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Tue Feb 01, 2011 12:05 pm
by NicC
It will be in the manual if that function is available.

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Tue Feb 01, 2011 12:16 pm
by satya549
Hi NicC,

Which manual? CA - Manual??

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Tue Feb 01, 2011 12:33 pm
by NicC
Well, of course! You are using Easytrieve so you would refer to the Easytrieve manual. If it is not close by then ask a co-worker. Otherwise go and find the manual. If you cannot find it get the person responsible for the maintenance of Easytrieve to get another one from CA - I belive you can log in and download their manuals. If no one seems to have a login for CA then get one (you will probably have to quote your site licence)

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Tue Feb 01, 2011 4:42 pm
by BillyBoyo
satya549 wrote:Hi,

Please let me know if a file can be opened in I-O mode in Easytrieve. If so, what is the keyword for it?


Depends on the type of file you want to open. VSAM, yes.

You can also google for a manual, there are a number of PDF's out there.

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Wed Feb 02, 2011 1:25 am
by dick scherrer
Hello,

If your organization is licensed to use the product, all of the material may be downloaded free fro CA Support.

If you are not registered for CA Support, you need to register, but this is also both painless and free :)

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Wed Feb 02, 2011 6:03 am
by BillyBoyo
Are you a student? Or working using Easytrieve Plus? If the latter, you have answers above.

If you are a student on some training course, trying to get into computing, whatever the language, you maybe don't have a licence number or a mainframe serial number. For lots of IBM products, you are lucky, just register to this board, search and you will find links to on-line, searchable, IBM manuals. Not an IBM product you are learning, more tricky.

So, if you are a student, with no licenced access to an appropriate manual, bite the bullet and ask again, pointing out your situation. Nobody has to answer you, everyone is doing this on their own time, so it is good to acknowldge assistance and expand on your question if necessary.

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Wed Feb 02, 2011 1:27 pm
by enrico-sorichetti
For lots of IBM products, you are lucky, just register to this board, search and you will find links to on-line, searchable, IBM manuals.
why use second hand <things>

no need to register when using
http://www-03.ibm.com/systems/z/os/zos/ ... index.html
the first hand whole shebang

and for more interesting things
http://www.redbooks.ibm.com/

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Wed Feb 02, 2011 10:51 pm
by BillyBoyo
enrico-sorichetti wrote:
For lots of IBM products, you are lucky, just register to this board, search and you will find links to on-line, searchable, IBM manuals.
why use second hand <things>

no need to register when using
http://www-03.ibm.com/systems/z/os/zos/ ... index.html
the first hand whole shebang

and for more interesting things
http://www.redbooks.ibm.com/


Thanks. Why I was suggesting registering to these boards, was so that the "search" option can be used, to find posts like this one with links to the manuals. Once this topic drops down the list, "search" is going to be the easiest way for a newcomer to find the links.

Re: Can a file be opened in IO mode in Easytrieve?

PostPosted: Wed Feb 16, 2011 7:20 pm
by Zio69
Well, leaving manuals on the side for a moment, the answer to your very first question is two-fold: it depends.
If it's a VSAM file the answer is yes while you cannot do that for flat (sequential) files.
The definition for VSAM is:
FILE yourfile VS .... UPDATE
"...." means whatever parameters you coded; actually you needn't code any (easytrieve gets the dataset attributes from the o/s), but if they're already there no prob.
Then, when you want to rewrite you'll have to code:
WRITE yourfile UPDATE
It goes without saying (as far as EZT is involved!) that you oughta read the record you're updating before issuing WRITE .... UPDATE
In case you want to check the update results you just have to append STATUS to the above statement; if a VSAM error occurs, control will be given back to your program where you can check the results by inspecting the FILE-STATUS system variable, i.e.
IF yourfile:FILE-STATUS NE 0
do whatever you deem suitable
END-IF

(EDIT oops, I didn't notice someone had already answered the question....)