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

Override Error - INCORRECT DEVICE NAME


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

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Aug 12, 2010 4:21 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Aug 12, 2010 4:29 pm
Reply with quote

//Step10 EXEC PGM=IEFBR14

//STEP1.DD1 DD DUMMY
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Aug 12, 2010 4:33 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Aug 12, 2010 4:35 pm
Reply with quote

Is one of those step names a typo, since they don't match up?
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Aug 12, 2010 4:47 pm
Reply with quote

Typo error in post only..but i gave proper stepname..
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Aug 12, 2010 5:04 pm
Reply with quote

Try this :


Code:

//STEP10.DD1 DD DUMMY,UNIT=DISK,DCB=RECFM=FB,LRECL=80,BLKSIZE=0),
Back to top
View user's profile Send private message
Arun Raj

Moderator


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

PostPosted: Thu Aug 12, 2010 5:10 pm
Reply with quote

Have you mispelled the UNIT parameter? Posting the actual error messages might help.
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Aug 12, 2010 5:26 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 12, 2010 5:28 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Aug 12, 2010 5:36 pm
Reply with quote

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
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Aug 12, 2010 5:37 pm
Reply with quote

Yes..MGMTCLASS is involved in DISK .. Now i changed UNIT=SYSDA..it worked fine..

Thanks a lot for yr help..
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top