View previous topic :: View next topic
|
Author |
Message |
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Hi,
I am overriding DUMMY to dataset in proc.
Am getting JCLerror as "UNIT FIELD SPECIFIES INCORRECT DEVICE NAME"
Please provide me the solution how to override to dummy
Code: |
//TEST1 JOB (),'ABCDER',CLASS=0,
// MSGCLASS=O,TIME=020
//PROC JCLLIB ORDER=(NDVR.ENVR.PROCLIB,
// ADC.UKTEST.PROC)
//*********************************************************
//JS010 EXEC TEST1
//STEP1.DD1 DD DUMMY |
PRoc is
Code: |
//TEST1 PROC
//*************************************************************
//Step10 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=(,)
//DD1 DD DSN=TEST1.TEST2.TEST3.FILE,
// DISP=(,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),
// UNIT=DISK,MGMTCLAS=AMLYBW,SPACE=(TRK,(1,1),RLSE)
//* |
Please help how to override DD1 to dummy. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
//Step10 EXEC PGM=IEFBR14
//STEP1.DD1 DD DUMMY |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Prabha
I think that you have been a member of this forum for long enough to have learnt how to use the code tags to make your post more readable. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Is one of those step names a typo, since they don't match up? |
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Typo error in post only..but i gave proper stepname.. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Try this :
Code: |
//STEP10.DD1 DD DUMMY,UNIT=DISK,DCB=RECFM=FB,LRECL=80,BLKSIZE=0),
|
|
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Have you mispelled the UNIT parameter? Posting the actual error messages might help. |
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
JCl:
//TEST1 JOB (ASDD43),'SDFDFDF',CLASS=0,
// MSGCLASS=O,TIME=060,NOTIFY=&SYSUID
//*
//PROC JCLLIB ORDER=(NDVR.EMER2.PROCLIB,
// ADC.TEST.PROC)
//STEP1 EXEC TEST2
//STEP2.DD1 DD DUMMY,UNIT=DISK,DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
PROC;
//TEST2 PROC
//STEP2 EXEC PGM=IEFBR14
//DD1 DD DSN=ADC.TEST.TEST1,DISP=(,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),UNIT=DISK,
// SPACE=(TRK,(10,2),RLSE)
ERROR IS
TEST1 STEP2 STEP1 DD1 - UNIT FIELD SPECIFIES INCORRECT DEVICE NAME
TEST1 STEP2 STEP1 - STEP WAS NOT EXECUTED.
UNIT=DISK Parameter only using in all jobs. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Arun,
keep in mind that a MGMTCLAS is involved, which if sms may or may not allow UNIT=DISK when DD DUMMY is used.
not completely <actually at all> understanding sms and it's effect
has caused me untold grief when I would play with the UNIT parm,
normally UNIT=SYSDA gave me a pass; but at other sites UNIT=DISK was ok.
Problem with sms when you override a DD with DUMMY, is that you have to insure that all the rest of the DD parms conform to sms requirements,
or you get a JCL error.
my guess is that since sms is site configurateble (is that a word),
going from site to site means trial-and-error, or learning SMS.
unfortunately, I am a trial-and-error type guy. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
ADC.TEST.TEST1 - - - Would this perchance be a GDG base name
@dbz
Dick, if SMS is implemented correctly, then what ever you specify should not cause any errors at all. There will be times when it may cause you some minor irritations for which you need to visit your friendly storage gurus for allowing you to do what you want rather than what we want.
Whenever I set up an SMS environment, the user has absolutely no need to even know about DATACLAS, STORCLAS or MGMTCLAS, let alone code them. Almost everything is overridable by the user with some notable exceptions like retention periods. |
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Yes..MGMTCLASS is involved in DISK .. Now i changed UNIT=SYSDA..it worked fine..
Thanks a lot for yr help.. |
|
Back to top |
|
|
|