Problem in window Subfile

50 pts.
Tags:
as/400 data
How can I call the window Subfile please help me



Software/Hardware used:
AS/400 RPGILE
ASKED: August 14, 2009  6:52 AM
UPDATED: August 14, 2009  2:00 PM

Answer Wiki

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

In your DDS for the DSPF you need to use the WINDOW op code.
Then when you do an EXFMT, the window will display.

OVERLAY
WINDOW(3 07 18 58)

The OVERLAY keyword will keep the current screen in the background.
03 = Beginning line number for window
07 = Number of space from the left of the screen to start window
18 = NUmber of lines in the window
58 = Number of characters in a line

——————————————————-

You will need to show us your DDS
if you are building three records
1 .. Window – just declares position/size/boarders
2 .. SFLCTL
3 .. SFL

1. DSPF The Subfile control record contains WINDOW(YourWindowRecordName)
2. RPGLE After clearing or initializing the control
3. RPGLE Loop to load the subfile
4. RPGLE Exfmt SFLCtlRecordName
If you want a footer on the window
4. DSPF Write Footer (the Footer record also contains WINDOW(YourWindowRecordName)

5. Exfmt SFLCtlRecordName
Phil

Discuss This Question:  

 
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

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