Chapter Contents |
Previous |
Next |
SUBMIT |
Category: | Submit Block |
Syntax | |
Details | |
Examples | |
See Also |
Syntax |
SUBMIT<when <where>><host> <'STATUS'>; |
Note: This means that any statements following ENDSUBMIT
are not executed on this pass through the SCL program. To execute the statements
following ENDSUBMIT, use conditional logic to branch around the SUBMIT IMMEDIATE
statement.
Note: This means that any statements following ENDSUBMIT
are not executed on this pass through the SCL program. To execute the statements
following ENDSUBMIT, use conditional logic to branch around the SUBMIT PRIMARY
statement.
Note: The IMMEDIATE, PRIMARY, and TERMINATE options are honored only
if the where option is not specified, that is,
only if statements are to be submitted to the SAS system for execution.
Type: Character
Note: In Version 8, using the RECALL command from the
Program Editor window does not recall code that was submitted from SCL to
the Program Editor.
Note: The COMMAND, EDIT, and SQL options work only with the CONTINUE
option.
Type: Character
Type: Character
`STATUS'
Type: Character
Details |
SUBMIT labels the beginning of a block of SAS statements or commands to submit to SAS software. When SUBMIT is encountered, SCL collects all the text between SUBMIT and ENDSUBMIT and places it in the PREVIEW buffer. Based on the value of the when option, SCL submits the statements to SAS for execution at the appropriate time.
The where and host options are valid only if the when option is specified. Regardless of the value of the where option, all submit block text can be buffered in the PREVIEW window. You need to make certain that the CONTINUE option is specified when you want the statements to be submitted.
By default, when control returns to SCL, the program continues to execute the statements that follow ENDSUBMIT.
You can use the REMOTE command to override the host option of a SUBMIT statement.
That is, in the SUBMIT statement,
you can choose not to use the host option REMOTE
and can instead use the REMOTE command to control whether
the generated code is executed on the local or remote host. For more information
about the REMOTE command, see Submitting Statements to a Remote Host.
The ASIS option in the CONTROL statement allows a submit block to be submitted without formatting. Use CONTROL ASIS before the SUBMIT block to submit code that contains a DATALINES statement.
When an AF application that is invoked from an autoexec file uses both SUBMIT CONTINUE REMOTE and LOCAL blocks, the order of execution may not be correct. In this situation, you can avoid problems by using the following in place of the SUBMIT CONTINUE REMOTE blocks:
submit continue; rsubmit; ...SCL statements... endrsubmit; endsubmit;
Note: If CONTROL LABEL is specified,
a window variable section must not contain a SUBMIT IMMEDIATE block.
Examples |
submit continue; proc print; run; endsubmit;
main: submit command continue; libname; endsubmit; return;
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.