Doing More with Results |
You may want to execute two or more saved SAS/ASSIST tasks in succession. For example, you may want to run a query and then generate one or more reports. The Result Manager offers you this convenience.
Use a script file to execute several entries in one jobstream. Scripts can be executed interactively or, under z/OS, in batch. A script describes what entries you process and the order of the processing. A script file can be used to execute entries of the types QUERY, SQL, REPORT, SOURCE, and ASSIST.
To create a new script, use the Create Script window to specify the entry names in the following form. The entry names are preceded by the entry types as labels.
From the Result Manager window, follow this selection path:Tools Create scriptThe Create Script dialog box appears.
Create Script Dialog Box
Type the name of the script in the text field. The first character must be alphabetic.
Select OK to open the script editor. Type the name of the entries you want to execute, preceded by their types. The example in the following display specifies that the entry QMARCH1 of type QUERY is to be executed first, followed by the entry TEST4 of type ASSIST.
Typing the Contents of a Script
Note that the above display is for example purposes only; use your own saved tasks in your script file.Select Close from the File menu. A prompt appears, asking if you want to save the changes. Select Yes to save the entry and return to the Result Manager window. The script appears listed in the Result Manager window.
To execute the script, type X in the Cmd field next to the script entry.
Note: For z/OS only, you can use the L command to execute the script in batch. See Batch Processing with the Result Manager (z/OS Only) for additional information.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.