MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IDCAMS; Creating Dynamic Cluster

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Nov 17, 2004 4:39 am    Post subject: IDCAMS; Creating Dynamic Cluster Reply with quote

Hi,
I am struggling to solve the following problem. Its really greatful to have a better solution from you.

I am creating a VSAM cluster as :

DEFINE CLUSTER -
( -
NAME(TST.CTS.FR04301.M0304.CLUSTER) -
VOLUMES(DETSOE) -
CYLINDERS(5,3) -
CONTROLINTERVALSIZE(4096) -
FREESPACE(10,20) -
KEYS(8,0) -
RECORDSIZE(80,80) -
) -

This definition is in a PS file(SYSIN) in a proc. The cluster name is fixed here the requirement is to submit multiple jobs and jobs have to use
multiple clusters. Please suggest me to create the cluster dynamically from the jcl parameters like


TST.CTS.FR04301.M&mon&year.CLUSTER where mon and year are passed from jcl to proc
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 17, 2004 6:27 am    Post subject: Reply with quote

Kris_madras,

Try this solution
http://www.mvsforums.com/helpboards/viewtopic.php?t=2614&highlight=date+filename

Hope this helps,

Thanks,
Phantom
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 17, 2004 6:33 am    Post subject: Reply with quote

Kris_madras,

Look at the following link for more information.

http://www.mvsforums.com/helpboards/viewtopic.php?t=3153&highlight=date+file

Try searching this site on "date AND file" or "date AND dataset".

Phantom
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Nov 17, 2004 11:59 am    Post subject: Reply with quote

Phantom,
The month and year are passed as symbolic parameters from job to PROC. Whereas Kolusu's solution above uses DATE operator of SORT to get the current date.

Kris,
I just tried this and it worked. First, define a 'dummy' cluster TST.CTS.FR04301.M0304.DCLUSTER (D for dummy). Then, have a IEFBR14 step as follows.
Code:

//HELP     EXEC PGM=IEFBR14                           
//S        DD DSN=TST.CTS.FR04301.M&MON.&YEAR..CLUSTER,
//            DISP=(,CATLG,DELETE),                   
//            LIKE=TST.CTS.FR04301.M0304.DCLUSTER     

_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 17, 2004 11:30 pm    Post subject: Reply with quote

Excellent...Thanks Cogito. Learnt a new thing.

Thanks,
Phantom
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Thu Nov 18, 2004 12:19 am    Post subject: Reply with quote

You are welcome, Phantom.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
kris_madras
Beginner


Joined: 07 Apr 2004
Posts: 41
Topics: 30

PostPosted: Wed Nov 24, 2004 6:54 am    Post subject: Reply with quote

Thanks.. Thanks a lot Cogito.. Thanks for all suggestions and forum Heads.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Wed Nov 24, 2004 7:07 am    Post subject: Reply with quote

You are welcome, Kris.
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group