Chapter Contents |
Previous |
Next |
Doing More with SAS/ASSIST Software |
The following sample JCL is found in SASHELP.QASSIST.BATCHJOB.SOURCE.
//&userid("Enter Userid","&sysjobid","8")A JOB (&userid,G001), // &userid, USER=&userid, // MSGLEVEL=(0,0),MSGCLASS=H //*************************************************** //*** Sample JCL: SASHELP.QASSIST.BATCHJOB.SOURCE *** //*************************************************** //SAS EXEC SAS //SYSIN DD *
This JCL executes when you submit a batch job by typing
L
in the Cmd field next to an entry in the Result Manager window. The JCL opens the BATCH1 window, enabling the user to
enter information as prompted.
You can customize the prompts in the BATCH1 window
by customizing a copy of the JCL program as follows:
Tasks | Results | Result Manager |
SASHELP.QASSIST
in the Catalog field and
press ENTER. A list of entries in the SASHELP.QASSIST catalog appears.
B%
in the Name field and press ENTER to
display only those entries that start with the letter B.
C
next to BATCHJOB SOURCE entry and press ENTER. The Copy window appears.
Copy Window
Because you cannot edit entries in the SASHELP.QASSIST catalog, you must copy this entry to a location in which you have WRITE access. Later, you will change the Batch file User or Master/Group Profile option to point to the copy of the JCL program.
E
and press ENTER. The
program appears in the Edit window.
You can use the prompt feature in your JCL in the same way as you would use the prompt feature in a query (see Using the Prompt Facility for more information). For example, if you want to prompt the user to change the TIME for the batch job, you would put in a prompt for the TIME in the JCL. In the following JCL, the third line creates an "Enter Time" prompt with an eight-character field that contains the default time of (,5).
//&userid("Enter Userid","&sysjobid","8")A JOB (&userid,G001), // &userid, USER=&userid, // TIME=&time("Enter Time","(,5)","8"), // MSGLEVEL=(0,0),MSGCLASS=H //*************************************************** //*** Sample JCL: SASHELP.QASSIST.BATCHJOB.SOURCE *** //*************************************************** //SAS EXEC SAS //SYSIN DD *
In the edited code,
USER=
&userid
"Enter Userid","&sysjobid","8"
"Enter Userid"
"&sysjobid"
"8"
TIME=
&time
"Enter Time","(,5)","8")
"Enter Time"
(,5)
&time
."8"
When you are done editing the JCL, select Close from the File menu. When prompted, select Yes to save the changes. Select Close from the File menu to exit the Result Manager.
To use the new JCL program, you must change the Batch file User Profile option as follows:
Tasks | Setup | Profiles | User |
BATCH
and press ENTER.
The next time you submit a saved task for batch processing, the BATCH1 window appears with your changes.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.