Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to read and update data in vsam files using rexx.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to read and update data in vsam files using rexx.
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Sun Jul 15, 2007 4:45 pm    Post subject: Re: How to read and update data in vsam files using rexx.
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: 8619
Location: Back in jolly old England

PostPosted: Sun Jul 15, 2007 5:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us