Previous Topic: COMPARE and BRANCH StatementsNext Topic: KEY and ENTER Statements


KEY, ENTER, HOME, and TABF Statements

The following statements open the data set member into which the screen data will be copied:

KEY '2' 
ENTER 
HOME 
TABF 8

The KEY and ENTER statements type the numeral 2 on the command line of the ISPF Option screen to select the edit option and simulate the Enter key.

The HOME command simulates pressing the HOME key to place the cursor in the first data entry field on the screen. In this case, the first data entry field is the command line.

The TABF statement tells the program to simulate pressing the ®| (forward TAB) key eight times, which places the cursor on the "Other Data Set Name" field.