KSL is composed of screen control commands and editing commands. Screen control commands correspond to operations of the terminal keys. Editing commands are required to edit the printed page.
At the beginning of a script, you are positioned in the on-line field of the IOA Primary Option menu. If the IOA entry panel is mandatory at your site, you are positioned at the entry panel and you should include commands that enter your user ID and password first.
The following is an example of a KSL script that prints the contents of a specific job scheduling definition is illustrated below:
TYPE '2'
ENTER
TYPE 'DPTT.CTM.SCHEDULE'
CURSOR NEWLINE
TYPE 'APD'
CURSOR NEWLINE
TYPE 'APDP0020'
ENTER
PRINTSCREEN 3 23
END
This script produces a printout of the first screen of the job scheduling definition. The following explains each step of the above example.
Table 1 Step-by-Step Explanation of Script Example
Command |
Description |
---|---|
TYPE '2' |
Equivalent to typing option 2 in the IOA Primary Option menu. |
ENTER |
Equivalent to pressing Enter on your terminal. As a result, you are “entering” the Online Scheduling Facility entry panel. |
TYPE 'DPTT.CTM.SCHEDULE' |
On entry to the screen, the cursor is always positioned on the library name field. Type the scheduling library name. |
CURSOR NEWLINE |
The cursor moves to the table name field. |
TYPE 'APD' |
Type the table name. |
CURSOR NEWLINE |
The cursor moves to the job name field. |
TYPE 'APDP0020' |
Type the job name. |
ENTER |
The job scheduling definition for the specified job is displayed in the Job Scheduling Definition screen. |
PRINTSCREEN 3 23 |
The contents of the screen from line 3 through 23 are printed. |
END |
End of report. |
A KSL script is a representation of your keystrokes while you are working with the Online facility. Everything that you can display on the screen, you can print. Every selection criterion that can be applied online can be applied in batch mode. The same language is used to work on the screen and on the output of the KSL script.
Parent Topic |