How do we read data area in cobol pgm ?
Announcement
Collapse
No announcement yet.
Data area
Collapse
X
-
Re: Data area
Hi Bingo,
In COBOL, it is feasible to read DATA AREA using API QCMDEXC.
Refer the code below:
CALL "QCMDEXC" USING READTAARA-CMD,
READTAARA-LEN
In parameter READTAARA-CMD, move the CL command to read the data area
EG: RTVDTAARA DTAARA(*LDA (1 10)) RTNVAR(&DFTLIB)
and parameter READTAARA-LEN contains the length of the command
Comment
-
Re: Data area
i'm not a COBOL guy...but i can say that RTVDTAARA via QCMDEXC simply will not work. the QCMDEXC API will not be able to process ANY RTV* command. RTV* commands return values in which the QCMDEXC API has no way to capture.I'm not anti-social, I just don't like people -Tommy Holden
Comment
-
Re: Data area
Originally posted by Mercury View PostHope Bingo solved this since Sept 2010 !
I'm not anti-social, I just don't like people -Tommy Holden
Comment
Comment