SAS Component Language Dictionary |
Category: | Interface to SAS Software |
Requires SAS/CONNECT software |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
rc=RLINK(remote-session-id); |
contains the return code for the operation:
1 | |
0 |
is the name of the remote session (REMOTE= value) that is being tested.
Details |
See SAS/CONNECT User's Guide for details about accessing remote hosts from SAS software.
To get the name of the last remote host that was linked to during the current SAS session, use OPTGETC, specifying 'REMOTE' as option-name.
Example |
Check to see whether the link is active:
REMSESS=optgetc('remote'); msg=sysmsg(); put msg REMSESS; rc=rlink(REMSESS); if (rc=0) then msg='No link exists.'; else msg='A link exists.'; put msg;
See Also |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.