A good way to make your programs more readable and more easy to maintain is to use the simple technique of renaming display file response indicators. Response indicators are those that are assigned to keywords (e.g., ROLLUP, ROLLDOWN, CFxx, CAxx). By using an RPG "I" specification with the applicable display file record format name, you can rename any *IN response indicator to a descriptive name such as ROLLUP, EXIT, or PROMPT (see 1). Not only will your programs be more readable, but by looking at your "I" specifications, you can instantly cross reference all of your command keys. Unfortunately, option indicators (the indicators that condition display file fields) cannot be renamed.
A good way to make your programs more readable and more easy to maintain is to use the simple technique of renaming display file response indicators. Response indicators are those that are assigned to keywords (e.g., ROLLUP, ROLLDOWN, CFxx, CAxx). By using an RPG "I" specification with the applicable display file record format name, you can rename any *IN response indicator to a descriptive name such as ROLLUP, EXIT, or PROMPT (see Figure 1). Not only will your programs be more readable, but by looking at your "I" specifications, you can instantly cross reference all of your command keys. Unfortunately, option indicators (the indicators that condition display file fields) cannot be renamed.
John Rittenhouse Jacksonville, Oregon
TechTalk: Add Meaning to Your Display File Indica
Figure 1 Renaming display file response indicators
Figure 1: Example of Renaming Display File Response Indicators 6..10....+...20....+...30....+...40....+...50....+...60....+ IDSPFL01 I *IN03 EXIT I *IN05 PROMPT I *IN61 ROLLUP
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.
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:
LATEST COMMENTS
MC Press Online