Valid in: | client |
Enclose domain names that are not valid SAS names in double or single quotation marks.
SAS Management Console: Guide to Users and Permissions and SAS Management Console online Help.
0 | indicates that the sign-on is successful. |
1 | indicates that the sign-on failed. |
2 | indicates that you have already signed on to the current server session. |
3 | indicates that the sign-on is still in progress. |
signon emp1 sascmd="!sascmd";
%let sashost=hrcomputer1.dorg.com; signon sashost;
%let sashost=hrcomputer1.dorg.com; signon sashost.sasport;
signon hrcomp1.2267;
%let sashost=hrcomp1.dorg.com 2667; signon sashost;
signon hrcomp1._ _2267;
YES|Y | indicates that the Transfer Status window is displayed for file transfers within the current server session. |
NO|N | indicates that the Transfer Status window is not displayed for file transfers within the current server session. |
1 | If the CONNECTSTATUS system option is specified, the value for the CONNECTSTATUS system option is used. |
2 | If the CONNECTSTATUS= option is specified in a subsequent RSUBMIT, PROC UPLOAD, or PROC DOWNLOAD statement, that value would override the default value of CONNECTSTATUS= option for SIGNON. |
3 | Otherwise, the default behavior occurs. The default for a synchronous RSUBMIT is YES, which displays the Transfer Status window. The default for an asynchronous RSUBMIT is NO, which does not display the Transfer Status window. |
YES|Y | specifies that the RSUBMIT blocks execute synchronously. |
NO|N | specifies that the RSUBMIT blocks execute asynchronously. |
1 | If a value for the CONNECTWAIT= option has been specified in the RSUBMIT statement, that value is used. |
2 | If the CONNECTWAIT system option is set, the value for the system option is used. |
3 | Otherwise, the default behavior, to execute synchronously, occurs. |
If CONNECTWAIT=NO is specified, you might also specify the CMACVAR= option. CMACVAR= enables you to programmatically test the status of the current asynchronous RSUBMIT to find out whether the task has completed or is still in progress.
When %SYSRPUT executes within a synchronous RSUBMIT, the macro variable is defined to the client session as soon as it executes.
When %SYSRPUT is executed within an asynchronous RSUBMIT, the macro variable is defined in the client session when a synchronization point is encountered. To override this behavior, use the SYSRPUTSYNC= system option.
When you use the CSCRIPT= option, do not also use the NOCSCRIPT option. If you use NOCSCRIPT and CSCRIPT=, sign-on is canceled.
FILENAME statement in SAS Statements: Reference and the companion that is appropriate for your operating environment.
YES|Y | specifies that the client session's macro variables will be updated when the client receives the results of the server session's execution of the %SYSRPUT macro. The results are delivered in the form of a packet. Specifying YES does not mean that the client's macro variables will be updated immediately after the server's execution of the %SYSRPUT macro variable. YES means that the client's macro variables will be updated when the client receives the packet from the server. Therefore, the exact time at which the client's macro variables are updated will depend on the availability of the client to receive the packet. If the client is busy, the server will wait until the client session is ready to receive the packet. |
NO|N | specifies that the client session's macro variables will be updated when a synchronization point is encountered. This is the default. |
If the SYSRPUTSYNC system option is specified and the CSYSRPUTSYNC= option in SIGNON is not specified, the system option will apply to the SIGNON statement.
Changing the value assigned to the CSYRPUTSYNC= option between consecutive asynchronous RSUBMIT statements causes unpredictable results. You are advised not to change the value between asynchronous RSUBMIT statements.
signon job1 inheritlib=(local work=remote); rsubmit; libname local list; libname remote list; data local.a; x=1; run; endrsubmit;
WARNING: LOG=/OUTPUT= options invalid with synchronous rsubmit. Options will be ignored.
If you direct the log or output lines to a file and then use RGET or RDISPLAY to retrieve the contents of an empty backing store, you will receive a message such as the following:
WARNING: The LOG option was used to file log lines for the current SIGNON. There are no log lines for RGET to process.
If you use both the asynchronous RSUBMIT and the PROC PRINTTO statements, you might expect that the PROC PRINTTO statement causes data from the server session to be written to the file that is specified in the PROC PRINTTO statement. If this PROC PRINTTO behavior occurs, the LOG= or the OUTPUT= option in the SIGNON statement is ignored, and no data is written to the backing store or to the specified file.
However, because the asynchronous RSUBMIT and the PROC PRINTTO statements execute simultaneously, predicting which operation will complete first is impossible. The timing of the completions of these operations determines whether the results are written to the SIGNON log or to the PROC PRINTTO log.
MOD option in the FILENAME statement, which varies by operating environment. See the SAS Companion that is appropriate for your operating environment.
YES|Y | enables notification via a message window. Here
is the format of the default message: Asynchronous
task TASK1 has completed. TASK1 is the server ID.The
message window does not interfere with any other task executions in
progress. To acknowledge the message and to close the window, click
OK.
|
NO|N(default) | disables notification. This is the default. |
“e-mail-address” | enables notification via an e-mail message, and specifies the e-mail address of the recipient for the notification. E-mail addresses are limited to a maximum of 256 characters. Enclose the e-mail address in double or single quotation marks. The message includes information about the total time that was used for the RSUBMIT. If the LOG= and OUTPUT= options are also specified in a SIGNON statement, the e-mail message identifies the locations of the log file and output file. |
options sascmd="!sascmd"; signon process1 wait=no notify=yes; rsubmit; %put should get notification window; endrsubmit;
signoff process1;
options sascmd="!sascmd";
signon process1 wait=no notify=no;
rsubmit;
code-to-be-executed-in-server-session
endrsubmit;
If NOTIFY=YES and the NOTERMINAL system option has been specified, the request for notification is ignored. This message is displayed:
WARNING: The NOTIFY option is valid only if a TERMINAL is attached to this SAS session. Option will be ignored.
However, notification can be directed to an e-mail address, regardless of whether the TERMINAL or NOTERMINAL system option has been specified.
If NOTIFY=“e-mail address” is specified, but the e-mail message cannot be sent, notification will occur in the form of a message window, which is the action that occurs when NOTIFY=YES. This behavior assumes that the NOTERMINAL system option has not been specified.
Notification fails if NOTIFY=YES or NOTIFY=“e-mail address” and you specify statements or commands (such as RGET or SIGNOFF) during the asynchronous RSUBMIT that change execution from asynchronous to synchronous mode.
If NOTIFY=“e-mail address” is specified, the SAS system and the operating environment that the SAS system runs under must be configured to support e-mail. Without appropriate configuration, your attempt to specify notification via e-mail might fail. Contact your system administrator for details.
SAS system options that support e-mail configuration: EMAILHOST, EMAILPORT, and EMAILSY in SAS System Options: Reference.
proc PWENCODE in="srvmach"; run; {sas001}c2Vydm1hY2g=The clear-text password
srvmach
is specified in the PROC PWENCODE statement.
The output is generated in the form {key}encoded-password
. sas001
is the key, which
is used to decode the encoded password to its clear-text form when
the password is needed. Use the output from the PROC PWENCODE statement
as the value for encoded-password in the appropriate statement.
.bat
and .cmd
extensions. UNIX
extensions include .sh
, .csh
, and .ksh
. OpenVMS uses the .com
extension.
ERROR: Process quota exceeded.
Check process limit quotas and privileges.
getsym
DATA step function.
rsubmit; %put %bquote( %sysfunc (getsym(SASCMD_2042CF6B))); endrsubmit;
When you use SASCMD=, do not also use NOCSCRIPT. Otherwise, NOCSCRIPT is ignored.
SYNTAXCHECK= and NOSYNTAXCHECK= system options in SAS System Options: Reference
ICON, NOSPLASH, and NOTERMINAL system options in SAS Companion for Windows.
If the specified SAS Application Server does not contain
a
ERROR: Additional options are not valid with the SERVER option on the SIGNON command. These options should be specified in the server definition.
SAS Management Console: Guide to Users and Permissions and SAS Management Console online Help
sasmain
. signon serverv="sasmain";
Server= hrmach1 —SAS/CONNECT Server Remote Session ID= sashost ServerComponentID= A5Z3NRQF.AR00005L Remote Host= hrmach1.dorg.com Communication Protocol= TCP Service/Port= sasconnect Port= 2267 Scriptpath= tcpunix.scr Tbufsize= 4096 Wait= No SignonWait= No Status= No Notify= "joe@apex.com" Subject= "hrmach1 task completed"
ERROR: Additional options are not valid with the SERVERV option on the SIGNON command. These options should be specified in the server definition.
YES|Y(default) | specifies synchronous sign-on. A synchronous sign-on causes the client session to wait until the sign-on to a server session has completed before control is returned to the client session for continued execution. YES is the default. |
NO|N | specifies an asynchronous sign-on. An asynchronous sign-on to a server session begins execution and control is returned to the client session immediately for continued execution. Asynchronous sign-on allows multiple tasks (including other sign-ons) to be executed in parallel. Asynchronous sign-ons reduce the total amount of time that would be used to execute individual sign-ons to multiple server sessions. Using the saved time, the client session can execute more statements. |
If SIGNONWAIT is specified as a system option and the SIGNONWAIT= option is not specified, the system option will apply to the SIGNON statement.
If SIGNONWAIT=NO is specified, the USERID= and PASSWORD= options cannot be set to _PROMPT_.
To find out if sign-on has completed, use the LISTTASK statement in the RSUBMIT statement or the CMACVAR= option in the SIGNON statement.
options remote=myhost sascmd="!sascmd";
signon notify="joe.smith@apex.com" subject="First task completed on &SYSHOSTNAME";
rsubmit wait=no;
code-to-be-executed
endrsubmit;
If no SUBJECT= is specified, the default subject title is used:
TASK1 is the server ID.SAS/CONNECT task TASK1 has completed.
buffer-size-in-bytes | specifies the size of the buffer that |
If TBUFSIZE= is specified as a system option in the client session and in the server session, the value in the client session takes precedence.
If TBUFSIZE= is specified as a system option in the client session but is not specified in the SIGNON statement, the system option value will be used.
Do not specify TBUFSIZE= system option in the server session. If the TBUFSIZE= system option is included in the server's SAS invocation, an update to the server log might be delayed until the next client request for server processing has completed.
If TBUFSIZE= is not specified as a system option or as an option in the SIGNON statement, the default is used.
user=joe password=Born2run; user=joe password='' # null space specified by contiguous quotation marks; user='joe black' password='Born 2 run'; user='joe?black' password='Born 2 run'; user='apexdomain\joe' password='2bornot2b' # Win NT user name; user='"happy joe"' pw=_prompt_; user=_prompt_; userid="myuserid" password="{sas001}c2Vydm1hY2g";
mysas.bat
1options comamid=tcp; signon wnt; /******************************************/ /* initiates connection to a z/OS server host */ /******************************************/ 2filename tsoscr '!sasroot/misc/connect/tcptso9.scr'; signon tso cscript=tsoscr; 3 /******************************************/ /* submit statements to a Windows NT server */ /******************************************/ rsubmit wnt wait=no; statements to be processed by Windows NT server endrsubmit; 4/******************************************/ /* submit statements to z/OS server */ /******************************************/ rsubmit tso wait=no; statements to be processed by z/OS server endrsubmit; 5 waitfor _ALL_ wnt tso; /******************************************/ /* ends both connections */ /******************************************/ 6signoff tso cscript=tsoscr; signoff wnt cscript=winscr;
/******************************************/ /* signon successful, rhost1 will be */ /* set to 0 to indicate success. */ /******************************************/ signon rhost macvar=rhost1; /******************************************/ /* signon fails because we have already */ /* signed on to this server session, */ /* so rhost2 will be set to 2 to */ /* indicate this, but rhost1 will */ /* still be the MACVAR associated */ /* with rhost. */ /******************************************/ signon rhost macvar=rhost2; rsubmit rhost wait=no; data a; x=1; run; endrsubmit; /******************************************/ /* rhost1 is still the default and */ /* will indicate the progress of any */ /* subsequent RSUBMITs. */ /******************************************/ %put &rhost1;