Chapter Contents |
Previous |
Next |
RSESSION SCL Function |
Local and remote |
Syntax | |
Syntax Description | |
Example |
Syntax |
cval=RSESSION(n); |
Example |
This example loops through four sessions and gets the remote session and description, which is returned by using the RSESSION function. The program puts the descriptions in separate arrays for later use (for example, to display a choice of remote sessions to upload to).
do i=1 to 4; word=rsession(i); if word ^=' ' then do; remote=substr(word,1,8); desc=(substr(word,9,20)); if rlink(remote) then do; if desc=' ' then desc = remote; cnt=cnt + 1; entrys{cnt}=remote; comam{cnt}=desc; end; end; end;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.