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.
Post Reply
Nitin Jain
Registered Member
Posts: 20
Joined: Tue Aug 20, 2013 11:33 am

Define a VSAM file in Unix.

Post by Nitin Jain »

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: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: Define a VSAM file in Unix.

Post by enrico-sorichetti »

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: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Define a VSAM file in Unix.

Post by Robert Sample »

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.
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 »

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: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Define a VSAM file in Unix.

Post by Robert Sample »

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.
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 »

Thanks Robert.
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 “zLinux, USS and other Operating Systems for Mainframes.”