Need an example code for externally described data structure in RPGIII.

620 pts.
Tags:
AS/400
RPG Program
Dear All! Need an example code for externally described data structure in RPGIII. Wherein I need to get the data into the RPG program from the 'externally described file' linked to the DS. Also need to update the same file through the data structure at the end of processing. I have written a simple test-code; which I pasted below; just check whether it can work. ************************************************************ FEXTDS UF E DISK IEXT E DSEXTDS I 1 30FIELD1 I 1 10 FIELD2 I 1 5 FIELD3 C READ EXTDS 99 C UPDATEXTDS C SETON LR

Software/Hardware used:
RPG/400

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Well, it can work; but there usually would be no need for field definitions for FIELD1, FIELD2 and FIELD3. You would only define those if you wanted to redefine those areas. . It's externally-described, so you usually don't need to put field definitions in. The record fields are supplied to the program automatically by the compiler. . But it depends on why you're doing it this way. Without knowing why you want the DS, there's no way to know if you're doing it appropriately. What are you going to do with the DS? . Tom
    125,585 pointsBadges:
    report

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following