| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| Mike Nitz Beginner
 
  
 Joined: 09 Jun 2005
 Posts: 19
 Topics: 12
 Location: Kansas City, MO
 
 | 
			
				|  Posted: Mon May 19, 2008 3:09 pm    Post subject: Problems with allocating a volume for a VVR delete |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| Mike Nitz Beginner
 
  
 Joined: 09 Jun 2005
 Posts: 19
 Topics: 12
 Location: Kansas City, MO
 
 | 
			
				|  Posted: Mon May 19, 2008 8:03 pm    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		| expat Intermediate
 
  
 Joined: 01 Mar 2007
 Posts: 475
 Topics: 9
 Location: Welsh Wales
 
 | 
			
				|  Posted: Sat May 24, 2008 6:03 am    Post subject: |   |  
				| 
 |  
				| 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 |  | 
	
		|  | 
	
		|  | 
	
		|  |