View previous topic :: View next topic
|
Author |
Message |
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
Hello all.
DISP=(NEW,CATLG,DELETE) Disp specifies the disposition of dataset,
NEW - Dataset not exists, need to create
CATLG - If step executed successfully, dataset should be cataloged
DELETE - If any error occurred, Dataset should be deleted
Can somebody pls explain the concept of cataloging ?
and while opening a cataloged dataset , we always give name in single qoute also. is that a convention to identify to look in a specific place for the dataset
thanks
Sunny |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
By being cataloged, the volser of where it resides is known by the catalog and is available without you needing to know where.
Uncataloged datasets would need a volser parameter to tell the system where to find it.
Generally, when referencing a non quoted dataset, your tso userid gets plugged in front of the dataname. |
|
Back to top |
|
|
sunny_io
New User
Joined: 11 Jul 2007 Posts: 68 Location: noida
|
|
|
|
term volser i understand , should mean address or a pointer.
Pls provide some more info on the term catalog.
Where is it mentained . Is it updated each time we edit / add / delete a file
Can PDS / Datasets / libraries all be cataloged
Use of cataloge
thanks
Sunny |
|
Back to top |
|
|
Balaji Krishnamurthy
New User
Joined: 26 Feb 2008 Posts: 20 Location: chennai
|
|
|
|
IBM mainframe catalog is like an index in a book. It contains the details of all datasets and the volumes in which they reside. So, once you give the parameter as catalog, IBM will put an entry into the system catalog. So, the next time you access the dataset, you just have to specify the data set name and the sysem will pick the volume serial number from the catalog and mounts that volume to read the dataset. |
|
Back to top |
|
|
Mohit Saxena
New User
Joined: 21 Aug 2007 Posts: 9 Location: US
|
|
|
|
Quote: |
Is it updated each time we edit / add / delete a file |
catalog is not updated while we edit a file, it will only be updated on adding/deleting.
Quote: |
Can PDS / Datasets / libraries all be cataloged |
Yes.. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
My Boy,
Forget about Mainframes, just for some time think for a general meaning of English word "Catalog". Many meanings, such as..directory, index, list...
"Catalog" in Mainframes is no more different, calatlog is the collection of all data set indexes that are used by the control program to locate a volume containing a specific data set.
This goes back to that time when mainframes were not 'rich' enough to understands the whereabouts of a file (DSN). User had to provide the information on which VOLume SERial (DASD or TAPE) my files resides, to overcome this Catalog service came into the picture, when in DISP parameter we use (,CATLG,) system (SMS) makes an entry (like a place holder) in Sytem catalog. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Further,
SMS (storage management subsystem) contols datasets allocations on MVS with dataclass storeclass parameters that define DCB.
Before the advent of SMS, you had to supply all DCB and volume information in JCL, and no check was made as to the existance of datasets (it means you could have two datsets residing on different volumes causing troubles in production runs -sometimes) then came the catalog services, you could no longer catalog already cataloged datasets and SMS goes further by relieving the user from supplying DCB (lrecl. blksize, recfm) , volume and space parameters.
Hope this helps. |
|
Back to top |
|
|
|