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


|