Chapter Contents

Previous

Next
ENDRSUBMIT Statement

ENDRSUBMIT Statement



Indicates the end of a block of statements that should be submitted to the remote host for processing.

Local


Syntax
Syntax Description

Syntax

ENDRSUBMIT <CANCEL>;

Syntax Description

CANCEL
terminates the block of statements without executing the statements. This option is useful in a line-mode session if you see an error in a previously entered statement, and you want to cancel the step.

Details

The ENDRSUBMIT statement signals the end of a block of statements that begins with either:

dm 'rsubmit';  /* all releases */
or
rsubmit;       /* Release 6.06 or later */

The remote host processes the statements between either of these statements and the ENDRSUBMIT statement.

You do not use the ENDRSUBMIT statement when using the RSUBMIT command. Use it only when you use the RSUBMIT statement or the DM RSUBMIT statement.

The ENDRSUBMIT statement can be used in any type of SAS session on the local host, but it is particularly useful for running SAS/CONNECT from an interactive line-mode session or a non-interactive job. The RSUBMIT and ENDRSUBMIT statements enable you to include in the same file the statements that are processed by the local host and the statements that are processed by a remote host. The statements for the remote host are enclosed between the RSUBMIT and ENDRSUBMIT statements.

All of the other statements in the program are processed by the local host when you execute the program. The following template is used to build a file that includes statements for both the remote and local hosts in the same program:

statements for local host
rsubmit;
   statements for remote host
endrsubmit;
more statements for local host


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.