Load Two Subfiles In a single screen

185 pts.
Tags:
AS/400 Subfiles
RPGLE
Subfile Display
Ok sir i will ask my question in detail..

There are two pf in my lib [strong]ramlib[/strong] 1)pf1 2)pf2 ,both Contais name and id with same name , i want to display these two files on single screnn with load all subfile so can u describe this answer? plz mention small code here...

 

 

Answer Wiki

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

Greetings,

Is your question, like you have two PFs with same name and same fields, and then you want to use both the files for their records in a program?
If so, then Rename the Record formats using RENAME keyword and use fields of one of the files using PREFIX keyword at file level. Regarding PF names, they can NEVER be same in one library. Hope this helps..

With Best Regards,
Maliza

Discuss This Question: 3  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.

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
  • MalizaIssac
    Hi again, FPF1 IF E DISK RENAME(RCDFMT:RCDFMT1) F PREFIX(A_) FPF2 IF E DISK Now, all PF1 fields to be used are A_FLD1, A_FLD2... and so on. In subfile, the display fields need not be changed.
    40 pointsBadges:
    report
  • philpl1jb
    Not clear - you asked about two subfiles on the screen at the same time, that would be one section of the screen used by one list and another section by another list. This time it sounds more like you want to merge the data from the two physical files into one list. You can produce one merged list with - a logical file over both physicals - an SQL union - program logic selecting records from each file Please help us understand the specs and direction. Phil
    49,970 pointsBadges:
    report
  • Adamwkiuk2002
    i assume you know how to load up a single subfile. Just double the code up with different format names and you've there.... However, if you're asking how to join the data from the two files and display in a single subfile, I'd get you analysis pencil out if I were you.
    215 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