- 651. Pointers in ILE RPG
- (APIs)
- Brief: In RPG/400, retrieving data from a user space requires multiple external API calls, which impacts performance. Now, with ILE RPG pointers, programs can access this kind of data in a much more ...
- Created on 31 May 1995
- 652. RPG Control Break Fundamentals
- (RPG)
- The feature I like most about RPG is its handling of certain business-oriented tasks with a minimal amount of coding. One common business task is presenting information in groups-for example, grouping ...
- Created on 31 March 1995
- 653. IBM's VRPG Hits the Stree
- (General)
- ... program components between the client and the server. Even the language syntax is new-that's one of the reasons I like IBM's new VRPG product. VRPG, officially VRPG Client/2, is a visual client/server development ...
- Created on 31 March 1995
- 654. External File Techniques in RPG/400
- (RPG)
- One popular misconception I run into from time to time is that input and output specifications (I- and O-specs) cannot be used with externally described files in RPG programs. I- and O-specs can be used ...
- Created on 31 January 1995
- 655. Use PC Laser Printer Fonts in your RPG Output
- (Document Management)
- ... PCL5-capable PC printers, from an AS/400 RPG program. If you wanted to print the title of a report in a large typestyle and the body in a standard, 10 characters per inch font, would your printer be able ...
- Created on 31 January 1995
- 656. 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
- 657. 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
- 658. 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
- 659. 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
- 660. 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
- 661. 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
- 662. 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
- 663. 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
- 664. 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
- 665. 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
- 666. 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
- 667. 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
- 668. 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
- 669. 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
- 670. 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
- 671. 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
- 672. 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
- 673. 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
- 674. 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
- 675. 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
- 676. 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
- 677. 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
- 678. 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
- 679. 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
- 680. 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
- 681. 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
- 682. 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
- 683. 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
- 684. 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
- 685. 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
- 686. 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
- 687. 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
- 688. 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
- 689. 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
- 690. 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
- 691. 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
- 692. 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
- 693. 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
- 694. 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
- 695. 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
- 696. 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
- 697. 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
- 698. 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
- 699. Combining AI and IBM i
- (Analytics & Cognitive)
- ... ones. How Does This Affect My RPG? It’s time to get to the brass tacks. There are really only two ways to use an LLM to help you code: ask questions of an existing LLM or build your own. Can the current ...
- Created on 17 December 2024
- 700. H and F Position-less Specs
- (RPG)
- ... RPG: /Free, ILE, and MVC, by David Shirey. That’s right, P-specs. Since these are intimately connected with ILE, it is kind of surprising that they would not have been covered by /Free earlier, and those ...
- Created on 07 October 2024