Window keyword in display file

115 pts.
Tags:
AS/400
AS/400 Display File
I have a program that displays a list of items and when one is selected it pops a window with detailed information. When I select an item, my window will not display. Is there a configuration/setting somewhere on the AS/400 that would keep the window from displaying ?

Software/Hardware used:
AS400 RPG ILE and DDS

Answer Wiki

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

If you can get on the AS400 that has this issue, and you can recreate it, then I recommend that you start two AS400 session side-byside; one on a machine that does not thave this issus and the machine that does have the issue.

Go into DEBUG on both machines and step through the code. Then you should be able to see the details of what is causing the problem.

Discuss This Question: 13  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
  • TomLiotta
    It's almost certainly somewhere in your code that defines the window or that requests it to be displayed. If you show it to us, we can possibly locate it. -- Tom
    125,585 pointsBadges:
    report
  • Dcarney
    You may be correct, however, the same code is running on over 150 different AS400s and only 1 has an issue bringing up a window. I just thought there might be a system setting somewhere. Thanks for the input. Just thought I'd check.
    115 pointsBadges:
    report
  • TomLiotta
    I've had code running on many hundreds of systems in dozens of countries while failing on some specific system. It was some detail of programming in nearly every case. There were a couple exceptions, but due only to use of very uncommon system interfaces that most systems never exercise combined with IBM updates at OS release boundaries, plus one case of a system that was configured not to use the QSTRUPPGM system value (which was very unexpected). Windowing, though, would be a widely used feature around the world and unlikely to change much release to release. -- Tom
    125,585 pointsBadges:
    report
  • Dcarney
    The IBM windows will not pop up as well (i.e. F1 help on fields). Anyone ever heard of this ?
    115 pointsBadges:
    report
  • TomLiotta
    If standard IBM supplied system functions don't work, verify terminal emulation type, keyboard mapping and similar functions. First quick tests can be from a command line. Run the DSPKBDMAP command to see if it fails with CPF8701. Then run DSPVTMAP to see if it fails with TCP1340. If either of those succeeds, let us know. -- Tom
    125,585 pointsBadges:
    report
  • Dcarney
    Both of those commands failed with CPF8701 and TCP1340 respectively.
    115 pointsBadges:
    report
  • TomLiotta
    When you run WRKDEVD [device] for the device, what type is shown? What emulator software is used? (Or what terminal type?) -- Tom
    125,585 pointsBadges:
    report
  • Dcarney
    Device type is 3477. Emulation software is MochaSoft TN5250.
    115 pointsBadges:
    report
  • TomLiotta
    The environment seems reasonably normal. Can you compile and run a simple test program?
    pgm
    
       dcl   &RcvVar      *char   72
       dcl   &RcvVarLen   *int           value( 72 )
       dcl   &ErrCod      *char    8     value( x'0000000000000000' )
       dcl   &RtnVal      *int
    
    
       callprc 'QsnQry5250'     ( +
                                  &RcvVar      +
                                  &RcvVarLen   +
                                  &ErrCod      +
                                ) +
                         rtnval( &RtnVal )
    
       dmpclpgm
    
       return
    
    endpgm
    The program simply calls a 5250 query API to retrieve device attributes and then dumps its variables.Please copy and paste the hex representation of the receiver variable. The general attributes of the device as the system understands things should be there. You might compare the values against a different system, but I'd like to compare them also. It seems unlikely to show anything odd, but the values should be verified.   What are the OS release and cume PTF package levels?   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Crummy code formatting.
    pgm
    
       dcl   &RcvVar      *char   72
       dcl   &RcvVarLen   *int           value( 72 )
       dcl   &ErrCod      *char    8     value( x'0000000000000000' )
       dcl   &RtnVal      *int
    
    
       callprc 'QsnQry5250'     ( +
                                  &RcvVar      +
                                  &RcvVarLen   +
                                  &ErrCod      +
                                ) +
                         rtnval( &RtnVal )
    
       dmpclpgm
    
       return
    
    endpgm
      Maybe that'll be better. I'll give it one try.   Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Nope. It looks just as bad (except the PGM statement), but it still should compile. -- Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Note that the two single-quotes around the hex constant and the API name all need to be standard EBCDIC single-quote characters. -- Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    The code looks better in the 'Discuss' list than it does in the thread itself. That should be a major clue to the site developers. -- Tom
    125,585 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