Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading and writing to VSAM files using REXX

Status
Not open for further replies.

lowesman

Programmer
May 13, 2003
2
0
0
US
Is it possible to read and write to VSAM files using REXX?
If so, could someone give me some examples. I am currently working in a OS390 enviroment.
 
Unless things have changed recently, there isn't a way to do it with native REXX.

You may want to check out REXX/Tools by a company called Open Software Technologies


There may be others out there but this is one I have used in the past and it is pretty awesome.
 
If you can't get your company to spring for OST's excellent VSAM interface, you might have to settle for RXVSAM from the CBT tape. It's not as good, but it's free.




Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
A simple solution is to use REPRO. This code reads on record from
a VSAM parameter file.

ADDRESS TSO ,
"ALLOCATE FILE(TEMPDD) NEW SPACE(1) TRACKS DSORG(PS) RECFM(F,B),
LRECL(139) BLKSIZE(27939)"

ADDRESS TSO ,
"REPRO INFILE("VSAM_file") OUTFILE("Seq_file") COUNT(1)"

ADDRESS TSO ,
"EXECIO 1 DISKR" Seq_file "(FINIS STEM Param_data."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top