Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VMS Fortran Serial Port Help is requested

Status
Not open for further replies.

BobKennedy

Programmer
Mar 14, 2003
1
US
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

 
how about writing a subroutine to assign and deassign, create the .exe file, then load it into memory with the needed privs?

That way, when you call the subroutine, it would run with the required privs?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top