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

Error: DUMMY UNIT=TAPE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri May 14, 2010 1:40 pm
Reply with quote

Hello,

I'm currently working in z/OS 01.10.00 environment, getting an error message - "UNIT FIELD SPECIFIES INCORRECT DEVICE NAME" for all jobs having

//xxx DUMMY UNIT=TAPE

UNIT=TAPE is working fine with remaining qualified datasets, but not with DUMMY statement.

//xxx DUMMY UNIT=DISK is working fine.

Please advice what's wrong with use of UNIT=TAPE for DUMMY.

Thanks
Raghav
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Fri May 14, 2010 1:59 pm
Reply with quote

Is it me, or do i miss "DD" on the statement?
Something like :

//ddname DD DUMMY,other parameters
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri May 14, 2010 2:38 pm
Reply with quote

Hello Peter,

"DD" exist in the JCL statement along with other parameters too, but i missed it in posting the query

Sorry...

Thanks,
Raghav
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


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

PostPosted: Fri May 14, 2010 2:44 pm
Reply with quote

So you still have a problem?
Why dont you show the jcl instead of giving some pieces (of crap).
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri May 14, 2010 3:05 pm
Reply with quote

Yes still I have problem & sent a request to system support group.

Here is the piece of JCL...

//AMATAPE DD DUMMY,
// DISP=OLD,
// UNIT=TAPE,VOL=SER=,
// LABEL=(1,SL),
// DCB=(RECFM=U,BLKSIZE=1000)

I have tested same JCL by providing only parameter UNIT=TAPE (removed remaining all parameters), still not working.

But it's fine with UNIT=DISK
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 14, 2010 4:16 pm
Reply with quote

There is a link to manuals at the top of the page. Click it, find the JCL Language Reference manual, and you can read:
Quote:
12.24 DUMMY Parameter

Parameter Type

Positional, optional

Purpose

Use the DUMMY parameter to specify that:

* No device or external storage space is to be allocated to the data set.

* No disposition processing is to be performed on the data set.

* For BSAM and QSAM, no input or output operations are to be performed on the data set.
so DUMMY does not allow a device to be allocated to the DD name, yet when you say UNIT=TAPE you are requiring a device allocation. That is why the conflict and the message showing up.
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri May 14, 2010 4:31 pm
Reply with quote

Robert,

But we are not getting any message with UNIT=DISK

(I hope that DISK too refers a device)

Please advice.

Thanks..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 14, 2010 4:41 pm
Reply with quote

Contact your site support group -- they can help. UNIT=DISK may or may not, depending upon your site, reference a device.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri May 14, 2010 4:46 pm
Reply with quote

raghav08,

oh, you are so very clever...

i have noticed on newer z/OS with sms managed stuff (don't know if it has anything to do with it),

but my system gives me an error when I use DUMMY without a SPACE dcb parm.

UNIT=DISK will/can default automatically to a system defined device
where as
UNIT=TAPE can not default.

What I am trying to say
(and the storage guys will either beat me to death or allow my comment to go by with me unscathed)
is that DISK and TAPE although both are devices,
TAPE is not the same kind of device as DISK,
and defaults that allow for DISK to be considered as almost a comment,
do not allow for any reference to TAPE as a comment.

COMMENT ADDED:
Just noticed Robert's comment as I was posting this in the original form.
I explained it incorrectly,
but apparently had a feel for something that I did not understand.
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Fri May 14, 2010 5:04 pm
Reply with quote

Hello All,

Now issue has been addressed by system support group.

//XXXX DD DUMMY,UNIT=TAPE is working fine.

Awaiting for resolution made by system support team.

Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri May 14, 2010 8:45 pm
Reply with quote

Hello,

Again, i'm late to the party. . .

Why is there a DD statement that specifies TAPE for a DUMMY dataset?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 14, 2010 9:10 pm
Reply with quote

I must admit I'm baffled too, usually I just use
Code:
//DDNAME   DD DUMMY,RECFM=xx,LRECL=nnnn
without any problems.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sat May 15, 2010 2:00 am
Reply with quote

It reminds me of a joke:
A husband come home quite happy and says to his wife: today I missed the bus, I ran after it all the way back home, and I saved 4 dollars on the bus ticket.
To which the wife replies: you idiot, if you had run after a taxi you would have saved at least 20 dollars.

Using a dummy tape or a dummy disk, same difference as running after a bus or running after a taxi...
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sat May 15, 2010 3:39 am
Reply with quote

Hi,

I don't ever remember overriding the UNIT parameter in a catalogue procedure regardless of the unit type when using DUMMY.

This was quite common the days when tape errors occurred (much more frequent than today) to rerun a job and only recreate the bad tape and dummying out other output files to save on tape drives.


Gerry
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat May 15, 2010 4:14 am
Reply with quote

It would be nice to know the message id!
Back to top
View user's profile Send private message
raghav08
Currently Banned

New User


Joined: 03 Jun 2008
Posts: 94
Location: Bangalore

PostPosted: Mon May 17, 2010 11:34 am
Reply with quote

Hello.

We haven't changed JCL (nothing to do with application perspective), job went fine after system support team addressed the issue.

Solution : TAPE is in the active IODF now for all logical tapedrives

Thanks.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon May 17, 2010 8:29 pm
Reply with quote

raghav08 wrote:
Solution : TAPE is in the active IODF now for all logical tapedrives
Now, this is something specific to your shop which Robert has already mentioned; your site-suport must have changed UNIT=TAPE not to reference a device now...icon_smile.gif
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 Deleting a Tape file JCL & VSAM 14
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top