Example 1

Operation: Add and replace data in an existing data set.

Known:
  • The data set is to contain line numbers.
  • Prompting is specified.
  • The ability to replace lines is specified.
  • The first line number: 2
  • The increment value for line numbers: 2
input 2 2 r prompt
The display at your terminal will resemble the following with your input in lowercase and the system's response in uppercase.
edit quer cobol old
EDIT
input 2 2 r prompt
INPUT
00002 identification division
00004 program-id.query
00006