Subfile does not display values in the physical file on screen.

10 pts.
Tags:
ILE
RF
SFL
I have made a simple sub file program which uses REF key field to reference the physical file fields. The problem is that my ILE prog which calls the display file does not show the fld values on the screnn in the subfile. While debugging i can see the value in the fields. I am unable to understand why my sub file is not getting populated when i write the SFL rcd fmt.
ASKED: March 7, 2008  6:44 AM
UPDATED: August 4, 2009  3:12 PM

Answer Wiki

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

Hi,

Which SFL indicators do you have on when you write the SFL record and which indicators do you have on when you write/exfmt the SFLCTL record? Do you have anything being shown in the SFL record?

Regards,

Martin.

Discuss This Question: 4  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
  • BobbyS40
    It sounds like you may be mis-interpreting the use of REF. The REF only sets the size of a field in the subfile - it does not load the field. You must load the screen fields in you rprogram. Good Luck, Bobby
    10 pointsBadges:
    report
  • Vids
    As Boby said REF keyword only takes attributes of the field from the Physical File. I wonder if you have same name of fields on screen as they are in Physical File. If name of fields are same in Subfile and Physical File then yu dont have to move the vlues from PF fields to subfile fields through RPG program. But if they re different then you need to move them in urnprogram. I will just give u skeleton of loading subfile -: Clear Subfile routine: set SFLCLR indicator = *ON write SFLCTL set SFLCLR indicator = *OFF Load Subfile routine: read PF move values to screen fields write Subfile Disdplay subfile routine: set SFDSP indicator = *ON set SFLCTL indicator = *ON write SFLCTL EXFMT subfile If you still face any problem then let me know. vids
    295 pointsBadges:
    report
  • Nutangujar
    Hey Martin, as u asked in ur response to this question, could you please elaborate for me....how SFLDSP, SFLDSPCTL indicators alter what I can see in the subfile. Best Regards, Nutan. ----as u know ...ur response was---- Which SFL indicators do you have on when you write the SFL record and which indicators do you have on when you write/exfmt the SFLCTL record? Do you have anything being shown in the SFL record?
    895 pointsBadges:
    report
  • Splat
    SFLDSP controls the display of the subfile records (as a group, not individually). SFLDSPCTL controls the display of the subfile control record.
    6,255 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