MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reading VSAM file thru rexx

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Fri Jan 31, 2003 6:01 am    Post subject: Reading VSAM file thru rexx Reply with quote

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
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Fri Jan 31, 2003 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Anand_R
Intermediate


Joined: 24 Dec 2002
Posts: 189
Topics: 60

PostPosted: Fri Jan 31, 2003 8:01 am    Post subject: Reply with quote

Manas,

Really it helped me a lot.. Thanks for ur response..
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Fri Jan 31, 2003 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Premkumar
Moderator


Joined: 28 Nov 2002
Posts: 77
Topics: 7
Location: Chennai, India

PostPosted: Fri Jan 31, 2003 8:05 am    Post subject: Reply with quote

Correct URL for CBT Tape is http://cbttape.org/
Back to top
View user's profile Send private message Send e-mail
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Fri Jan 31, 2003 8:14 am    Post subject: Reply with quote

I've corrected it, feel free to edit my post if I have errors...

cheers Embarassed
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Feb 03, 2003 1:35 pm    Post subject: Reply with quote

You could REPRO a VSAM file to a flat file within yr rexx program and manipulate the flat file.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group