Computing.Net > Forums > OpenVMS > Open File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Open File

Reply to Message Icon

Name: lernen.2007
Date: September 17, 2008 at 11:25:35 Pacific
OS: OpenVMS
CPU/Ram: AMD 1024
Product: OpenVMS
Comment:

Hello,

I want to read a file with following DCL-Code:

OPEN/READ FILE <whatever>

How can i check if the file is open(lock) by an another user? Before I call the open/read code, I want to check if the file is open.

Thanks im behaviour.




Sponsored Link
Ads by Google

Response Number 1
Name: SKStewart
Date: September 18, 2008 at 06:55:20 Pacific
Reply:

Hello,

What are you trying to accomplish?

Is your goal is to avoid printing an error message from the OPEN command, one way is to use the /ERR qualifier to handle the error:

$OPEN/READ FILE <whatever> /ERR=SKIP_INPUT
$READ FILE etc
$CLOSE FILE
$SKIP_INPUT:
$EXIT

Kelly


0

Response Number 2
Name: lernen.2007
Date: September 22, 2008 at 08:27:48 Pacific
Reply:

Thanks.;)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Open File

open VMS www.computing.net/answers/openvms/open-vms/503.html

Accesing a locked file... www.computing.net/answers/openvms/accesing-a-locked-file/153.html

error messages get www.computing.net/answers/openvms/error-messages-get/501.html