- 3501. TechTalk: Low-Rent Word Processor
- (General)
- ... set up a source file called QTXTSRC in your library or in a special library just for documents. QTXTSRC is just like QCLSRC or QRPGSRC - it simply helps you organize documents by placing them in a file ...
- Created on 31 January 1991
- 3502. AS/400 Basics: Database Files
- (IBM i (OS/400, i5/OS))
- Database Files Next to CL programming, one of the greatest traumas for the new AS/400 programmer is learning about database files. RPG II programmers from the System/36 (and earlier machines) suffer most. ...
- Created on 31 December 1990
- 3503. TechTalk: Lining Up Proportional Spacing
- (System Administration)
- ... that each line without an ending position generates a warning message during compilation. The RPG compiler halts a compile when too many error messages are generated, and issues a message about a message ...
- Created on 31 December 1990
- 3504. Using AS/400 Library Lists in Parallel Environment
- (General)
- ... of any programs we are modifying in the test library. If we are only modifying an RPG program, but not the CL program which calls it, we can use the production version of the CL program. It will find the ...
- Created on 31 December 1990
- 3505. Going Native: The Field Reference File
- (General)
- ... of RPG. The field names used in each database file section, however, should be kept to a maximum of six characters if RPG is to be the main programming language. How Do I Use The FRF? Once you have taken ...
- Created on 31 December 1990
- 3506. AS/400 Basics: Program-to-Program Calls
- (IBM i (OS/400, i5/OS))
- ... in terms of RPG, but the concepts are universal for any AS/400 language. Simply Put The simplest way to think of one program calling another is to think of RPG subroutines. Usually, a subroutine is written ...
- Created on 30 November 1990
- 3507. More on Creating Commands
- (CL)
- ... That Return Values Suppose that you have a small RPG program that calculates the day of the week for any given date. This program receives the date in one parameter - a packed decimal number six digits ...
- Created on 30 November 1990
- 3508. TechTalk: Storing Commands and Keystroke Sequence
- (System Administration)
- ... code out of an RPG program, using ALT / gives me three asterisks for the price of one. I combined the ALT key with / to allow me to use it on CL comments without moving my fingers from the same key. ...
- Created on 30 November 1990
- 3509. TechTalk: Create Physical Files from Logical View
- (General)
- ... to write a simple RPG program to read the file through the logical view and output to a new physical file. But before we did, we tried using the Copy File (CPYF) command using the logical file name in ...
- Created on 30 November 1990
- 3510. Going Native: Moving out of the S/36 Environment
- (IBM i (OS/400, i5/OS))
- ... is used by the program while a different physical name is actually given to the file on disk. For example, the file may be called SOURCE by an RPG program, and yet the disk knows this file as GLTRANS. ...
- Created on 31 October 1990
- 3511. Advanced Subfile Topics
- (RPG)
- Now that you know the basic, use these techniques to get the most out of subfiles. by Jonathan Yergin Over the past two months, we have presented the basics of subfile programming in the "Subfile Fundamentals" ...
- Created on 31 October 1990
- 3512. TechTalk: How to Display an Empty Subfile on the
- (RPG)
- ... McGrath Cincinnati, Ohio TechTalk: How to Display an Empty Subfile on the Figure 1 RPG code for dummy write to a subfile Figure 1: Partial RPG Code to Perform a Single Dummy Write to a Subfile ...1.... ...
- Created on 31 October 1990
- 3513. Creating Commands
- (CL)
- ... that OS/400 didn't use commands. Depending upon what you want to do, you must CALL different programs. For example, there might be a program called QGENRPG to run the RPG compiler. Because QGENRPG is a ...
- Created on 31 October 1990
- 3514. Case Study: Electronic Data Interchange (EDI)
- (Case Studies)
- ... knew. Therefore, the EDI project had a good measure of F.U.D. (Fear, Uncertainty and Doubt) potential for me - a mere seven-year RPG programmer/analyst with a smattering of PC experience. However, this ...
- Created on 31 October 1990
- 3515. Subfile Fundamentals
- (RPG)
- ... gives us this capability in RPG. The second objective is to highlight the records with errors and to position the cursor at the first offending record, thereby allowing easy correction. The display file ...
- Created on 30 September 1990
- 3516. TechTalk: Help Key Support and Other DDS Mysterie
- (RPG)
- You were a real whiz on the System/36. Now you are on the AS/400 and trying to write native programs. How do you code support for the Help key in DDS? How do you implement screen overrides? The answer ...
- Created on 30 September 1990
- 3517. TechTalk: Printing Anywhere on Demand
- (Document Management)
- ... TOFILE(CHGPRTRDF) CALL PGM(CHGPRTRPG) PARM(&OUTQ) DLTOVR FILE(CHGPRTR) CHGJOB JOB(*) OUTQ(&OUTQ) ENDPGM TechTalk: Printing Anywhere on Demand Figure 2 RPG program CHGPRTRRG H FTEMPOUTQIF F 382 DISK ...
- Created on 30 September 1990
- 3518. AS/400 Basics
- (IBM i (OS/400, i5/OS))
- ... object, and RPG, COBOL, and CL are subtypes defining the type program. Because the rule applies to the object type, you must have different program names, even though one may be an RPG program and the ...
- Created on 31 August 1990
- 3519. Subfile Fundamentals, Part One
- (RPG)
- ... the program without it. The benefits of using the SFLDROP keyword are explained later in the detailed discussion of the sample program. The Plan for a Simple RPG Inquiry Program There are three steps ...
- Created on 31 August 1990
- 3520. TechTalk: "Local" Indicator
- (RPG)
- ... "Using Bit Fields as Data"), the other using a character array of up to 99 elements to store the settings. By making use of the RPG/400 predefined *IN array, the technique can be greatly simplified. The ...
- Created on 31 August 1990
- 3521. TechTalk: Multiple Error Message Processing
- (System Administration)
- Perhaps the best example of how RPG programming methods vary is the variety of ways to handle screen error messages. In many programs when a user fills a screen with data and presses enter, he or she ...
- Created on 31 August 1990
- 3522. TechTalk: Add Meaning to Your Display File Indica
- (RPG)
- ... 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 ...
- Created on 31 July 1990
- 3523. Using Bit Fields as Data
- (General)
- ... The RPG operation codes are not particularly difficult to understand, and there are equivalent operations in the other high-level languages (although I can't think of any technique to use bit-level operations ...
- Created on 31 July 1990
- 3524. TechTalk: Password Management Made Easier
- (Security - Other)
- ... a CL program to display the screen since one file was already declared in VLDPASSWRD.) If the new password makes it through the exclusion check, the RPG program PASSWORDR is called to store the password ...
- Created on 31 July 1990
- 3525. Diploma/C
- (General)
- ASNA's C Compiler produces much faster programs than does IBM's C. by Lance Gillespie Amalgamated Software of North America (ASNA), noted for their excellent RPGIII compiler for the System/36, has introduced ...
- Created on 30 June 1990
- 3526. C... Is Less More?
- (General)
- ... The basic data type pointer and the aggregate data type union are the only items without similar representation in RPG. Take a look at Figure 1 which shows C's data types, operators, and control flow statements. ...
- Created on 30 June 1990
- 3527. Joining Files
- (General)
- ... such as treating RPG indicators as data fields. But the AS/400 is a database machine, built upon new concepts, so the majority of the differences from your old environment proceed from a change in philosophy. ...
- Created on 30 June 1990
- 3528. TechTalk: Finding Level Check Conflicts
- (General)
- ... (The format check is ignored if LVLCHK(*NO) is specified for the file when it is created.) CL program LEVELCK (1), along with RPG program LEVELCKR (2) will produce a list of all programs in which the ...
- Created on 30 June 1990
- 3529. Flexible Reporting with Open Query File
- (Business Intelligence)
- ... of OPNQRYF, are so powerful that I can often satisfy everyone's wishes with a generic RPG program called by one or more CL programs which use OPNQRYF. You may come across some pleasant surprises while ...
- Created on 31 May 1990
- 3530. TechTalk: Choose the Right Path
- (System Administration)
- ... than reading by an access path. To do this in RPG, leave position 31 of the "F" specification for the file blank. This will cause the program to read the file sequentially. When reading files ...
- Created on 31 May 1990
- 3531. TechTalk: Substitute Program
- (General)
- If you have ever had occasion to test a new version of a program over production data, you may have wished that IBM had supplied OS/400 with an Override Program (OVRPGM) command. This would be a command ...
- Created on 31 May 1990
- 3532. TechTalk: File Size Retriever
- (General)
- ... (source in 2), then overrides "ANYFILE" to the actual library, file and member. The RPG program RECCNT (3) is then invoked to retrieve the actual number of records in the file from the file information ...
- Created on 31 May 1990
- 3533. A #GSORT User's Primer to Open Query Fil
- (Business Intelligence)
- ... file that is accessed through an OPNQRYF ODP must be processed by key so in the case of an RPG program you will want to specify a 'K' in Record Address Type (column 31 of the F specification for the file). ...
- Created on 30 April 1990
- 3534. TechTalk: Copy AS/400 Screens to a File
- (System Administration)
- ... created file can now be converted to a source file and any necessary editing can be done. To convert the file to a source file use the following: CPYF FROMFILE(QGPL/CPYS) + TOFILE(QGPL/QRPGSRC) + TOMBR(MBRNAME) ...
- Created on 30 April 1990
- 3535. Creating OS/400-Style Rolling Menus
- (General)
- ... a program." So I did. The system I call MENUS is the result. It consists of the six objects, physical file MENUSPF (1), display file MENUSDF (2), RPG/400 program MENUSR1 (3), CL programs MENUCL and MENUECL ...
- Created on 30 April 1990
- 3536. 5250 Data Stream Programming
- (General)
- Building on last month's basics. by Craig Pelkie Last month, we covered some basics of data stream programming and became familiar with using RPG bit manipulation opcodes. Now it's time to expand our ...
- Created on 30 April 1990
- 3537. TechTalk: Security and the Unattended Workstation
- (Security - Other)
- ... limit specified by the display file's WAITRCD parameter. In this example, if nothing is entered within 45 seconds, the SIGNOFF command is executed. You, of course, can code options other than SIGNOFF. RPG/400 ...
- Created on 30 April 1990
- 3538. 5250 Data Stream Programming
- (General)
- ... Midrange Computing) article, "Pop-up menus on the AS/400", and the January 1989 DataNetwork article, "Windowing in RPG." In many cases, those techniques provide you with the effect that you want, and are ...
- Created on 31 March 1990
- 3539. RISC System/6000: The UNIX Alternative
- (UNIX / AIX)
- ... raft of Computer Aided Software Engineering (CASE) products. (We're told that an independent developer, Software Ireland, is working on an RPG compiler as well.) To encourage software vendors to create ...
- Created on 28 February 1990
- 3540. TechTalk: Easy Date Conversion
- (CL)
- ... + FROMFMT(*MDY) + TOFMT(*YMD) + TOSEP(*NONE) Valid FROMFMT and TOFMT parameters are *JOB, *SYSVAL, *MDY, *DMY, *YMD, |TAG SYS|and *JUL. . You can use CVTDAT in your RPG programs by passing the date ...
- Created on 28 February 1990
- 3541. TechTalk: Prompting in CL
- (CL)
- ... A user-defined command is prompted using a ?. The operator enters the necessary values for the selected parameters. The parameters are then passed to an RPG program. A question mark followed by a hyphen ...
- Created on 28 February 1990
- 3542. TechTalk: A New Compile Command
- (CL)
- ... file, and then the program. Since this is a two-step process, you can't just leave the computer to itself to run these two compiles. CRTDSPFRPG (1a and 1b) will execute these two steps for you, and if ...
- Created on 28 February 1990
- 3543. Working With Arrays and Tables, Part II
- (General)
- ... isn't SAA compliant, you'll get the idea. Array Specific Operation Codes RPGII has four array-specific operation codes. Last month, we covered XFOOT, the operation code to sum the value of all elements ...
- Created on 28 February 1990
- 3544. User Defined Edit Codes
- (RPG)
- ... using a user defined edit code takes place at program compile or file create time. That is, for an RPG program, the user defined definition is retrieved at compile time and becomes part of the compiled ...
- Created on 31 January 1990
- 3545. TechTalk: Keeping Your Message Files Under Contro
- (System Administration)
- ... message becomes the top message. For each message, a call is made to an RPG program (MSG01) with the message text, message queue library, and message queue as parameters. The RPG program writes each message ...
- Created on 31 January 1990
- 3546. Working With Arrays and Tables, Part I
- (General)
- ... use of leverage. That's the way tables and arrays are in RPG. You could probably use brute force or cleverness to code around a problem which has an obvious table/array solution. But, the table/array solution ...
- Created on 31 January 1990
- 3547. Unlocking the KLIST
- (RPG)
- ... AS/400 programmers, it seems that the area of composite keys, key lists, and the rules for using key lists with RPG operations is confusing. The rules are really very simple, and the flexibility gained ...
- Created on 31 December 1989
- 3548. AS/400 Source Librarian
- (Change Management)
- ... User SSLIB QRPGSRC MST 891128 RICHARD SSLIB QRPGSRC SS010 RPG OUT 891205 RICHARD SSLIB QRPGSRC SS010 RPG RPL 891205 RICHARD SSLIB QRPGSRC SS010 RPG OUT 891206 RICHARD SSLIB QRPGSRC SS010 RPG RPL 891206 ...
- Created on 31 December 1989
- 3549. TechTalk: More Detail on Compile Errors
- (General)
- Normally when you compile an RPG program (CRTRPGPGM) on the AS/400, only the first level message text (messages on the AS/400 can have first and second level text) is printed at the end of the compile ...
- Created on 31 December 1989