Is it allowed to edit VSAM file using PHP?

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Kanika
Registered Member
Posts: 21
Joined: Sat Jul 13, 2013 6:31 pm

Is it allowed to edit VSAM file using PHP?

Post by Kanika »

Hi,

We are evaluating and trying to find new ways to access the VSAM file. Is it possible to update a VSAM file using php or some other language on windows? For example, if we download a VSAM file from the mainframes to a Windows Server and use a php program to edit it, will that be possible? And then put the VSAM back on mainframes? If someone has some knowledge about it, please share. We are working on moving away from the use of VSAM and that's this question is asked.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Is it allowed to edit VSAM file using PHP?

Post by Robert Sample »

First, a VSAM data set has control attributes embedded, so you CANNOT merely transfer a VSAM data set to a Windows platform and use it directly.  You MUST unload the VSAM data set to a sequential data set (PDS member is fine) and transfer to Windows as a sequential data set.  You could then build an indexed file on Windows to use in a similar way as VSAM.  I've used GNU COBOL to read / write indexed sequential data sets on a Windows machine before and it works fine.  Whether PHP handles indexed files, I don't know.
Second, transferring back to the mainframe requires transferring a sequential file and then rebuilding the VSAM data set from the transferred data.
Kanika
Registered Member
Posts: 21
Joined: Sat Jul 13, 2013 6:31 pm

Re: Is it allowed to edit VSAM file using PHP?

Post by Kanika »

Thanks. But there are application of Java in mainframes and they can directly handle the VSAM updates as far I know but I do not know for sure. I was thiking of that kind of a way of doing it.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Is it allowed to edit VSAM file using PHP?

Post by enrico-sorichetti »

 try googling with 
vsam jdbc driver zos
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”