They are data sets - not files.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.
Post Reply
seemajain
New Member
Posts: 8
Joined: Sat Jan 23, 2016 12:04 pm

They are data sets - not files.

Post by seemajain »

Hi,

I have seen this many times this statement "They are data sets - not files." like the one here too viewtopic.php?f=20&t=2311#p10343

What exaclty you all want to convey with this? I don't understand it. What difference does it make if we call them files or data-sets? Sorry for the question but this has bothered me.
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: They are data sets - not files.

Post by Robert Sample »

Terminology is critical in IT, where similar terms may mean very different things. A file on a Unix or Windows machine is a sequence of bytes. The file may or may not have line terminators every so often. A data set on a mainframe has a record structure and has no line terminators since the characteristics of the data set are recorded in the catalog and VTOC and within the data set at times. A data set may be sequential, or indexed (if you go back far enough -- indexed doesn't exist on z/OS, though), or relative, or partitioned, or VSAM sequential, or VSAM indexed, or VSAM relative, or VSAM linear. The operating system recognizes and processes these different organizations differently so you can, for example, edit a member of a partitioned data set in ISPF without having to worry about what a PDS really is.

One really good example of the difference is if you create a variable blocked data set on the mainframe, FTP it in binary to a Unix or Windows machine, then FTP it back to the mainframe in binary. Since variable blocked data sets store the record length external to the record, you will lose them by doing this and hence what you get back on the mainframe is not really usable and certainly has no records like the source data set.
seemajain
New Member
Posts: 8
Joined: Sat Jan 23, 2016 12:04 pm

Re: They are data sets - not files.

Post by seemajain »

Thanks Robert. I did not that difference.
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 “Other Mainframe Topics, Off-Topics, FAQs.”