Elena
asked on
AS/400 COBOL - how to read Data Area
Is there anyone can help me with the syntax and
possibly an explanation how to read Data Area on AS/400 using COBOL. If possible I would like to see an exemple of code. Please, I need an aswer as soon as possible.
possibly an explanation how to read Data Area on AS/400 using COBOL. If possible I would like to see an exemple of code. Please, I need an aswer as soon as possible.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As far as I know, You can read and write data to an DATA-AREA exactly the same way as you do this for your LOCAL-DATA-AREA (with DISPLAY and ACCEPT).
This is only functioning when the data area is already opened in a previous step.
(So actually it is more like reading a 1 record file.)
This is only functioning when the data area is already opened in a previous step.
(So actually it is more like reading a 1 record file.)
Hi Elena,
Is it not working, or have you stoped thinking about us??
:-)
Is it not working, or have you stoped thinking about us??
:-)
Help requested, reponses provided and still open today. Please return to your open questions and update/finalize them.
EXPERTS PLEASE HELP ME DECIDE THE FAIR OUTCOME FOR THIS QUESTION, if it remains open another seven (7) days, since we will need to finalize it.
Thank you,
Moondancer - EE Moderator
EXPERTS PLEASE HELP ME DECIDE THE FAIR OUTCOME FOR THIS QUESTION, if it remains open another seven (7) days, since we will need to finalize it.
Thank you,
Moondancer - EE Moderator
Give the Ponts to Murphey
Thaks PSP
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept xinger's comment as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
ShalomC
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Accept xinger's comment as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
ShalomC
EE Cleanup Volunteer
Is it not possible for you to do a CALL to QCMDEXC from your Cobol program so you can use the RTVDTAARA command. You just have to declare 2 variables : The first one should contain the command to be processed by the QCMDEXC program. The second variable should be define as a 15,5 packed digits. This variable should contain the real lenght of the command that you give to QCMDEXC.
Hope this help.
Bye