Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Local Data Area in AS400 1

Status
Not open for further replies.

Uvaiz

MIS
Jun 13, 2003
38
CA
Hello Everyone,

Would someone please help me how I could access the local data Area or any data area in COBOL or from select SQL within COBOL program.

Thanking you in anticipation.

Thanks
Tony
 
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

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Thanks Frederico,

Calling a CL within COBOL resolved the problem.

Appreciate your continued valuable feedback.

Regards,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top