Can a file be opened in IO mode in Easytrieve?



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

Can a file be opened in IO mode in Easytrieve?

Postby satya549 » Tue Feb 01, 2011 11:57 am

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?
satya549
 
Posts: 2
Joined: Tue Feb 01, 2011 11:50 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Tue Feb 01, 2011 12:05 pm

It will be in the manual if that function is available.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby satya549 » Tue Feb 01, 2011 12:16 pm

Hi NicC,

Which manual? CA - Manual??
satya549
 
Posts: 2
Joined: Tue Feb 01, 2011 11:50 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby NicC » Tue Feb 01, 2011 12:33 pm

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)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

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

Postby BillyBoyo » Tue Feb 01, 2011 4:42 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

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

Postby dick scherrer » Wed Feb 02, 2011 1:25 am

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 :)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby BillyBoyo » Wed Feb 02, 2011 6:03 am

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

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

Postby enrico-sorichetti » Wed Feb 02, 2011 1:27 pm

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/
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

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

Postby BillyBoyo » Wed Feb 02, 2011 10:51 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

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

Postby Zio69 » Wed Feb 16, 2011 7:20 pm

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....)
Zio69
 
Posts: 31
Joined: Wed Feb 16, 2011 7:08 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post