Option 1 - Create a CL program to do that for you, and then call it from the COBOL program.
Option 2 - Call an API for that
Option 3 - If it is a Local Data Area (LDA) in COBOL you can use the I-O-FEEDBACK and a accept/display statement.
Search your COBOL manuals for I-O-FEEDBACK and Local Data Area and you will find information on this.
(SPECIAL-NAMES. LOCAL-DATA IS LOCAL-DATA-AREA. is an example of how it would be defined)
These manuals are freely available with Infocenter and at
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.