TechTalk: Are You Cleaning More Than Your Windows

RPG
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

If, like me, you must design screens in the S/36E, you may run into trouble when windowing. Yesterday I was working on a program that sent and received a screen and called another program which, in turn, overlaid a screen on top of the first. I couldn't get the second screen to overlay on top of the first without clearing it. In S/36 SDA, this is accomplished by entering zeros in the lines to clear parameter of the screen attributes.

What took a day to determine is that the two formats used in the programs had different display size values. One had DSPSIZ(*DS4 *DS3) [27 x 132 primary, 24 x 80 secondary] and the other had DSPSIZ(*DS3 *DS4) [the opposite]. Yes, this does make a difference, even when both screens were 24 x 80! The format that had DSPSIZ(*DS4 *DS3) had only one screen that was 27 x 132! The S/36E screen precompiler apparently assumes that if one screen is 27 x 132, the primary should be as well.

There are two ways to solve this problem. The first and easiest is to keep screens with different sizes in different display files. If, like me, you have gone too far to make such a change, here are the steps you should follow.

First, compile with the CRT-S36DSPF command using a TOMBR value other than *NONE. This will create a DDS member in a source file of your choice. Then, the minor adjustments may be made to the DDS to give the format the DSPSIZ that you choose. Don't forget to enter the DSPMOD parameter that may have defaulted. Finally, compile the DDS member to create the new display file.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: