Reading values through data area except IN & RTVDTAARA?

2920 pts.
Retrieve Data Area
Is there any other way to read values through data area except using 'IN'Opcode in RPG and RTVDTARA command in CL? Please tell me if it could be done in other ways in our RPG program or in our CL program?

Answer Wiki

Thanks. We'll let you know when a new response is added.


There is also an API called QXXRTVDA. Why do you want to use something different to RTVDTAARA or IN?


Martin Gilbert.


There is also the Retrieve Data Area API QWCRDTAA. This API is a bit more flexible in terms of the *DTAARA data type (though the referenced C run-time API does support access beyond *DTAARAs).

Discuss This Question: 8  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • 6r
    actually this was interview question !
    2,920 pointsBadges:
  • Sloopy
    Ha! Like many interview questions, although there is an affirmative answer (there are ways to access a data area without using IN or RTVDTAARA), in practice no-one ever uses the alternative. I once walked out of an interview for a lucrative position because the list of technical questions was useless. I asked the guy, "What idiot wrote these questions?", and he replied, "I did". So I told him I didn't want to work for a dork and walked out. Sloopy
    2,195 pointsBadges:
  • Gilly400
    Hi Sloopy, Know what you mean about the interview questions. I get a bit fed up of having to do techy interviews when I've got 20+ years experience. Some of the questions annoy me because they're so simple and when I see more difficult questions, I wonder whether the client is just fishing for free technical advice. I've had some interviews where I've been asked questions about products/packages which the clients were busy developing at the time - how are you supposed to know about a product that's not even on the market? I had another interview with quite a few techy questions which I answered with no problems, only to be told afterwards that I was "too technical" for the position. On the other hand I've seen people hired on the basis of a CV with lots of experience, only to find they didn't have a clue about anything, so I can see the purpose of some sort of testing - doesn't mean I have to like doing them though. I'm not even going to mention the number of interviews I've ended up with which have nothing to do with my background, due to miscommunications between the client/agency. Regards, Martin Gilbert.
    23,730 pointsBadges:
  • BigKat
    I had a friend that went to an interview once where they wanted the applicants to sit at a terminal and solve a problem. It turned out this was their production code, and they were not really hiring, just getting free consultant work.
    9,460 pointsBadges:
  • djac
    I was once told by an agency that the client had given the job to another applicant because they used more buzzwords than I did. I wasn't too upset that I missed that one....
    900 pointsBadges:
  • RamvishakRamesh
    I have faced the same question today. With out using a data area data structure and without using an IN opcode, is there a way to read a data area?
    2,505 pointsBadges:
  • Splat
    Sloopy, I beg to differ. I just put together a program using QWCRDTAA to retrieve the value of various data areas on the system (had a devil of a time dealing with packed data until I ran across a neat solution courtesy of Dennis Lovelady).
    12,915 pointsBadges:
  • philpl1jb

    I usually don't respond to old threads .. but let me add:

    D Mydta          UDS                  DTAARA('MYDTAARA')

    The U in this D-Spec causes the RPGLE program to Load the data structure and lock the data area prior to the C-spec processing.

    54,090 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: