Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
Location: East Dubuque, Illinois, USA

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: 8165
Location: East Dubuque, Illinois, USA

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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us