can i anyone tell me how to use copybooks in cobol
Answer / surya
In DATA DIVISION, under WORK-STORAGE SECTION, we can mention the copy book. Please find the example below.
COPYBOOK "WRKRCD" having the below statements.
01 WORK-RECORD.
05 NAME-FIELD PIC X(1).
05 FILLER PIC X(1) VALUE SPACE.
05 RECORD-NO PIC S9(3).
05 FILLER PIC X(1) VALUE SPACE.
05 LOCATION PIC A(3) VALUE "NYC".
05 FILLER PIC X(1) VALUE SPACE.
05 NO-OF-DEPENDENTS PIC X(2).
05 FILLER PIC X(7) VALUE SPACES.
In program we can mention like below
DATA DIVISION.
WORKING-STORAGE SECTION.
COPY WRKRCD.
| Is This Answer Correct ? | 0 Yes | 0 No |
define comp?
What is redefine?
Can we open close file in COBOL any number of times?
What is comp?
It's possible use %TRIM statement like rpgile?
can i anyone tell me how to use copybooks in cobol
Define redefine?
Explain the difference between section, paragraph and sentences?
Explain how to update data area in cobol 400 program?
what is the cobol compiler?
What are Fillers ? What is the actual use of Fillers ? With small/simple Example..
Code how to read 5th element of the array?