IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Create a VSAM file similar to an already existing VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nitinrajan

New User


Joined: 11 Feb 2009
Posts: 2
Location: Pune, Indiai

PostPosted: Tue Jun 30, 2009 3:47 am
Reply with quote

Hi,

How can i create a KSDS - VSAM file similar to an already existing VSAM file?


Thanks,
Nitin.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 30, 2009 3:57 am
Reply with quote

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
View user's profile Send private message
nitinrajan

New User


Joined: 11 Feb 2009
Posts: 2
Location: Pune, Indiai

PostPosted: Tue Jun 30, 2009 3:59 am
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 30, 2009 4:05 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 30, 2009 11:24 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top