Created On: 2010-04-27
Problem:
How do you receive a variable length string in a COBOL program?
Resolution:
The receiving field must be defined as PIC X ANY LENGTH from the Linkage Section as shown below:
LINKAGE SECTION.
01 Field-Name PIC X ANY LENGTH.
There is a sample project attached to this Knowledge Base article.
LINKAGE SECTION.
01 Field-Name PIC X ANY LENGTH.
There is a sample project attached to this Knowledge Base article.
Incident #2358782
Attachments
Old KB# 31084