adspace


how to refer the data field?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need a small 3d program using inline and outline.

2311


Are you comfortable in cobol or jcl?

1116