Previous Topic: KEY and ENTER StatementsNext Topic: SET Statement


KEY, ENTER, NL, TABF, and TABB Statements

The first KEY and ENTER statements shown below turn off the CAPS option in ISPF. The NL statement places the cursor in the command area of the first line in the input area.

The next KEY statement enters the letter "I" in the input area, and the ENTER command simulates the Enter key to make a blank line in the data set.

The TABF and TABB commands simulate pressing the ®| (forward tab) and |¬ (back tab) keys. In this program, the TABF statement moves the cursor forward to the next input field and the TABB statement moves the cursor back to the previous input field. This is done to ensure that the cursor is in the first space of the inserted line.

KEY 'CAPS OFF' 
ENTER 
NL 1 
KEY 'I' 
ENTER 
TABF 1 
TABB 1