Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10274
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: 8593
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us