I want to know how a subfile is declared in a RPG program in F specs

45 pts.
Tags:
AS/400 Subfiles
Hi, I want to know how a subfile is declared in a RPG program in F specs. How the WORKSTSN files know that it has to retrieve the records from a DISK file. I did not find any reference between these two in one of the example. Please explain.

Answer Wiki

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

The RPG program gets the disk records, prepares and writes subfile records.

http://www-01.ibm.com/support/docview.wss?uid=nas13a76c92c9f177d32862568cc006440b8

an example in RPGIII but answers your questions

http://www.green-springs.com/code400/subfile1.txt

is an RPG IV example.

Phil

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
    WORKSTN and DISK files are separate. A WORKSTN file never gets records from a DISK file. Your RPG program uises READ, WRITE and other instructions to get records from your DISK file. The program also uses READ, WRITE, etc., to read or write display records. Your program copies data from fields in one file to fields in the other file. You write the instructions that control what data is copied. 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