- 651. Retrieving an RPG Program Name
- (RPG)
- Occasionally, users bring me an old report in need of modification. After a little research, I sometimes find that the hard-coded RPG program name on the report is incorrect. Does the situation sound familiar? ...
- Created on 30 November 1994
- 652. The ANZRPGPGM Command
- (CL)
- It is often time consuming to study and analyze a huge RPG program, particularly when it's written by someone else. I've developed a simple utility that summarizes these large programs into a smaller subset ...
- Created on 30 November 1994
- 653. Error Recovery in RPG Programs
- (CL)
- One of the features I like most about CL is its ability to recover from errors using the Monitor Message (MONMSG) command. I've often thought that such a command would be a welcome addition to RPG. Think ...
- Created on 31 October 1994
- 654. An Introduction to ILE RPG: Part 5
- (RPG)
- Brief: In our final installment of this introductory ILE RPG series, we examine the support for date data types. ILE RPG can define date, time and timestamp fields corresponding with the DDS support for ...
- Created on 30 June 1994
- 655. RPG Logarithm Calculation
- (RPG)
- While RPG contains some basic mathematical functions, it is missing some important, advanced functions. For example, we needed a logarithmic function to calculate bond yield. Since RPG does not supply ...
- Created on 30 June 1994
- 656. An Introduction to ILE RPG: Part 4
- (RPG)
- ... Functions CL has supported built-in functions for some time. These CL functions serve as a reference point that can help you understand ILE RPG built-in functions. In CL, %SST performs a substring function, ...
- Created on 31 May 1994
- 657. RPG Record Locking
- (RPG)
- From: Chris Demoss To: All Is there a Catch-22 to record locking in RPG? I'm trying to correct a bug in a program that is consistently reporting a record lock error under certain circumstances when it ...
- Created on 31 May 1994
- 658. An Introduction to ILE RPG: Part 3
- (RPG)
- Brief: Our third installment on ILE RPG covers changes to I-specs, C-specs and O-specs. All three have been modified to accommodate the longer field name, field length and decimal position entries. We'll ...
- Created on 30 April 1994
- 659. Visual Development Tools for RPG
- (RPG)
- Brief: Two major AS/400 vendors (IBM and ASNA) have announced plans to release visual development tools for RPG programmers. This article looks at some of the general design principles behind these products ...
- Created on 30 April 1994
- 660. RPG O-specs vs. PRTFs
- (RPG)
- From: Ed Smith To: All Are there any opinions on when external printer files (attribute PRTF) are better suited for reports then RPG O-specs? I've used external printer files a few times and I'm still getting ...
- Created on 30 April 1994
- 661. An Introduction to ILE RPG: Part 2
- (RPG)
- This is the second article in a multipart series on the ILE RPG language planned for release later this year. In each article, we will cover specific changes to RPG coding and some of the broader design ...
- Created on 31 March 1994
- 662. RPG CHEKR Operation
- (RPG)
- ... actually inserts the leading blanks, and the last line translates all blanks to zeros. RPG CHEKR Operation Figure 3 Right Adjust and Zero Fill *. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... ...
- Created on 31 March 1994
- 663. An Introduction to ILE RPG: Part 1
- (RPG)
- Brief: Early last year, IBM officially announced the Integrated Language Environment (ILE) and plans for a new generation of AS/400 languages. Even before the ILE announcement, the RPG programming community ...
- Created on 28 February 1994
- 664. The RPG Select When Other Operations
- (RPG)
- ... underexposure. Take for example the SELEC, WHxx, OTHER and ENDSL operations in RPG/400. According to my informal survey, some programmers have never heard of the SELEC group of operations. Even those who ...
- Created on 31 December 1993
- 665. Accessing an Externally Defined Record in RPG
- (RPG)
- Q: Something that really bugs me from time to time is the fact that I can't access (in RPG) the entire record of an externally described file without having to put all the fields in the I-specs. Am I missing ...
- Created on 30 November 1993
- 666. RPG Clear Operation
- (RPG)
- RPG Clear Operation The RPG CLEAR operation is a handy way to initialize all the elements in a structure or variable. It sets numeric fields to zero, character fields to blanks and indicator fields to ...
- Created on 31 October 1993
- 667. Simulating Local Varibles in RPG Programs
- (RPG)
- Simulating Local Variables in RPG Programs One of RPG's greatest faults, in my opinion, is the lack of local variables in subroutines. You can treat a variable (or indicator) as local to a subroutine by ...
- Created on 31 October 1993
- 668. HOT TIPS: RPG/400 (12 Tips)
- (RPG)
- Use CAT Instead of MOVEL The RPG operation code MOVEL is restricted to moving eight characters in factor 2 to the Result field. Use the CAT operation code to move left up to 16 characters in one operation, ...
- Created on 30 September 1993
- 669. OPNQRYF vs. RPG
- (Business Intelligence)
- Q: Is it faster to use the Open Query File (OPNQRYF) command to read a file and select a number of records, or to read the file in an RPG program and select the records there? I get the impression that ...
- Created on 31 August 1993
- 670. The Truth About RPG Performance Coding Techniques
- (RPG)
- ... in this article, you'll be able to make the correct trade-offs between performance and readability of your RPG/400 code. You'll also be able to concentrate your efforts where they'll have the most impact. ...
- Created on 31 August 1993
- 671. TechTalk: Online Access to RPG/400 Reference Manu
- (RPG)
- If you are running OS/400 V2R1M1 or later, you probably know that much of the essential information from the RPG/400 reference manual is now available online. However, in order to access it, you must ...
- Created on 31 July 1993
- 672. TechTalk: RPG Arithmetic Limitations
- (RPG)
- RPG Arithmetic Limitations From: George Konley To: All Does anyone know if RPG code that handles exponents is available? I have a formula that requires exponents and I would think that others have run ...
- Created on 31 January 1993
- 673. TechTalk: Print Key in RPG/400 Programs
- (System Administration)
- From: D J Stump To: All While I am within an RPG/400 interactive program, how do I enable the Print (or Print Screen) key on a terminal (3477 IBM InfoWindow, for example)? Currently, I get a message telling ...
- Created on 31 December 1992
- 674. V2R2 RPG Enhancements
- (IBM i (OS/400, i5/OS))
- It's come a long way...maybe. With each new release of the operating system in which it runs, RPG has kept growing by leaps and bounds. RPG/400 was little more than the S/38's RPG III when the AS/400 was ...
- Created on 30 November 1992
- 675. HOT TIPS: RPG/400 (12 Tips)
- (RPG)
- RPG/400 More Efficient Parameter Passing This tip will provide cleaner and shorter code. When calling a program, the result field can contain the name of a parameter list to pass to the calling program. ...
- Created on 31 August 1992
- 676. String Handling in RPG/400 and CL
- (CL)
- RPG/400 and CL string handling has been enhanced-make the most of it. Brief: String operations have changed dramatically since the AS/400 was first announced. We'll give you a concise review of the current ...
- Created on 31 May 1992
- 677. Interactive RPG/400 Source Level Debugger
- (RPG)
- ... we run the Start RexxDebugger (STRREXDBG) command. You must enter the qualified name of the RPG program being debugged in the PGM parameter. The UPDPROD parameter determines whether production files can ...
- Created on 29 February 1992
- 678. TechTalk: Submitting Programs From Within RPG
- (System Administration)
- From: Toby Miller To: All I have a question for all of you RPG programmers out there: Our software calls a CL program to submit a report (written in RPG) to batch. Is there anyway to have the RPG program ...
- Created on 31 January 1992
- 679. TechTalK: Random Number Generator in RPG/400
- (RPG)
- ... RPGII code. It passes the spectral test used by statisticians in determining how good a random number generator is. I have re-coded this random number generator in RPG/400 for the benefit of our AS/400 ...
- Created on 31 December 1991
- 680. TechTalk: Get the User ID in RPG
- (CL)
- From: Willie Moore To: All I am having trouble getting the user ID into an RPG/400 program. I have the CL setup like this: DCL VAR(&USER) + TYPE(*CHAR) + LEN(10) RTVJOBA USER(&USER) The RPG program ...
- Created on 31 December 1991
- 681. Indenting RPG Source
- (RPG)
- Deck: A utility for every RPG programmer's bag of tricks. One of the most annoying aspects of RPG as a programming language is its fixed format columnar structure. Although IBM has created most of the ...
- Created on 30 November 1991
- 682. TechTalk: Handling Function Keys in RPG/400
- (RPG)
- Here is a method, in your RPG program, to check which function key was used on a screen, without using any indicators. The usual method is to code your DDS including keywords like CF03(03) and ROLLUP(15), ...
- Created on 30 November 1991
- 683. TechTalk: A CASE for RPG/400
- (RPG)
- IBM gave RPG a CASE structure of sorts when it introduced the CASxx operation many years ago. CASxx has one great disadvantage, however: it forces you to create subroutines for each branch of the CASE ...
- Created on 30 November 1991
- 684. TechTalk: More Than Eight PRINTER Files in RPG!
- (System Administration)
- Did you ever have the need for more than eight printer files in an RPG program? If so, you probably learned that you are limited to a maximum of eight. So, what to do? Here is a solution. Create a disk ...
- Created on 31 October 1991
- 685. TechTalk: Help with RPG Nesting Levels
- (RPG)
- Here is a useful technique that helps me work with nested levels of IF/DO/CAS structures in RPG programs. It adds nesting level information (like what is found on a compiled printout) to columns 1-5 of ...
- Created on 31 July 1991
- 686. TechTalk: Implementing Stacks in RPG
- (RPG)
- ... After the program executes, the data queue is deleted. The code fragment shown in 1c demonstrates an RPG program using a data queue to implement a stack. When a command is executed from the command ...
- Created on 30 April 1991
- 687. Good News for RPG/400
- (RPG)
- ... when you read about the new features available in RPG/400 in Release 3.0. They were long overdue, and they finally made it to your compiler. The Initialization Subroutine RPG/400 programs can now use ...
- Created on 28 February 1991
- 688. TechTalk: RPG 1P Indicator Alternative
- (RPG)
- ... for this method. But it seems to work fine for most reporting requirements. I can't remember the last time that I used 1P or SETON/SETOF method. Mike Sopotnick Leesburg, Florida TechTalk: RPG 1P ...
- Created on 30 November 1990
- 689. TechTalk: Make Your RPG Programs More Flexible
- (RPG)
- You can call any RPG program that receives parameters, with or without actually passing parameters to the program - by using the program status data structure and the *PARMS keyword within your I-specs. ...
- Created on 31 October 1990
- 690. TechTalk: Sending Messages from an RPG Program
- (System Administration)
- Sending messages (even those that require a response) to a message queue from an RPG/400 program is simple with the DSPLY operation. Information messages, field values, and reply messages can be sent to ...
- Created on 31 August 1990
- 691. TechTalk: Retrieving User Messages from an RPG Pr
- (System Administration)
- ... (ADDMSGD); then on an error in your RPG/400 program you simply tell SUBR23R3 which message to retrieve by calling the subroutine with the required parameters. After creating your message file using ...
- Created on 31 July 1990
- 692. TechTalk: Making Nested Statements in RPG/400 Mor
- (RPG)
- Because of the inability to indent in RPG, reading a section of code nested several layers deep can be a real pain. You can make things a little more legible by using positions 1 to 5 of the source statement ...
- Created on 30 June 1990
- 693. TechTalk: New: Named Constants in RPG
- (RPG)
- Notice the peculiar input specification in the RPG program RECCNT in the TechTalk technique "File Size Retriever". As of Release 2.0, you can now create named constants in this manner. What is a named constant? ...
- Created on 31 May 1990
- 694. Kisco Awards two Fellowships and Announces Program Expansion
- (Career)
- ... University and additional technical college coursework under his belt, Blake discovered IBM i though his help desk role at his sponsoring employer, Dixie Group. He looks forward to learning about RPG and ...
- Created on 29 July 2024
- 695. Practical Middleware: Architecting for the Future
- (IT Infrastructure - Other)
- ... by using some combination of Linux, Tomcat, IBM i (RPG and DB2), and Node.js. That’s my version of the ubiquitous LAMP stack: Linux, Apache, MySQL, and PHP (or Python or Perl). So what does my infrastructure ...
- Created on 01 July 2024
- 696. SQL 101: DDL Recap—Improving Our Basic SQL Tables, Part 1
- (SQL)
- Now that we have basic SQL tables that are still RPG-friendly, let’s start to make them more recognizable (and usable) for non-RPG developers by adding some typical SQL features, like keys, default values ...
- Created on 04 June 2024
- 697. The Importance of BIFs, Other Conversion BIFs
- (RPG)
- ... you can use. Part One here. By David Shirey Editor's Note: This article is excerpted from chapter 12 of 21st Century RPG: /Free, ILE, and MVC, by David Shirey. %EDITC (Edit with Edit Code) This ...
- Created on 03 June 2024
- 698. The Importance of BIFs, BIF Essentials
- (RPG)
- BIFs are not technically part of /Free. You can use them in RPG IV positional. But they are so much more necessary in /Free that it only makes sense for us to look at some of the most common ones and see ...
- Created on 25 April 2024
- 699. Selection Process Open for Kisco’s IBM i Career Development Fellowship
- (Career)
- ... to launch careers by helping them develop IBM i skills in house. Applicants for the fellowship must be sponsored by an active IBM i customer and will receive: free IBM i and RPG training; a one-year COMMON ...
- Created on 09 April 2024
- 700. Practical Middleware: Starting the Journey
- (IT Infrastructure - Other)
- ... application interfaces. My goal is to show you how to build an ecosystem around your business rules. Nothing beats ILE RPG combined with embedded SQL for developing those rules, but we need to make them ...
- Created on 01 April 2024