Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Override Error - INCORRECT DEVICE NAME

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Override Error - INCORRECT DEVICE NAME
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Thu Aug 12, 2010 4:29 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 12, 2010 4:33 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Aug 12, 2010 4:35 pm    Post subject: Reply to: Override Error
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    Post subject: Reply to: Override Error
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Thu Aug 12, 2010 5:04 pm    Post subject:
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: 2285
Location: @my desk

PostPosted: Thu Aug 12, 2010 5:10 pm    Post subject:
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    Post subject: Reply to: Override Error
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: 6968
Location: porcelain throne

PostPosted: Thu Aug 12, 2010 5:28 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 12, 2010 5:36 pm    Post subject:
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    Post subject: Reply to: Override Error - INCORRECT DEVICE NAME
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    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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us