IS Command

The IS (input secondary) command reads input from the terminal and places it in the secondary input buffer, replacing the current contents.

Format

IS [character]

Parameter(s)

character

Specifies the character to appear as a prompt. Any character can be specified, including a blank space. The default setting is the last prompt specified. If none has been specified, a colon (:) is used. The prompt character remains in effect until another IP or an IS command changes it.

Description

The IS command discards leading and trailing blank spaces in the terminal input and converts embedded blank spaces to single blank spaces. If the text includes embedded spaces, it is composed of multiple parameters.

Two commands related to the IS command are IP and IT. The IP command reads data into the active input buffer replacing the current parameter, and the IT command reads in a backup medium label.

Entering Data in the Secondary Input Buffer

The beginning of the next Proc outputs text asking for user input twice (lines 3 and 13):

001 PQ

002 HTERM ,,,,,,

003 2 OPRINTER PAGE WIDTH (# COLUMNS)+

004 IS?

005 IF #A GO 5

006 IF A = (2N) IF A ] 16 GO 1

007 IF A = (3N) IF A [ 156 GO 1

008 OVALUE MUST BE WITHIN RANGE 16-156

009 GO 2

010 5 H140

011 1 A\

012 H,

013 4 OPRINTER PAGE DEPTH (# LINES)+

014 IS

015 IF #A GO 6

 .

 .

 .

The input is put in the secondary input buffer by the IS commands on lines 4 and 14. A question mark is used as the prompt by both commands. The input at line 14 replaces the input from line 4 in the secondary input buffer.