Whenever our users develop a Query report, it always seems that they define a 198 column printout. With Query, the only way to print the full 198 characters is to run the command OVRPRTF and specify 15 CPI. This quick command, RUNQRY15, will handle the OVRPRTF automatically. Instead of using RUNQRY, our users always use RUNQRY15 (1a and 1b). It asks for the Query name and the CPI.
Whenever our users develop a Query report, it always seems that they define a 198 column printout. With Query, the only way to print the full 198 characters is to run the command OVRPRTF and specify 15 CPI. This quick command, RUNQRY15, will handle the OVRPRTF automatically. Instead of using RUNQRY, our users always use RUNQRY15 (Figure 1a and 1b). It asks for the Query name and the CPI.
Although this command only uses two parameters, you could easily add a question mark to the OVRPRTF and DLTOVR commands of the RUNQRY15 program to force each command to prompt, and let each user customize the command to their needs.
The program and command are shown in Figures 1a and 1b.
Art Tostaine, Jr. Spotswood, New Jersey
TechTalk: Printing Query at 15 CPI
Figure 1A Command RUNQRY15
Figure 1a Command RUNQRY15 CMD PROMPT('Run Query Report with 15 CPI') PARM KWD(QRY) TYPE(*CHAR) LEN(10) MIN (1) + PROMPT('Query') PARM KWD(CPI) TYPE(*DEC) LEN(2) MIN(0) + PROMPT('CPI')
TechTalk: Printing Query at 15 CPI
Figure 1B Program RUNQRY15
Figure 1b Program RUNQRY15 PGM PARM(&QRY &CPI) DCL VAR(&QRY) TYPE(*CHAR) LEN(10) DCL VAR(&CPI) TYPE(*DEC) LEN(2) OVRPRTF FILE(QPQUPRFIL) DEV(*JOB) PAGESIZE(*N 198) + CPI(&CPI) RUNQRY QRY(&QRY) DLTOVR FILE(QPQUPRFIL) ENDPGM
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