TechTalk: Print Key in RPG/400 Programs

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

From: D J Stump To: All

While I am within an RPG/400 interactive program, how do I enable the Print (or Print Screen) key on a terminal (3477 IBM InfoWindow, for example)? Currently, I get a message telling me that the function key is not allowed. In the S/36 environment, this is not a problem. What am I missing ?

From: Ernie Malaga To: D J Stump

You're missing the PRINT keyword in the DDS of your display file. The PRINT keyword activates the Print key, and you can place it at the file level (before the first record definition) or at the record level (on each record in which you want to allow it). Unless you have special circumstances and need to prevent the Print key from working at certain panels, you'd be better off coding the PRINT keyword at the file level and being done with it.

You should not have to recompile the HLL programs that use your display files because you're not altering the screen buffer layout or adding fields or indicators. I haven't tested this, so there's a chance your HLL programs will have to be recompiled after all. Give it a try, though.

From: James Coolbaugh To: D J Stump

Ernie is correct on the PRINT keyword. And no, you will not have to recompile the programs. I have done this many times.

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: