Enabling the Dup Key

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

From: Willie Moore To: All

In order to activate the Dup key, the DDS manual states that you should do the following:

1. Specify, in DDS, two fields for each input-capable field on the display. Specify one field as an input-capable field and specify the field-level DUP keyword with a response indicator. Specify the other field as a hidden field (H in position 38).

2. On the first output operation, set off an option indicator for the DUP keyword.

3. On the first input operation, move the input-capable field to the hidden field. This saves the keyed value for later use.

4. On each subsequent output operation, set the option indicator on for the DUP keyword.

In one of my applications, the Dup key could be used with up to 10 fields.

If the screen is already full, how or where would I position the hidden fields? Do I have to break the screen up into two parts now?

From: Matt Sargent To: Willie Moore

Hidden fields are not the same as nondisplayed fields. They are a special type designated with an H in position 38 (usage). Although they are a part of the record format, they don't take up space on the screen and don't have a row/column position. To add a hidden field in SDA, bring up the format for editing and press F4 to see the field list. Below the list of fields is an area where you can add hidden fields, message fields and program-to-system fields.

You can have hidden fields on any format, including subfiles, subfile controls, and windows.

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: