IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX VSAM


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Harold Barnes

New User


Joined: 27 Oct 2015
Posts: 30
Location: United States

PostPosted: Sat Oct 05, 2019 2:38 pm
Reply with quote

I've recently discovered the world of REXX VSAM and FILEMGR.
I've successfully populated a VSAM file using FILEMGR with STEM.
I've successfully read the data with FILEMGR and STEM.

Very cool!

I would like to use REXX to query my new VSAM file with a key and get a record. Maybe using FILEMGR FCH or something else?

Maybe there is a non-FILEMGR solution?

I've been googling and haven't found a solution. I'm ready to be enlightened by the gurus.
Back to top
View user's profile Send private message
Harold Barnes

New User


Joined: 27 Oct 2015
Posts: 30
Location: United States

PostPosted: Sat Oct 05, 2019 3:51 pm
Reply with quote

I found an example of using "REPRO" with FROMKEY to write to a temp file and then used "EXECIO" to read the file into a STEM variable.

That worked. icon_biggrin.gif

I tried another example using OUTTRAP and "PRINT" but got RACF'd icon_mad.gif

Is there a better way?
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 416
Location: Denmark

PostPosted: Sat Oct 05, 2019 4:02 pm
Reply with quote

Two free REXX VSAM acess programs springs to mind:
RXVSAMBA from CBTTAPE.ORG file file 669 and harders-jensen.com/wjtech/zprograms.html (newest). This one reads and writes multiple records to/from stem or stack with optional filtering.
RXVSAM from CBTTAPE.ORG file 268 does single record access.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8794
Location: Welsh Wales

PostPosted: Tue Nov 12, 2019 3:03 pm
Reply with quote

I've always used the REPRO FROMKEY TOKEY option.

Slow but effective.

SAS if you have it is quite good for VSAM too
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts SummeRx: a new framework for REXX z/OS CLIST & REXX 6
No new posts A command to change LRECL of an exist... JCL & VSAM 7
No new posts Using REXX to access SDSF; What am I ... CLIST & REXX 38
No new posts FILE STATUS - 39 ON VARIABLE LENGTH V... COBOL Programming 2
Search our Forums:

Back to Top