BobKennedy
Programmer
I have written code in fortran to "SYS$ASSIGN" a serial port (which works fine). When I need to release the port, I use "SYS$DASSGN" which, logically works.
The problem: The program needs to stay running after it releases the port, however, the other computer that now needs to ASSIGN a channel to the same serial port FAILS due to the fact that the SYS$DASSGN does NOT acutally release the port.
I read in the VMS books that if you are running as USER mode, the only way to release the port is to EXIT the application. I can not have the application exit.
The book also states that you can release the port if you OPENED it (SYS$ASSIGN) with "SUPERVISORY, EXECUTIVE, or KERNEL" Access Modes.
Does or has anyone ever done this before, becuase when I put it in EXEC mode, it still does not release the port.
The book also stated that when the application starts, the SYS$ASSIGN command will assume the LOWER Access mode of either the command line (in this case EXEC) or the Access mode of the application. I belive that the access mode of the application is STILL USER mode becuase it doesnt work.
MAIN QUESTION: HOW DO I run the APPLICATION in EXEC, SUPER MODE ???
Any thoughts are appreciated.
Thanks
Bob Kennedy
The problem: The program needs to stay running after it releases the port, however, the other computer that now needs to ASSIGN a channel to the same serial port FAILS due to the fact that the SYS$DASSGN does NOT acutally release the port.
I read in the VMS books that if you are running as USER mode, the only way to release the port is to EXIT the application. I can not have the application exit.
The book also states that you can release the port if you OPENED it (SYS$ASSIGN) with "SUPERVISORY, EXECUTIVE, or KERNEL" Access Modes.
Does or has anyone ever done this before, becuase when I put it in EXEC mode, it still does not release the port.
The book also stated that when the application starts, the SYS$ASSIGN command will assume the LOWER Access mode of either the command line (in this case EXEC) or the Access mode of the application. I belive that the access mode of the application is STILL USER mode becuase it doesnt work.
MAIN QUESTION: HOW DO I run the APPLICATION in EXEC, SUPER MODE ???
Any thoughts are appreciated.
Thanks
Bob Kennedy