Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Checking for ex...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 865 of 991
Post > Topic >>

Checking for existence of a VMS file from DSM

by Chris Mitchell <chrisbs3@[EMAIL PROTECTED] > Jun 4, 2007 at 05:22 PM

Hi all, 


I need to check for the existence of VMS files from Vax DSM V7.3 MUP2.

If I just try and open the file, it errors with %DSM-E-OPENERR if the
file does not exist. I *could* set a local error trap and test for the
type of error, and assume the file is not present if the error type is
OPENERR, but that seems a little ***bersome. Is there an easier/better
way to do it that anyone can share with me? 


Also, whilst I'm here, can anybody tell me why I can't use a variable
to store the parameters on an open command e.g. 
S FILE="TEST.DAT" 
O FILE:WRITEONLY:5 


works, but 


S FILE="TEST.DAT",PARAM="WRITEONLY" 
O FILE:PARAM:5 


doesn't? 


O FILE:@[EMAIL PROTECTED]
 


doesn't work either. I've gotten around this by building my open
command into a string and then eXecuting it, but this seems ***bersome
too. 


Thanks, 
Adrian 
-- 
Adrian Bourner      Reality Consulting Limited 
T: +44(0)870 60 70 116 
E: adrian@[EMAIL PROTECTED]
 
W: www.reality-consulting.co.uk 
Registered at 4 Waverley Court, Brinsea Road, Congresbury, 
Bristol, BS49 5JG. Registered in England & Wales, number 2972292
 




 5 Posts in Topic:
Checking for existence of a VMS file from DSM
Chris Mitchell <chrisb  2007-06-04 17:22:55 
Re: Checking for existence of a VMS file from DSM
Harlan Stenn <stenn@[E  2007-06-04 19:27:07 
Re: Checking for existence of a VMS file from DSM
Chris Mitchell <chrisb  2007-06-05 13:48:17 
Re: Checking for existence of a VMS file from DSM
"Mike Minor" &l  2007-06-04 20:26:20 
Re: Checking for existence of a VMS file from DSM
Chris Mitchell <chrisb  2007-06-05 13:47:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 0:45:12 CDT 2008.