View previous topic :: View next topic
|
Author |
Message |
sampathkmn
New User
Joined: 12 Dec 2005 Posts: 31 Location: bangalore
|
|
|
|
Hi,
Can we access vsam file using clist. If yes, is it there any sysnax change as compared to access of nonvsam files using clist?
Thanks,
Sampath |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
as of this moment, CLIST has no access.
Rexx, as delivered by IBM, has no direct vsam abillities.
there is a module (search the forum) that can be obtained free on the web, REXXVSAM (I think).
This can be CALLed from a rexx script (maybe even CLIST)
I would suggest that you forget CLIST and learn/use REXX. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
You can invoke IDCAMS and perform extremely basic tasks such as retrieve a record by key and then replace it in the KSDS.
Apart from that, nothing else. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Quote: |
REXXVSAM (I think). |
RXVSAM , actually.
Garry. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Thx Garry. |
|
Back to top |
|
|
sampathkmn
New User
Joined: 12 Dec 2005 Posts: 31 Location: bangalore
|
|
|
|
thanks for the response.
with these response can i conclude that vsam access using CLIST not possible? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
with these response can i conclude that vsam access using CLIST not possible? |
Why would you believe this? You were told about reading/updating via idcams as well as the possibility that rxvsam might do what you need.
Whether you can successfully use these depends on your requirement which you have not described. |
|
Back to top |
|
|
sampathkmn
New User
Joined: 12 Dec 2005 Posts: 31 Location: bangalore
|
|
|
|
My Requirement is as follows:
I use a vsam KSDS as input which will be opened in i-o mode(read and update). The vsam has to be read useing key field which comes from a screen using clist.
If key is found in vsam display the record on screen where nuser will have option to edite the data, and then same data is updated in vsam file.
i guess this data is sufficient, everything needs to be handled in clist. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Why can't this process be coded in COBOL? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Please read my previous reply to your topic. |
|
Back to top |
|
|
sampathkmn
New User
Joined: 12 Dec 2005 Posts: 31 Location: bangalore
|
|
|
|
Can you please send me sample code to invoke IDCAMS from clist? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
It's over 15 years since I've even looked at a CLIST, and I'm not going to start ploughing through the manuals now
I might have some REXX code that does the same sort of thing. Will post it if I can find it. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
The REPRO statement is supported in REXX so should be in CLIST too
Code: |
" REPRO IFILE(KSDSIN) OFILE(WORK) FROMKEY("KEYIN") TOKEY("KEYIN")" |
So by building the command above, using REXX, it is also executed. |
|
Back to top |
|
|
|