how to refer the data field?
Answer / Atiya Parveen
In COBOL, you can refer to a data field using its label or by position (using PIC and REDEFINES). For example:
```
01 EMPLOYEE.
05 NAME PIC X(20).
05 AGE PIC 99."
"
To refer to the data field, you can use the following ways:
- By label: `NAME` or `AGE`
- By position: `EMPLOYEE.1` for `NAME`, `EMPLOYEE.3` for `AGE`
| Is This Answer Correct ? | 0 Yes | 0 No |
there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it
I have a files containing both duplicate and non-duplicate records.The file is already sorted by a key.I want to determine those records that are duplicate and records that are non-duplicate.If duplicate the record is move to a duplicate file and if non-duplicate that will be move to valid file.thank you
Which mode is used to operate the sequential file?
What type of Call you would use if you don;t want the control back to the calling program?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Why would you use find and get rather than to obtain?
Using string statement.Is coding three destination string from one source string possible in one code?or three codes for every destination string of one source string.?thank you
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
What is inspect in cobol ?
What is COMP-1? COMP-2?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is the difference between working storage copybook and linkage section copybook?