MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with allocating a volume for a VVR delete

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Mike Nitz
Beginner


Joined: 09 Jun 2005
Posts: 19
Topics: 12
Location: Kansas City, MO

PostPosted: Mon May 19, 2008 3:09 pm    Post subject: Problems with allocating a volume for a VVR delete Reply with quote

I'm trying to run the following code:

ADDRESS TSO
"FREE DDNAME(DD1)"
"ALLOC DDNAME(DD1) VOLUME(DBPD01) UNIT(SYSDA) OLD"

But am getting the following:

>O> "ALLOC DDNAME(DD1) VOLUME(DBPD01) UNIT(SYSDA) OLD"
+++ RC(12) +++

Is it possible to allocate a volume like this??

I've searched the ALLOC command & all the examples seem to require that I allocate a dataset, but this is not what the IDCAMS program needs when trying to delete a VVR entry.
Back to top
View user's profile Send private message
Mike Nitz
Beginner


Joined: 09 Jun 2005
Posts: 19
Topics: 12
Location: Kansas City, MO

PostPosted: Mon May 19, 2008 8:03 pm    Post subject: Reply with quote

I've figured it out. You have to specify the SYS1.VVDS dsname in the allocation. Works like it's supposed to then.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat May 24, 2008 6:03 am    Post subject: Reply with quote

What about, because sometimes the VVDS name .............
Code:

Volser = 'ABC123'
X=BPXWDYN('ALLOC DD('DASDVOL') SHR REUSE UNIT(3390) VOL('Volser')')
"DELETE 'whatever'  VVR"
X=BPXWDYN('FREE DD('DASDVOL')')

_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group