Language Reference |
pushes SAS statements into the command input stream
where argument is a character matrix or quoted literal containing valid SAS statements.
The PUSH subroutine pushes character arguments containing valid SAS statements (usually SAS/IML statements or global statements) to the input command stream. You can specify up to 15 arguments. Any statements pushed to the input command queue get executed when the module is put in a hold state. This is usually induced by one of the following:
The strings you push do not appear on the log.
CAUTION: Do not push too much code at one time.
Pushing too much code at one time, or getting into infinite loops of pushing, causes problems that can result in exiting the SAS system.
For details, see Chapter 15.
An example that uses the PUSH subroutine follows:
start; code='reset pagesize=25;'; call push(code,'resume;'); pause; /* show that pagesize was set to 25 during */ /* a PAUSE state of a module */ show options; finish; run;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.