Screen size from INFDS

1415 pts.
Tags:
AS/400
AS/400 Display File
INFDS
I'm trying to get the size of the screen from the INFDS for the display file. According to the IBM manual it should be available in the INFDS positions 67-70 after a POST. After working on this for a couple of hours and searching the internet for another hour or two I'm at a loss. I can get other information from the INFDS but the screen size is always zero. I'm trying to determine if a program is running on a normal screen or a handheld scanner with a smaller screen.
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: 6  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.
  • philpl1jb

    So does that mean that you need a post command in your program

    http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c0925083695.htm#HDRZZPOST

    and is it required that you do a read or exfmt before the post.

    54,090 pointsBadges:
    report
  • ToddN2000
    The screen size is set in the DSPF DDS. What is the purpose for trying to get it from the INFDS? I'm try to figure out why you would have a program use multiple screen size layouts.
    134,930 pointsBadges:
    report
  • philpl1jb

    I remember these .. same program/screen running on PC screens and handhelds .. they we're something like 38x10 ??? So they would be walking the warehouse or on their forklift, scanning bar codes.

    But I don't think I wrote that spot of code was already there or was part of the package. Or did they just have to enter a value for full-screen vs handheld.

    54,090 pointsBadges:
    report
  • ToddN2000
    We have the same scenario here. Our scanners have a small scree but we set the size in the DSPF to DSPSIZ(24 80 *DS3) but only code for columns 1-22 and lines 1-13. The user can still call the same command on a desktop, it just puts everything in the upper right of the screen. We do not adjust the screen size at all.
    134,930 pointsBadges:
    report
  • philpl1jb

    that sounds about right, Todd, I'm thinking we asked on the first small screen .. and then used the limited size displays like you described for the handhelds.

    There weren't as many function keys ..

    Seems like yesterday, no seems like 15 years ago, was about 15 years ago.  Ah. when computers had cranks.

    54,090 pointsBadges:
    report
  • ToddN2000
    We wrote our program years ago. We set the large display size and only coded for the hand held screen size. This way the could use the units to scan inventory barcodes in the factory and warehouse. In areas where there was no wireless signal they could use the same program on a desk top and do the entry there. This way, one app suit 2 uses.
    134,930 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: