Page 1 of 1

Define a VSAM file in Unix.

Posted: Thu May 19, 2016 2:58 pm
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?

Re: Define a VSAM file in Unix.

Posted: Thu May 19, 2016 5:08 pm
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

Re: Define a VSAM file in Unix.

Posted: Thu May 19, 2016 5:39 pm
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.

Re: Define a VSAM file in Unix.

Posted: Tue Jun 07, 2016 2:06 pm
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...

Re: Define a VSAM file in Unix.

Posted: Tue Jun 07, 2016 3:51 pm
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.

Re: Define a VSAM file in Unix.

Posted: Fri Jun 17, 2016 3:29 pm
by Nitin Jain
Thanks Robert.