Chapter Contents |
Previous |
Next |
SAS/CONNECT User's Guide |
For example, if you want to connect to a TSO host by means of the APPC access method and a UNIX host by means of the TCP/IP access method, your autoexec file would contain the following:
/***************************************/ /* Start a TSO session. */ /***************************************/ options comamid=appc; remote=LU_NAME; signon; /***************************************/ /* Start a UNIX session. */ /***************************************/ cscript='!sasroot\connect\saslink\tcpunix.scr'; options comamid=tcp; remote=unxnode; signon;
After your autoexec processing is complete, you can direct statements to either remote host from a single SUBMIT block in your local SAS session. You do this by preceding each section of statements with an RSUBMIT statement that specifies the remote host's session id. You end the block with an ENDRSUBMIT statement. For example, enter the following to remote-submit to the TSO host:
rsubmit LU_NAME; statements... endrsubmit;
Enter the following to remote-submit to the UNIX host:
rsubmit unxnode; statements... endrsubmit;
Issue the SIGNOFF command or submit the SIGNOFF statement when you are finished. Note that you must have the appropriate script file to sign off from each host. A simple, direct method for ensuring that you are using the correct script file when signing off multiple remote sessions is to define the fileref RLINK before each sign-off as in the following example.
Submit these statements to the local host:
signoff LU_NAME; signoff unxnode cscript= '!sasroot\connect\saslink\tcpunix.scr';
For more information, see SIGNON Command and Statement, SIGNOFF Command and Statement, and RSUBMIT Command and RSUBMIT Statement.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.