Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Create a VSAM file similar to an already existing VSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Create a VSAM file similar to an already existing VSAM file
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: 7936
Location: Bellevue, IA

PostPosted: Tue Jun 30, 2009 3:57 am    Post subject:
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    Post subject: Reply to: JCL - VSAM files
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: 7936
Location: Bellevue, IA

PostPosted: Tue Jun 30, 2009 4:05 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 30, 2009 11:24 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us