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
 

 

Creation of VSAM cluster using JCL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Creation of VSAM cluster using JCL?
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: 1439
Location: Bangalore,India

PostPosted: Wed Apr 25, 2007 2:11 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 25, 2007 2:12 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Wed Apr 25, 2007 10:44 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Apr 25, 2007 10:52 pm    Post subject: Re: Creation of VSAM cluster using JCL?
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    Post subject: Re:control cards?
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 3:48 pm    Post subject:
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: 686
Location: Earth

PostPosted: Thu Apr 26, 2007 5:28 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 26, 2007 5:38 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu May 03, 2007 3:38 pm    Post subject:
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: 686
Location: Earth

PostPosted: Thu May 03, 2007 3:43 pm    Post subject:
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: 8593
Location: Back in jolly old England

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

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

Active Member


Joined: 27 Feb 2007
Posts: 686
Location: Earth

PostPosted: Thu May 03, 2007 3:59 pm    Post subject:
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    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 VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm


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