Window display file AS/400

755 pts.
Tags:
AS/400
I am having a Displayfile which contains the account details, the screen is not sufficient to display complete details, so we need to display a window display file when cursor is places and f8 is pressed. Now I'm able to do it, but in the window screen there is f9 for toggle, now the f9 is pressed the screen should be displayed right bottom and next left bottom and next left top. In this way, it needs to be displayed clock wise up on f9 pressed.


Software/Hardware used:
as400
0

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.

Discuss This Question: 7  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.
  • CharlieBrowne
    Obviously this is something that can be done. If you are having an issue, please explain what the problem is and also post you code.
    62,385 pointsBadges:
    report
  • ToddN2000
    If I understand, you want the window to show when F8 is pressed. Then each time you press F9 the window location moves clockwise around the screen. Is that correct? What errors do you get and what does you DSPF code look like for the window?
    134,845 pointsBadges:
    report
  • Splat
    You're going to have to keep track of each start-line / start-position / window-lines / window-positions used in the WINDOW keyword to control the positioning.
    12,915 pointsBadges:
    report
  • philpl1jb

    The upper left corner of the window can be positioned with two variables, so when F9 is pressed you could change the values of those variables based on their previous values and then write the necessary formats and screen.

    WINDOW(start-line | &start-line-field start-position
    | &start-position-field window-lines window-positions
    [*MSGLIN | *NOMSGLIN])
    [*RSTCSR | *NORSTCSR])


  • The number or the name of a field containing the number of the line that is to contain the upper-left corner of the window border.
  • If a field name is specified, the field must exist in the record format and the field must be defined as a signed numeric (data type S) and program-to-system (usage P) field with length no greater than 3.
  • The number or the name of a field containing the number of the position that is to contain the upper-left corner of the window border. If a field name is specified, the field must exist in the record format and the field must be defined as a signed numeric (data type S) and program-to-system (usage P) field with length no greater than 3.
  • 54,090 pointsBadges:
    report
  • philpl1jb

    DDS would look something like this

    A                                  WINDOW(&ROW &COL 10 10)
    A           ROW 3S 0P
    A           COL  3S 0P

    54,090 pointsBadges:
    report
  • ToddN2000
    nice tip philpl1jb, I never knew you could use parameter variables in the window definition. I never had the need to do anything like the original poster or have seen it used before.
    134,845 pointsBadges:
    report
  • ravula
    Hi, I'm able to achieve this. We can do 4 window record formats and each will have its own positions and we need to use remove window keyword and next we need to handle programmatically to display when f9 is pressed
    755 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.

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

Following

Share this item with your network: