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
 

 

Specifying DD name in the certain IDCAMS commands

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Specifying DD name in the certain IDCAMS commands
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 16, 2008 11:34 am    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Oct 16, 2008 11:36 am    Post subject:
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: 2284
Location: @my desk

PostPosted: Thu Oct 16, 2008 11:38 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 16, 2008 12:21 pm    Post subject:
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    Post subject:
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    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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm


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