You can assign symbolic labels to data lines on the edit display. Several of the edit primary commands (including CREATE, REPLACE, MOVE, and COPY) can later reference these labels.
A label is a character string that must begin with a period (.), followed by from one to five alphabetic characters. No numeric or special characters are allowed. Labels starting with .z are reserved for system use. Once assigned, the labels stay with the line, even if the line is moved.
The label is assigned by typing the valid character string into the line command field of the data line (the leftmost six columns of the edit data display).
000018 FILE-CONTROL. .here SELECT CD-FILE ASSIGN TO SYS005-S-SYSIN. 000020 SELECT PRT-FILE ASSIGN TO SYS006-S-SYSPRINT. .there DATA DIVISION. 000022 FILE SECTION.
You can assign labels only to data lines. You cannot assign them to special lines (=COLS>, =MASK>, =TABS>, and so on).
|
Copyright © 2003 CA.
All rights reserved.
|
|