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

How to read and update data in vsam files using rexx.


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

New User


Joined: 13 Jul 2007
Posts: 24
Location: chennai

PostPosted: Sun Jul 15, 2007 1:01 pm
Reply with quote

IS there any rexx command to read or update a vsam file?
i think the EXECIO command is returning an error message while reading a vsam file.
i need the rexx commands related to vsam updation,delete,write.

Thanks!!
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jul 15, 2007 4:45 pm
Reply with quote

Quote:
IS there any rexx command to read or update a vsam file?
no!!

Quote:
i think the EXECIO command is returning an error message while reading a vsam file.
EXECIO does not support vsam files

Quote:
i need the rexx commands related to vsam updation,delete,write.
The only way to satisfy Your need is to use a REXX external function package...
If I remember correctly there should be something on this subject in the
CBT mods or in the XEPHON free downloads( articles older than two/three years)

As a quick and dirty alternative You might repro to a PS file,
process the the PS file by creating a new file,
repro back to VSAM... clumsy but it works

regards

e.s
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sun Jul 15, 2007 5:50 pm
Reply with quote

The way that I've managed in the past within the REXX EXEC is to REPRO the required record out of the VSAM file into a work dataset, perform the updates required with REXX and then REPRO REPLACE the record back.

Messy, but it does work.
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 How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Store the data for fixed length COBOL Programming 1
Search our Forums:

Back to Top