AS400 – displaying window in *DS3 screen size over SFL in *DS4 screen size

250 pts.
Tags:
AS/400 Display File
RPG/400
RPGLE
I want to be able to display a window with a 24x80 screen size, without removing the background SFL which is displayed with a 27x132 screen size. Haven't been able to do it. I have tried 2 different formats in one display file, using 2 line and position definitions per field (one for DS3 and one for DS4) and DSPMOD (may not have done all this correctly), 2 display files in the same program and 2 separate programs where the first calls the second. The appropriate keywords, ASSUME and KEEP, have been included but whatever I've tried, the background SFL is either totally removed, leaving a black background, or the program crashes indicating that the DS3 format can't be displayed because it is not compatible with the defined screen size.

Is there a way to do what I've described?



Software/Hardware used:
AS400 RPG/400 RPGLE

Answer Wiki

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

No.

Discuss This Question: 2  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
  • Zack
    Thanks. Not the answer I was hoping for but the one I was expecting.
    250 pointsBadges:
    report
  • byron73

    Hi ,  u prolly need to specify both sizes, and use DSPMOD on the screen you use when you you are going back to 80 column mode,  see web site , and code below:

    http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzakc/rzakcmst66.htm#HDRDFDSPMD

     

     se this record-level keyword to specify which of two modes (display sizes) you want to use for the 3180, 3477, or the 3197 Model D1, D2, W1, or W2 display station. *DS3 (24 x 80) and *DS4 (27 x 132) are both supported

    --

    This keyword is valid only when both the 24 x 80 and 27 x 132 display sizes are specified on the DSPSIZ keyword. The first of the two display sizes specified on the DSPSIZ keyword is the default display mode. The record is displayed using this mode unless the DSPMOD keyword indicates that the second specified display size should be used.

    Note:
    This keyword is a run-time keyword and not a compile-time keyword.

    You can specify the default display size with this keyword only if you do not specify option indicators for this keyword.

    The capability to display in the 27 x 132 mode is allowed only on a 3180-2 or a 3197 Model D1, D2, W1, or W2 device attached locally to a 6040 or 6140 controller or remotely to a 5294 or 5394 controller. The DSPMOD keyword is ignored unless these controllers are used.

     

    -- samples:

    The DSPMOD keyword cannot be specified on a subfile record (SFL keyword). The subfile is be displayed according to the DSPMOD of the corresponding subfile control record.

    Option indicators are valid for this keyword. If the option indicator is on at the time of processing, the display mode you have chosen will be used to display the record. However, if the option indicator is off at the time of processing, the default display mode will be used.

    Note:
    Switching display modes is similar to displaying a record without OVERLAY.

    Example 1:

    The following example shows how to specify the DSPMOD keyword.

    |...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
         A                                      DSPSIZ(*DS3 *DS4)
         A          R RECORD1                   DSPMOD(*DSP4)
         A          R RECORD2
         A          R RECORD3
         A  03                                  DSPMOD(*DS4)
         A
    

    The DSPMOD keyword gives the following results:

    • If you write RECORD1, RECORD1 is displayed in *DS4 mode.
    • If you write RECORD2, the display is cleared and RECORD2 is displayed in *DS3 mode.
    • If you write RECORD3 with indicator 03 off, RECORD3 is displayed in *DS3 mode. RECORD2 remains on the display.
    • If you write RECORD3 with indicator 03 on, the display is cleared and RECORD3 is displayed in *DS4 mode.

    Example 2:

    |...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
         A                                      DSPSIZ(24 80 *NORM +
         A                                            27 132 *WIDE)
         A          R RECORD1
         A  03                                  DSPMOD(*WIDE)
         A

     

     

     

     

     

     

     

    10 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