View previous topic :: View next topic
|
Author |
Message |
nitinrajan
New User
Joined: 11 Feb 2009 Posts: 2 Location: Pune, Indiai
|
|
|
|
Hi,
How can i create a KSDS - VSAM file similar to an already existing VSAM file?
Thanks,
Nitin. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
1) Do a LISTCAT on the KSDS file and create DEFINE statements to match.
2) Find the IDCAMS DEFINE statements for the original file, copy somewhere else, and update the names (and other parameters where necessary -- such as space allocation).
Do we detect a pattern yet? |
|
Back to top |
|
|
nitinrajan
New User
Joined: 11 Feb 2009 Posts: 2 Location: Pune, Indiai
|
|
|
|
The files was already created by some other user and i don't have the JCL used to create it. So how can i get the file details? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
There is a link to the manuals page at the top of this page. Click on it. Go down the manuals list until you find the VSAM Services for DFSMS. Click on that manual. Find the chapter on LISTCAT. Read it. That tells you how to find out everything about a VSAM file.
Then go to the IBM Redbooks web site. Find a Redbook entitled VSAM Demystified. Read this Redbook from page 1 until you have completely and thoroughly mastered what it says. Repeat as necessary until you do have the material mastered. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or of course you could read the IDCAMS manual and see exactly what it says about this particular subject in the DEFINE CLUSTER section.
If it took me 30 seconds to find out exactly what you want, why don't you take a look too. |
|
Back to top |
|
|
|