View previous topic :: View next topic |
Author |
Message |
Anand_R Intermediate
Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Fri Jan 31, 2003 6:01 am Post subject: Reading VSAM file thru rexx |
|
|
Hi,
Is it possible to read and get the contents of KSDS vsam file in rexx.. If so please provide me the link/document.s.
any help is highly appreciated.
Thanks
Anand |
|
Back to top |
|
|
Manas Biswal Intermediate
Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Fri Jan 31, 2003 7:13 am Post subject: |
|
|
Hi Anand_R,
The MVS implementation of REXX lacks VSAM support. You cannot directly access VSAM files through REXX.
However, there are work around solutions to this. You can use assembler routines for VSAM access. There are some standard assembler routines in the following links. You can call these assembler modules and pass parameters to it for your purpose.
The following link contains the assembler code to read from a KSDS -
http://www.xephon.com/archive/a002a01
The following code contains the assembler code to write to a KSDS -
http://www.xephon.com/archive/a004a04
The following link contains another approach to the same problem by basically copying the vsam file to a seq file and then using it.
http://www.xephon.com/arcinframe.php/a009a04
Regards,
Manas |
|
Back to top |
|
|
Anand_R Intermediate
Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Fri Jan 31, 2003 8:01 am Post subject: |
|
|
Manas,
Really it helped me a lot.. Thanks for ur response.. |
|
Back to top |
|
|
DaveyC Moderator
Joined: 02 Dec 2002 Posts: 151 Topics: 3 Location: Perth, Western Australia
|
Posted: Fri Jan 31, 2003 8:02 am Post subject: |
|
|
You can check out CBT tape which has a fully functional REXX VSAM package by Mark Winges. It's the best free implementation I've seen.
It handles KSDS, ESDS and RRDS with an interface similar to COBOL, PL/1, C etc.
Get it now !! _________________ Dave Crayford
Last edited by DaveyC on Fri Jan 31, 2003 8:13 am; edited 1 time in total |
|
Back to top |
|
|
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
|
Back to top |
|
|
DaveyC Moderator
Joined: 02 Dec 2002 Posts: 151 Topics: 3 Location: Perth, Western Australia
|
Posted: Fri Jan 31, 2003 8:14 am Post subject: |
|
|
I've corrected it, feel free to edit my post if I have errors...
cheers _________________ Dave Crayford |
|
Back to top |
|
|
moyeenkhan Beginner
Joined: 04 Dec 2002 Posts: 64 Topics: 21
|
Posted: Mon Feb 03, 2003 1:35 pm Post subject: |
|
|
You could REPRO a VSAM file to a flat file within yr rexx program and manipulate the flat file. |
|
Back to top |
|
|
|
|