- 3401. TechTalk: Message Subfile Bug
- (RPG)
- My article "Easy and Powerful Message Presentation" (April 1992) described the usage of message subfiles to present messages in application programs typically written in high-level languages like RPG. Everything ...
- Created on 31 July 1992
- 3402. TechTalk: Doing Windows
- (RPG)
- From: Mike Mohr To: All I am trying to display a window showing the status of the program like the "Printing..." window on the ResourceLibrary. The window should show while I am building a subfile. I ...
- Created on 31 July 1992
- 3403. Creating Program-style Menus
- (CL)
- ... for simplicity. Now let's move on to the CL program. The CL Program The program you use in your menu (whether it's written in CL or in another language like RPG/400) must accept three parameters. These ...
- Created on 31 July 1992
- 3404. Getting Into Outfiles
- (CL)
- ... the outfile must exist before compiling the program. If you are using a system-supplied outfile, you can simply specify the name of the model outfile on your program's file definition statement (the RPG ...
- Created on 31 July 1992
- 3405. Fat Folder Finder
- (CL)
- ... objects. The logical files are used to control report sequence. FLR-002W3 (4a) selects records by name within folder; FLR002W4 (4b) is in name sequence only. The RPG program (6) uses an externally described ...
- Created on 31 July 1992
- 3406. TechTalk: Degraded SETLL Performance
- (System Administration)
- Between V1R3M0 and V2R1M0 of OS/400, IBM seems to have changed the RPG/400 SETLL operation in such a fashion that it may affect the performance of certain applications. Under V1R3M0, it is perfectly acceptable ...
- Created on 31 July 1992
- 3407. TechTalk: Who's Calling Please
- (General)
- ... instance. If the program that needs the caller's name is written in RPG/400 you can call the program activated by the RTVPRVPGM command directly. Just include the code from 1c in your program. If the ...
- Created on 31 July 1992
- 3408. Better Than Job Logs...
- (IT Infrastructure - Other)
- ... ENDPGM Better Than Job Logs... Figure 2C RPG program USR002RG FUSRLOG O E DISK A * C *ENTRY PLIST C PARM ULMSGI C PARM ULMSGL C PARM ULMSGF C PARM ULMSGT C PARM ULMSGX C PARM ULJOBN C PARM ULJOBU ...
- Created on 31 July 1992
- 3409. AS/400 Subfile Programming, Part I: Foundation
- (RPG)
- ... RPG and COBOL source required to complete the program. During file definition specifications, a file extension or clause identifies the subfile and associates the RRN field with it to act as the relative ...
- Created on 30 June 1992
- 3410. TechTalk: Retrieving the AS/400 Serial Number
- (System Administration)
- From: Rick Crider To: All Does anybody out there know how to retrieve the system serial number in an RPG program? I would be most appreciative to have somebody stand up and say: I do!! I do!! It would ...
- Created on 30 June 1992
- 3411. TechTalk: S/36 to AS/400 Conversion Tips
- (System Administration)
- ... this month's Tech36 for an example of this code. About the position of the cursor, this information is now available in the INFDS, even with RPG36. The binary row is in 370, and the binary column is in ...
- Created on 30 June 1992
- 3412. S/36 Environment Printing Internals
- (Document Management)
- ... S/36 Environment are discussed in detail. It's not surprising that some S/36 programmers have expressed frustration with the "simple" job of producing a report on the AS/400. On the S/36, your RPG program ...
- Created on 30 June 1992
- 3413. Getting the Most Out of PDM
- (General)
- ... be used on database files or source files with equal ease, although it is mainly geared for source files. Let's put FNDSTRPDM to work. Assume you have a source file called QRPGSRC in MYLIB and you want ...
- Created on 30 June 1992
- 3414. The REXX Source File List
- (General)
- ... OELIB/QRPGSRC and INVLIB/QPGMSRC. The first step is to change the system's source file list: CHGREXSRCL TYPE(*SYS) + SRCL(QGPL/QREXSRC + UTILITY/SOURCE + OELIB/QRPGSRC + INVLIB/QPGMSRC) Now you decide ...
- Created on 30 June 1992
- 3415. TechTalk: Changing Field Usage in SDA
- (RPG)
- When using SDA to design screens, there are times when you need to change the usage of a field that is already defined. If you read the help screen for "Design Image Work Screen," it will explain ...
- Created on 31 May 1992
- 3416. Get a Handle on Object Authorities with the LSTOBJ
- (IBM i (OS/400, i5/OS))
- ... OUTMBR(*FIRST *ADD)) DLTOVR FILE(*ALL) ENDPGM Get a Handle on Object Authorities with the LSTOBJ Figure 5 RPG program OBJ010RG FQAOBJAUTIP E DISK FOBJ010P1O E 99 PRINTER * IQSYDSAUT I OALIB L1 I ...
- Created on 31 May 1992
- 3417. TechTalk: Record Lock Gotcha!
- (System Administration)
- ... little surprise? So, IBM wants me to spend many, many days recompiling all of my RPG programs in this canned software package that I have, just to pay the price of upgrading my operating system release ...
- Created on 31 May 1992
- 3418. TechTalk: What Programs Use a File?
- (General)
- ... SPACEA(1) A WHFNAM R 3 A WHLIB R +8 A WHPNAM R +4 A USAGE 12A +6 TechTalk: What Programs Use a File? Figure 1D RPG program F001RG FQADSPPGMIP E DISK FF001P1 O E 99 PRINTER * C WHFNAM IFEQ FILE C ...
- Created on 31 May 1992
- 3419. TechTalk: On CALLing and PARMing
- (General)
- ... will have to be modified, of course, to recognize this situation as valid. 2. If the CALLed program is an RPG program, you can use the program-status data structure to retrieve the number of parameters ...
- Created on 31 May 1992
- 3420. At Ease With the Attention Key
- (RPG)
- ... my Attention key program. Writing Your Own Attention Key Program You can write your own Attention key programs in any HLL language: CL, RPG, COBOL, C.... There are two limitations you must keep in mind ...
- Created on 30 April 1992
- 3421. TechTalk: RTNDTA: A New Trick for Old Dogs
- (RPG)
- ... stuff that's going to help right now, today? For example, my old style of coding a simple interactive maintenance program was to begin all screen field names with a '$' sign. Then in my RPG program I ...
- Created on 30 April 1992
- 3422. TechTalk: Reading From Subfiles
- (RPG)
- ... record. How can I code my RPG program so that it receives all input: the option numbers and the additional input fields? A. All you need to do is code several READ operations one after the other. For ...
- Created on 30 April 1992
- 3423. TechTalk: No Need to Recompile
- (RPG)
- You've just made a minor change to your display file. Now you must recompile all the programs that use it to avoid getting level check errors, right? Or do you? The system assigns a unique level identifier ...
- Created on 30 April 1992
- 3424. Juggling Jobs
- (CL)
- ... RTVDTAARA command. Instead of specifying a data area name, you use the special value *GDA with those commands. The RPG reference manuals do not mention the group data area as a data area that can be retrieved, ...
- Created on 30 April 1992
- 3425. Reorganize Your Data Queues
- (System Administration)
- ... MSGF(&MSGF) + MSGFLIB(&MSGFLIB) SNDPGMMSG MSGID(&MSGID) MSGF(&MSGFLIB/&MSGF) MSGDTA(&MSGDTA) + MSGTYPE(*ESCAPE) ENDPGM Reorganize Your Data Queues Figure 1C RPG program DTAQ005RG * These tables translate ...
- Created on 30 April 1992
- 3426. Using REXX to Indent CL Source
- (General)
- ... write a program that will take a CL source member, indent the statements as needed, and write it back. If you have the December 1991 issue of MC, you'll remember Robin Klima's utility to indent RPG/400 source, ...
- Created on 30 April 1992
- 3427. Line Up for Data Queues
- (General)
- ... Program Interface (API) to send data to a data queue. QSNDDTAQ expects either four or six parameters: four if the data queue is *FIFO or *LIFO, six if *KEYED. 1 shows an example in RPG, using six parameters. ...
- Created on 30 April 1992
- 3428. TechTalk: S/36 to AS/400 Conversion
- (General)
- From: Paul Webb To: All We are in the process of converting from our S/36 to an AS/400 and it is taking me longer than I expected (and told my boss). The situation is that we having been using ASNA's 400/RPG ...
- Created on 31 March 1992
- 3429. TechTalk: Subfile Error
- (RPG)
- From: Brian Kautz To: All Just started playing with subfiles (we came over from S/36 about six-seven months ago.) Just got the error CPF5051--PUTGET not allowed in subfile for file XXXXXXXXXX in Library. ...
- Created on 29 February 1992
- 3430. Debugging Simplified
- (General)
- ... points at statement numbers for calculation, input and output specifications. The standard RPG processing points (i.e., *GETIN, *TERM, etc.) can also be used to set a break. A break point set at *TERM, ...
- Created on 29 February 1992
- 3431. Edit Character Data Areas Interactively
- (General)
- ... CURLIB(&DTAARALIB)) RTVDTAARA DTAARA(&DTAARALIB/&DTAARANAME) RTNVAR(&DTAARADTA) ENDDO /* Call RPG program to allow edit of data area */ RETRY: + CALL PGM(DTA001RG) PARM(&DTAARADTA &MSG &FILLER &DTAARALIB ...
- Created on 29 February 1992
- 3432. TechTalk: Auto-Report Problems
- (General)
- ... for the future, but this is ridiculous. We checked the logic of the program and everything was correct. Suspecting a problem with Auto-Report, we replaced it with an RPG program using identical logic. ...
- Created on 29 February 1992
- 3433. AS/400 Messages: Part I
- (IT Infrastructure - Other)
- ... however, is not recommended. Avoid using the letters CPF at the beginning of the message ID, since these are used for system messages. Other letters you should not use are CPA to CPZ, MCH, KBD, RPG, etc ...
- Created on 29 February 1992
- 3434. TechTalk: Utility to Change all END operations to
- (RPG)
- If you are on OS/400 V2R1, you may already have started to use the new RPG/400 operation codes ENDIF, ENDDO, ENDCS and ENDSL in your programs. You'll find that it doesn't take long to become accustomed ...
- Created on 31 January 1992
- 3435. TechTalK: Partial Key Lists
- (RPG)
- ... using the partial KLIST. I love the flexibility, but don't know where it is explained. From: Pete Hall To: Bill Robins Actually, partial KLISTs can be used for any of the RPG record retrieval opcodes. ...
- Created on 31 January 1992
- 3436. TechTalk: Using the RTV Commands
- (CL)
- ... AS/400. I would appreciate any help. From: Ernie Malaga To: John McKee RTVxxx commands retrieve information and place it in CL program variables only. You cannot run RTVxxx commands from RPG programs ...
- Created on 31 January 1992
- 3437. Printer File Creation and Management Made Easy
- (Document Management)
- ... errors can be avoided by eliminating the tedious coding of DDS or RPG Output specifications. With RLU, you will be able to easily create and modify reports with the assurance that the report is going ...
- Created on 31 January 1992
- 3438. Free SQL and Improved Query Through Query Manageme
- (SQL)
- ... the missing secondary record. Also, all QM form edits are not the familiar edit codes used with Query/400 and RPG--they are the new SAA edit types, including several character edit codes. Once the query ...
- Created on 31 January 1992
- 3439. TechTalk: Subfiles, Rolling and Enter
- (RPG)
- From: Brian Singleton To: All I'm having trouble with subfiles. I have set subfile size one greater than subfile page and load the subfile. The problem occurs if I press Roll Up several times and then ...
- Created on 31 December 1991
- 3440. TechTalk: Field Ranges
- (RPG)
- From: Chris Ringer To: All Does anyone out there know how to make sure the user enters a value in a field that falls within a certain range? For example, if a part price (all part prices) should be in ...
- Created on 31 December 1991
- 3441. Quote...unquote: Help with CL String Manipulation
- (CL)
- ... like this, shown in Figure 2. Octuple Quotes When doubling quotes time after time, only the sky's the limit. If you wanted to run the above SBMJOB command from within an RPG program, you'd have to use ...
- Created on 31 December 1991
- 3442. TechTalk: Using Variables With OPNQRYF
- (CL)
- ... OPNQRYF FILE((SRSOMF01)) QRYSLT('SMEXDT = %RANGE(920131 920131) & SMCONR = "08"') CALL PGM(SR00788RX) /* RPG to write selected records + based on policy expiration date */ CLOF OPIND(SRSOMF01) ...
- Created on 31 December 1991
- 3443. TechTalk: Shared Spool Files
- (System Administration)
- ... do this with the command OVRPRTF FILE(QSYSPRT) SHARE(*YES). Then you must open the printer file and keep it open. This can be done with a very small RPG program which contains dummy printer output (99N99 ...
- Created on 31 December 1991
- 3444. In My Opinion: Level 40--Does It Hurt Yet?
- (Commentary)
- ... CLRPFM or an RPG DELET operation on the wrong record or file. As anyone who has programmed in assembler knows, accidentally changing one wrong bit can bring down the machine, but deleting one of those ...
- Created on 31 December 1991
- 3445. Stamp Out Decimal Data Errors
- (General)
- ... OVRDBF FILE(DATAIN) TOFILE(&LIB/&FILNAM) MBR(&MBR) CALL PGM(DEC001RGA) PARM(&CHKSIGNED &CHKPACKED &UPDOPT &LSTERR) ENDPGM Stamp Out Decimal Data Errors Figure 4 RPG program DEC001RG FFILEATR IP E ...
- Created on 31 December 1991
- 3446. TechTalk: Combining Files Through a Logical View
- (General)
- Q: Could someone please enlighten me on the best way to combine data from two files, perform record selection and resequence the file for use by RPG/400? My situation is this: I have two externally ...
- Created on 31 December 1991
- 3447. TechTalk: Understanding QTEMP
- (General)
- ... use ?WS??TIME? for the filename here on my S/36 and externally describe the file using ASNA's 400/RPG. I understand that this will cause problems on the AS/400 because the output of a sort will be a temporary ...
- Created on 31 December 1991
- 3448. TechTalk: Edit Word
- (RPG)
- ... ) - ' This was valid in RPGII; I'm not sure about RPG/400 or DDS. Also remember to count an extra space for the leading zero (i.e., you couldn't output this field ending in position 13.) From: Pete Hall ...
- Created on 30 November 1991
- 3449. TechTalk: Device Error Recovery
- (System Administration)
- ... recovery. If you attempt recovery, the job is resumed and the program is returned with an error status. For RPG programs, this means the indicator in columns 56-57 comes on or the *INFSR routine gains ...
- Created on 31 October 1991
- 3450. TechTalk: Converting an AS/400 Document to ASCII
- (System Administration)
- ... as WordPerfect and further manipulate it. By comparison, there are no easy ways to do this using IBM- supplied facilities on either a PC or the AS/400. The command, CL program and RPG program (Figures ...
- Created on 31 October 1991