View previous topic :: View next topic
|
Author |
Message |
aakar
New User
Joined: 08 Apr 2008 Posts: 36 Location: mumbai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Have you tried the fine manual? The answer is in there...
O. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
AFAIK, you can't specify a symbolic parameter inside an IDCAMS sysin. Go through the IDCAMS manual for more details. |
|
Back to top |
|
|
aakar
New User
Joined: 08 Apr 2008 Posts: 36 Location: mumbai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
aakar
New User
Joined: 08 Apr 2008 Posts: 36 Location: mumbai
|
|
|
|
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 |
|
|
|