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

Specifying DD name in the certain IDCAMS commands


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

New User


Joined: 08 Apr 2008
Posts: 36
Location: mumbai

PostPosted: Thu Oct 16, 2008 11:24 am
Reply with quote

Hi,
We can specify DD names in statemnets like REPRO, BLDINDEX but
Can we specify DD names in the IDCAMS commands like:
DEFINE CLUSTER(NAME(DD1)....
DEFINE AIX(NAME(DD1)....
MODEL(DD1)....

Want to create a common sysin datalib that can be used by several batch jobs runnning parallely to create clusters with same attributes but different names. i get JCL errors when i give DD names as the DISP is not correctly coded...is there a way..

Thanks...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Oct 16, 2008 11:34 am
Reply with quote

Why not just use the MODEL parameter and not bother with DD names.

Alternative - create the cluster by using a batch job and the LIKE parameter specified in the JCL.

In both cases the cluster to be modelled must exist
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 16, 2008 11:36 am
Reply with quote

Have you tried the fine manual? The answer is in there...

O.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Oct 16, 2008 11:38 am
Reply with quote

AFAIK, you can't specify a symbolic parameter inside an IDCAMS sysin. Go through the IDCAMS manual for more details.
Back to top
View user's profile Send private message
aakar

New User


Joined: 08 Apr 2008
Posts: 36
Location: mumbai

PostPosted: Thu Oct 16, 2008 12:10 pm
Reply with quote

hi all thanks for the replies......
Expat,
The problem is that one of the qualifiers in VSAM dataset name is jobname that create the VSAM files...Since job name keeps on changing my VSAM file name has to change with it.MODEL has to be used in conjunction with DEFINE CLUSTER like this
DEFINE CLUSTER(NAME (PXXXXX.JOB1.OUTFILE.VSAM) -
MODEL(PXXXXX.MODEL.VSAM))
and the define cluster command needs actual filename. So instead of a common datalib having something like this,
DEFINE CLUSTER(NAME (DDNAME1) -
MODEL(PXXXXX.MODEL.VSAM)))
i will be forced to code Sysin in instream repeatedly in each job.

Can you elaborate the LIKE option a bit more. is it in IDCAMS?

arcvns,
i am not trying to use symbolic parameters in SYSIN of IDCAMS. I trying to use DD names as they are used in Repro command. Repro always needs both input & output files to be present and hence can take dd names
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Oct 16, 2008 12:21 pm
Reply with quote

Quote:
Can you elaborate the LIKE option a bit more. is it in IDCAMS?

No, it is in the JCL reference manual.

Code:

//DEFKSDS  EXEC PGM=IEFBR14
//KSDSNAME DD DSN=..................,
//            DISP=(,CATLG,DELETE),
//            LIKE=whatever
//
Back to top
View user's profile Send private message
aakar

New User


Joined: 08 Apr 2008
Posts: 36
Location: mumbai

PostPosted: Thu Oct 16, 2008 1:45 pm
Reply with quote

thanks a lot expat this helps..This technique works great for VSAM clusters but it gives JCL error if the same technique is applied to AIX. That is if i try to create new AIX from AIX of the model VSAM file,

//DEFKSDS EXEC PGM=IEFBR14
//KSDSNAME DD DSN=Pxxxxx.OUTFILE.AIX,
// DISP=(,CATLG,DELETE),
// LIKE=PXXXXX.MODEL.AIX
//*

it gives foll. JCL error.
"REFERENCED model DATA SET is not a NON-VSAM DATA SET OR A VSAM CLUSTER
CATALOG ERROR ATTEMPTING TO LOCATE REFERENCED model DATA SET
FAILURE OCCURRED IN DATA SET PROPERTIES MERGE WHILE ATTEMPTING TO DEFINE Output DATA SET"

Is there any parameter that needs to be provided to be able to create AIXs. Can't use the DEFINE AIX command as it needs entire filename.
I guess the same problem will come in trying same tech of LIKE for PATH.
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 Console Commands All Other Mainframe Topics 4
No new posts commands missing in JESMSGLG JCL & VSAM 3
No new posts ZOS Console commands through USS REXX? CLIST & REXX 5
No new posts IDCAMS listcat service using cobol JCL & VSAM 1
No new posts How can I know what tso commands are ... TSO/ISPF 18
Search our Forums:

Back to Top