What's the difference b/w create Data set and Catalog Data S

JES2/3, JCL, utilities.
Post Reply
Phani Reddy
New Member
Posts: 5
Joined: Tue Jun 24, 2014 4:47 pm

What's the difference b/w create Data set and Catalog Data S

Post by Phani Reddy »

Hi,

What's the difference b/w create Data set and Catalog Data Set in ISPF 3.2? I'm not able to differentiate them, they seem to do the same thing. If not, can someone please help me to understand it.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1891
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: What's the difference b/w create Data set and Catalog Da

Post by Robert Sample »

Actually, they do not do the same thing at all. To understand the difference, however, you need to understand the purpose of the catalog. The catalog is a data set that contains data set names and volume serials -- along with a few other pieces of data -- but that is all. In order to actually use the data set, or find out much about it, you have to access the volume serial on which the data set resides.

It is possible for data sets to be created (tape OR disk) without being cataloged. In order to access such a data set, you MUST provide the data set name, the disposition (both just like for a cataloged data set) but you must also provide the volume serial and the unit (which come from the catalog when the data set is cataloged) -- four pieces of data instead of two. For a tape, you must also provide information about the label type and the sequence number (where the data set resides on the tape).

And for completeness, there is a master catalog and multiple user catalogs on a z/OS system -- the master catalog is identified during the IPL process and user catalogs are defined in the master catalog; most data sets will be defined in user catalogs although some system data sets will be defined in the master catalog. These details don't matter from an application programmer's viewpoint -- they only matter to system programmers.
Phani Reddy
New Member
Posts: 5
Joined: Tue Jun 24, 2014 4:47 pm

Re: What's the difference b/w create Data set and Catalog Da

Post by Phani Reddy »

Thanks Robert. It helps great!
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 “JCL - Job Control Language.”