Interview Questions

How do you declare a host variablr in COBOL ...

COBOL Interview Questions


(Continued from previous question...)

How do you declare a host variablr in COBOL ...

Q: How do you declare a host variablr (in COBOL) for an attribute named Emp-Name of type VARCHAR(25)?

A:
01 EMP-GRP.
49 E-LEN PIC S9(4) COMP.
49 E-NAME PICX(25).

(Continued on next question...)

Other Interview Questions