Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error: DUMMY UNIT=TAPE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Error: DUMMY UNIT=TAPE
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri May 14, 2010 1:59 pm    Post subject:
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    Post subject: Reply to: Error: DUMMY UNIT=TAPE
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri May 14, 2010 2:44 pm    Post subject:
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Fri May 14, 2010 4:16 pm    Post subject:
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Fri May 14, 2010 4:41 pm    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri May 14, 2010 8:45 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 14, 2010 9:10 pm    Post subject:
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: 1218
Location: Israel

PostPosted: Sat May 15, 2010 2:00 am    Post subject:
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: 1703
Location: Australia

PostPosted: Sat May 15, 2010 3:39 am    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Mon May 17, 2010 8:29 pm    Post subject:
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    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 S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us