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

Creation of VSAM cluster using JCL?


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

New User


Joined: 24 Apr 2007
Posts: 5
Location: Bangalore

PostPosted: Wed Apr 25, 2007 2:06 pm
Reply with quote

could you please let me know the JCL for creating a VSAM cluster?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Apr 25, 2007 2:11 pm
Reply with quote

Anne,

Use IDCAMS and create the cluster. Let us know, if you need the control card.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Apr 25, 2007 2:12 pm
Reply with quote

The JCL is simple .....
Code:

//IDCAMS   EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *
   your IDCAMS control statements go here
/*


And here's a link to IDCAMS to help you define your cluster

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I230/14.0?DT=20040628101835

You can actually use raw JCL to define the cluster as well, and this method can be found in the JCL manual from the "Manuals" link at the top of the page.
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Wed Apr 25, 2007 3:01 pm
Reply with quote

Click on the JCLS tab given on top of this page and then click on IDCAMS link, you can get ehe JCL you require
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Apr 25, 2007 10:44 pm
Reply with quote

Hello,

A good way to get yourself a set of control statements is to find the VSAM definition of a similar file at your location.

Once you have that control info, use it and the IDCAMS manual to build the statements for your new vsam file.

When you have questions, we're here.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 25, 2007 10:52 pm
Reply with quote

I think this is what the O/P is asking for.
Back to top
View user's profile Send private message
annesequeira

New User


Joined: 24 Apr 2007
Posts: 5
Location: Bangalore

PostPosted: Thu Apr 26, 2007 3:27 pm
Reply with quote

murmohk1 wrote:
Anne,

Use IDCAMS and create the cluster. Let us know, if you need the control card.




oh i am not aware of contorl cards as i am doing this for the first time- is there no other way of doing this?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Apr 26, 2007 3:48 pm
Reply with quote

The control statements are easy, but you do need to know about the VSAM file that you want.

a) What name do you want to call your cluster
b) What will the file be used for, DB2, IMS, general data
c) Does it require an index
d) Where is the key and how long is the key
e) Is it a fixed length file or variable length
f) What are the record length(s), average and maximum
g) Will you be doing inserts into the file if indexed
h) How many records will it hold
i) Will it require an alternate index
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu Apr 26, 2007 5:28 pm
Reply with quote

expat,
That will confuse the OP.
I think dick's advice will suit the most for OP.
Quote:
A good way to get yourself a set of control statements is to find the VSAM definition of a similar file at your location.

To add little bit -
If your site has FILE-AID then it is the easiest way to copy attributes of existing VSAM dataset. (IMHO icon_smile.gif )
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Apr 26, 2007 5:38 pm
Reply with quote

agkshirsagar wrote:
expat,
That will confuse the OP.

Maybe, but in my view these are the basic requirements for knowing how to define your files correctly. If the person wanting to allocate the file can not answer 80% of the questions, I'm not sure I would like them logging into my system.
Back to top
View user's profile Send private message
ahr

New User


Joined: 24 Apr 2007
Posts: 14
Location: India

PostPosted: Thu May 03, 2007 3:37 pm
Reply with quote

What is the meaning of OP
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 03, 2007 3:38 pm
Reply with quote

OP = Original Poster (Officially icon_biggrin.gif icon_biggrin.gif icon_biggrin.gif )
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu May 03, 2007 3:43 pm
Reply with quote

Quote:
OP = Original Poster (Officially )

Like many of us I was confused by shortforms used in this forum. icon_lol.gif
Ex: OP, MHO, IMHO, FUD
Now I have got used to it and I too have started using them icon_lol.gif .
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu May 03, 2007 3:54 pm
Reply with quote

What's FUD ?
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Thu May 03, 2007 3:59 pm
Reply with quote

Fear, uncertainty and doubt, a marketing strategy. icon_lol.gif
Ask william, he used it once...

I forgot 'my $0.02' in my last post. icon_lol.gif
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
Search our Forums:

Back to Top