Chapter Contents

Previous

Next
SAS Companion for the OpenVMS Operating Environment

Running SAS in a Detached Process

Unlike a spawned process, a detached process is independent of other processes; it is not linked to an OpenVMS parent process. A batch job is one type of detached process. To avoid the restrictions of batch processes, or to free up your DECterm window and still invoke SAS interactively or noninteractively, you can submit a SAS job to run in a detached process.

The following DCL command procedure file, DETACH.COM, invokes SAS with the SAS windowing environment interface in a detached process. (The numbered lines are explained following the code.)

   $! DETACH.COM
   $ SET NOON
[1]$ DEFINE SYS$LOGIN DISK:[HOMEDIR]
   $ SET DEFAULT SYS$LOGIN
   $ @SYS$LOGIN:LOGIN.COM
   $ DEFINE SAS$NET_TYPE XCLIENT
[2]$ @DUA1:[SAS8.TOOLS]SAS8.COM
   $ SAS8:==$SAS$ROOT:[IMAGE]SAS8.EXE
   $ SAS8/DMS
   $ EXIT
  1. Replace DISK:[HOMEDIR] with your own disk.

  2. Replace DUA1:[SAS8.TOOLS] with your own location for the SAS System. Leave SAS8.COM as it is. (The SAS8.COM file defines OpenVMS logical names that the SAS System uses. For more information about the SAS8.COM file, see OpenVMS Logical Names That SAS Uses.)

To execute the DETACH.COM file, you would use a command like the following:

$ RUN/DETACHED/INPUT=DETACH.COM-
_$ /OUTPUT=DETACH.LOG-
_$ SYS$SYSTEM:LOGINOUT.EXE

Note:   If your LOGIN.COM does not include a SET DISPLAY command, you must include one in your DCL command procedure.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.