Computing.Net > Forums > OpenVMS > using exit handler in OpenVMS

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.

using exit handler in OpenVMS

Reply to Message Icon

Name: Savitri
Date: October 16, 2001 at 07:19:23 Pacific
Comment:

Hello All,
I am new to OpenVMS OS.This is looking bit strange to me.I used SYS$DCLEXH exit handler to close all the file handles etc in my program before exiting.When I stop the process by pressing CTRL+Y, it looks like it did all the clean up properly.But when I verify the processname using
SHOW SYS/PROC=Processname, it says the process is still running.
This I am not able to understand.Can anyone please tell me why the SHOW SYS command still lists the process as active and running.

Thanks,
Savitri.



Sponsored Link
Ads by Google

Response Number 1
Name: Phil Piotrowski
Date: October 22, 2001 at 15:54:42 Pacific
Reply:

If you are running the program from the terminal that you entered thet Control+Y on, returning you to a $ prompt, then the process is still running, you are it.
Do a SHOW PROCESS and verify that it is you.
(Also SHOW SYS would show the process in the CUR state).
Also, try SHOW PROCESS/CONT/ID=pid
to see what image the process it running.

Phil Piotrowski


0

Response Number 2
Name: Jose Baars
Date: November 8, 2001 at 07:04:02 Pacific
Reply:

Why would you want to declare an exit handler to close all files when you exit?
If you exit VMS will close all files for you.


0

Response Number 3
Name: David Toolan
Date: January 5, 2002 at 08:11:07 Pacific
Reply:

CTRL + y does not stop the process, it meerly suspends the process from executing. It can be continued by typing continue (provided you dont execute another image etc...)

Better to use CTRL + C to halt processing.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to OpenVMS Forum Home


Sponsored links

Ads by Google


Results for: using exit handler in OpenVMS

Multicasting in OpenVMS www.computing.net/answers/openvms/multicasting-in-openvms/48.html

IPX in OpenVMS. www.computing.net/answers/openvms/ipx-in-openvms/459.html

Disk Fragmentation in OpenVMS www.computing.net/answers/openvms/disk-fragmentation-in-openvms/160.html