Define a VSAM file in Unix.

Linux on System z, Linux on zSeries, Linux/390, zLinux, z/Linux, z/VM & UNIX Shell services. IBM OS/360, OS/370, MVS, OS/390, TPF, VM/CMS, VM/ESA, VSE/ESA, z/VSE, z/OS.
Previous topicNext topic

Topic Author
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

Define a VSAM file in Unix.

Post by Nitin Jain » Thu May 19, 2016 2:58 pm

Hi All,

I am new to UNIX and shell service. I would like to know if we can define a VSAM file in Unix? And it will work similar way as in zOS environment? If it is not so then what is equivalent to VSAM KSDS on UNIX side?




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 874
Joined: Wed Sep 11, 2013 3:57 pm

Re: Define a VSAM file in Unix.

Post by enrico-sorichetti » Thu May 19, 2016 5:08 pm

I would like to know if we can define a VSAM file in Unix?
NO
And it will work similar way as in zOS environment?
NOT applicable
If it is not so then what is equivalent to VSAM KSDS on UNIX side?
NO equivalent


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-)

User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1331
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: Define a VSAM file in Unix.

Post by Robert Sample » Thu May 19, 2016 5:39 pm

VSAM data sets (only Unix has files on a system z) can ONLY be defined by IDCAMS which is not a Unix utility.  VSAM data sets can be used in Unix System Services by a COBOL program, but it requires the program reference the VSAM data set through a DD name (which is distinctly not a Unix concept).
And VSAM data sets can be sequential (ESDS), relative (RRDS), keyed (KSDS) or linear -- which do you mean?  Sequential files in Unix System Services are different from ESDS but work in the same way.  The others don't have good equivalents in any Unix.




Topic Author
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

Re: Define a VSAM file in Unix.

Post by Nitin Jain » Tue Jun 07, 2016 2:06 pm

Thanks Robert.

I know some unix so initially I was thiking about an ESDS dataset; I should have made it clear in my first post. So basically there is just no equivalent but the "sequential file for unix" is equivalent to ESDS and for that matter sequential files too, right? (QSAM)

We are thiking to replicate an existing application in unix, that's why I am asking these questions...



User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1331
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: Define a VSAM file in Unix.

Post by Robert Sample » Tue Jun 07, 2016 3:51 pm

Well, as usual, it depends.  If the ESDS has an alternate index defined on it, it is NOT the equivalent of a sequential data set.




Topic Author
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

Re: Define a VSAM file in Unix.

Post by Nitin Jain » Fri Jun 17, 2016 3:29 pm

Thanks Robert.



Previous topicNext topic

Return to “zLinux, USS and other Operating Systems for Mainframes.”