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: 10231
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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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