- 3351. The Edit APIs
- (RPG)
- ... as input parameters to this API in the same format as used in RPG/400 or DDS. If you are going to edit several similar fields in your programs, you can save the values of the edit mask, edit mask length ...
- Created on 31 March 1993
- 3352. TechTalk: External Printer Files vs. O-specs
- (RPG)
- ... it meant I had to modify and recompile the RPG program in addition to the printer file. Had I been able to overlay the decimal positions with blanks, I would only have had to modify and recompile the printer ...
- Created on 31 March 1993
- 3353. TechTalk: How to Display Info Messages on Line 24
- (System Administration)
- How to Display Info Messages on Line 24 Q: I'm trying to duplicate IBM's method of displaying informational messages on line 24 of our AS/400 displays while processing an AS/400 command/program. I don't ...
- Created on 31 March 1993
- 3354. AS/400 Career Strategies
- (Analysis of News Events)
- ... large shops the primary source of better jobs for the AS/400 community. However, it takes a lot more than RPG and CL expertise to get your resume noticed in the corporate world. Large companies have ...
- Created on 31 March 1993
- 3355. TechTalk: Translating a File to Uppercase
- (General)
- ... look in the IBM documentation to have tables (object *TBL) explained? I don't want to write an RPG or COBOL program to do this if it can be avoided. Any thoughts? From: Ernie Malaga To: Mark Wheeler I' ...
- Created on 31 March 1993
- 3356. TechTalk: Using Embedded SQL on Very Large Files
- (SQL)
- Using Embedded SQL on Very Large Files From: Bruce Duty To: All We are trying to use embedded SQL in an RPG program to update a multimillion record file. When I execute an SQL update statement in an ...
- Created on 31 March 1993
- 3357. Let Users Display Their Submitted Jobs
- (IT Infrastructure - Other)
- ... surprised. All it takes is running the WRKSBMJOB command to *PRINT, capturing this printout into a database file and giving this file to an RPG program to display with an output-only subfile. I'm using ...
- Created on 31 March 1993
- 3358. TechTalk: Whoops, SFLCSRRRN Bug!
- (RPG)
- Whoops, SFLCSRRRN Bug! From: Steve Cherkas To: All The new (V2R2M0) DDS keyword SFLCSRRRN is great for determining the subfile RRN where the cursor is located, but there may be a bug-one of our programs ...
- Created on 28 February 1993
- 3359. Debugging CL Programs
- (CL)
- ... simple, compared with dumps from other programs (for example, the RPG formatted dump). It consists of only two sections. The first lists the messages sent to the program's message queue. If the CL program ...
- Created on 28 February 1993
- 3360. In My Opinion: AS/400 Restrictions
- (Commentary)
- ... understand a limit such as 256, 512 or 1024, but fifty-five? Another example just came to my attention recently. Among the enhancements for RPG in V2R2M0 is one which deals with the date edit code (Y). ...
- Created on 28 February 1993
- 3361. TechTalk: Data Area Abraca-data
- (General)
- ... alerts you. The program doesn't have a chance to run and give you incorrect information. RPG/400 is compiled, and yet it has a feature that spells trouble if your fingers don't do the walking on the right ...
- Created on 28 February 1993
- 3362. TechTalk: Job Message Queue
- (RPG)
- Job Message Queue From: Vern Reeve To: All Programmers I've noticed that when I do a CHAIN to a subfile with a relative record number which doesn't exist in the subfile, it adds a message to my job ...
- Created on 31 January 1993
- 3363. TechTalk: Attn Doesn't Pay Attentio
- (RPG)
- Attn Doesn't Pay Attention My Attention key doesn't always work! I use my Attn key often. I usually have it set to call QUSCMDLN that way, when I press the Attn key, I get a pop-up window with a command ...
- Created on 31 January 1993
- 3364. TechTalk: Reading Multiple Subfile Records
- (RPG)
- ... One little-known fact about RPG is that it can process several READ op codes simultaneously. You can take advantage of this feature in your situation. Suppose you name your subfile control record SFLCTL. ...
- Created on 31 January 1993
- 3365. TechTalk: Required Field Exit
- (RPG)
- Required Field Exit From: James Harr To: All Does anyone know the replacement for the S/36 required field exit? I've tried 'CHECK(FE)' but it still allows the user to tab out of the field. Any help ...
- Created on 31 January 1993
- 3366. TechTalk: Read Physical File in CL
- (CL)
- ... sequentially in CL without using an RPG program. In addition, after I read it, how do I determine if a record contains "AB" in columns 75-76? A. First, you need to declare the file to the CL program, ...
- Created on 31 January 1993
- 3367. In My Opinion: Take advantage of the VASP
- (Commentary)
- ... for RPG and COBOL in the VASP, probably because some marketing executive decided that this omission might give us another reason to migrate to an AS/400. These failures pale, however, in comparison ...
- Created on 31 January 1993
- 3368. TechTalk: Bogus Retry Option
- (General)
- Bogus Retry Option I found a problem with RPG programs running under Version 2 of OS/400 which were compiled under Version 1. The problem occurs when one of these programs encounters a record lock ...
- Created on 31 January 1993
- 3369. TechTalk: Level Breaks on Partial Fields
- (RPG)
- From: Luis Munoz To: All I'm new to RPG and I am having a problem with level breaks. I need to create a report that breaks on a 12-byte character field but I only want to break on the first two positions ...
- Created on 31 December 1992
- 3370. TechTalk: CRT Files in S/36E
- (RPG)
- Back in the good old days when we were using a S/36, we had occasion to use some CRT files in our RPG II programs. Not often, but sometimes. At times, we would allow the program to put out a few lines ...
- Created on 31 December 1992
- 3371. List Orphaned Objects
- (System Administration)
- ... R A ODSRCM R List Orphaned Objects Figure 4 RPG program ORP001RG FORP001WFO E DISK A * C *ENTRY PLIST C PARM ODLBNM C PARM ODOBNM C PARM ODOBTP C PARM ODOBAT C PARM ODOBTX C PARM ODSRCF C PARM ODSRCL ...
- Created on 31 December 1992
- 3372. TechTalk: I Am 38, Going on 400
- (System Administration)
- ... years in RPG, and getting a little bored with this ancient piece of *$%. Answer: I found that the learning curve was minimal. The thing that takes getting used to is using WRK instead of DSP (in most ...
- Created on 31 December 1992
- 3373. TechTalk: Stay Put in Subfiles
- (RPG)
- ... DDS of the display file) and the INFDS (in your RPG program) to overcome this problem. In the display file, code the SFLRCDNBR keyword in a hidden field that has four digits and no decimal places. In the ...
- Created on 30 November 1992
- 3374. TechTalk: Insight into File I/O
- (CL)
- ... Refer to Figure 1 as I explain the difference between the two parameters. When data is read from a file, either two or three movements occur, depending upon the language used. RPG requires three movements; ...
- Created on 30 November 1992
- 3375. TechTalk: Not All MOVEs Are Valid
- (General)
- Q. I just can't figure this one out. I need to place a numeric field into a numeric array in an RPG/400 program, so that each digit of the original field goes into separate elements of the numeric array. ...
- Created on 30 November 1992
- 3376. TechTalk: File Design
- (General)
- ... the payroll G/L entries now reference more than one G/L master file. I don't know if there is a way to eliminate multiple RPG file specifications for the different G/L master files. I thought of two approaches. ...
- Created on 30 November 1992
- 3377. TechTalk: Recycling OPNQRYF
- (General)
- ... between the two calls. OPNQRYF ... CALL PGMA POSDBF OPNID(XYZ) POSITION(*START) CALL PGMB The other way is to have the second program reposition the file pointer, using a command such as RPG's SETLL or ...
- Created on 30 November 1992
- 3378. TechTalk: Controlling Display Attributes
- (RPG)
- Q. I would like to change the attributes of various fields on my screen through the RPG program. Is there a way to do this? All this time I was defining my fields in the display file with different indicators ...
- Created on 31 October 1992
- 3379. Binary Support in CL
- (CL)
- ... it's possible for an RPG/400 program to end up returning such a string to a CL program. The CL program can now determine the length of the string with the %BIN function so it can extract the valid portion ...
- Created on 31 October 1992
- 3380. TechTalk: Message Files in S/36E
- (System Administration)
- From: Willie Moore To: All I am starting to convert S/36E RPG/FMT programs to native. The S/36E procedures use a MSGF36 to display information to the user as shown in 2. I am starting to convert S/36E ...
- Created on 31 October 1992
- 3381. Multi-format and Join Logicals
- (General)
- ... a single other record, such as the salesperson for the customer or the customer type description. The access in the RPG code is by means of the CHAIN operation. In this case, there is a "one-to-one" correspondence ...
- Created on 31 October 1992
- 3382. TechTalk: The Covert Editor
- (General)
- ... file using SDA. The syntax checker showed no errors coming into SDA, so after making my enhancements I exited and created both the display file and the modified RPG program that uses the display. While ...
- Created on 31 October 1992
- 3383. AS/400 Subfile Programming Part IV: Fine-Tuning
- (RPG)
- ... these fields was found in the RPG Reference manual and the Data Management Guide. (There are a number of other tasty bits of information in the file information data structure.) Nothing in the HLL code ...
- Created on 30 September 1992
- 3384. TechTalk: Are You Cleaning More Than Your Windows
- (RPG)
- If, like me, you must design screens in the S/36E, you may run into trouble when windowing. Yesterday I was working on a program that sent and received a screen and called another program which, in turn, ...
- Created on 30 September 1992
- 3385. TechTalk: Subfiles Without Records
- (RPG)
- ... except when there are no deductions (i.e., zero records in the subfile). The messages are RPG1255 ("Session or device error occurred") and CPF5012 ("Cannot process sub-file request for file"). The RPG line ...
- Created on 30 September 1992
- 3386. In the Trenches: Something for the Road
- (Change Management)
- ... goes well until Sunday morning when you have to write a quick RPG conversion program. You sit down at the AS/400 only to discover that neither the RPG compiler nor the Program Development Manager is available ...
- Created on 30 September 1992
- 3387. Job Accounting-OS/400's Built-in Watchdo
- (System Administration)
- ... as possible. Preparing Reports Job accounting would be useless if you couldn't print reports based on the data gathered in the journal receiver. The trouble is that HLL programs like RPG/400 cannot rea ...
- Created on 30 September 1992
- 3388. TechTalk: Printer File Names
- (System Administration)
- Q. I am trying to write an RPG program which will create print files with varying spool file names. The input file I am reading will contain the name of the print file to be created. I have tried using ...
- Created on 30 September 1992
- 3389. In My Opinion: CASE Technology is not a Panacea
- (Commentary)
- ... RPG/400. Even if the CASE vendor is working closely with IBM, language en-hancements may not be available at the same time. Code which is generated by a CASE tool is only a subset of the language; it does ...
- Created on 30 September 1992
- 3390. TechTalk: DATE Keyword Quirk
- (General)
- ... 1: Replacement for DATE Keyword ... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 A DATE6N 6 0 10EDTCDE(Y) TechTalk: DATE Keyword Quirk Figure 2 Retrieving date in RPG/400 Figure ...
- Created on 30 September 1992
- 3391. SDA's Design Image Work Scree
- (RPG)
- ... like RPG specifications, are column-dependent. Coding DDS is fairly simple for physical and logical files, but becomes more complicated with printer and display files. Fortunately, keywords are available ...
- Created on 31 August 1992
- 3392. AS/400 Subfile Programming Part III: Advanced
- (RPG)
- ... be redisplayed. I often use the same field name both in the SFL-RCDNBR keyword and in the RPG program's F-spec, as shown in Figures 2 and 3. However, this is not mandatory. The RPG field must be numeric ...
- Created on 31 August 1992
- 3393. List Source Maintenance Activity
- (Change Management)
- ... Activity Figure 6 RPG program EDT001RG FQAFDMBRLIP E K DISK FEDT001P1O E 98 PRINTER * C *IN98 IFEQ *ON C WRITEHDR1 C WRITEHDR4 C MOVE *OFF *IN98 C ENDIF * C MOVE MLCDAT CRTDAT C MULT 100.0001 CRTDAT ...
- Created on 31 August 1992
- 3394. HOT TIPS: Operations (10 Tips)
- (System Administration)
- Operations Find Save Info on an Object The Display Object Description (DSPOBJD) command can provide you with a quick and simple method of determining the last time an object(s) was saved and on what ...
- Created on 31 August 1992
- 3395. HOT TIPS: Performance (7 Tips)
- (System Administration)
- ... - Leigh Guerra Faster Processing by Sequential Read When processing a file in an RPG program, it is more efficient to process it sequentially. So if you don't need to process by keys (say you want to ...
- Created on 31 August 1992
- 3396. HOT TIPS: Work Management (10 Tips)
- (System Administration)
- Work Management Eliminate Unwanted Printer Writer Job Logs If you would like to reduce the amount of job logs generated on your system and see no need for logging printer writers, use the following command ...
- Created on 31 August 1992
- 3397. HOT TIPS: Debugging (5 Tips)
- (General)
- ... test files when I'm done since the files in QTEMP will be removed when I sign off. - Ryoichi Morita Use SEU to Check Compiler Errors Use the following technique to find errors in an RPG compile listing. ...
- Created on 31 August 1992
- 3398. HOT TIPS: Programming (16 Tips)
- (General)
- ... - Tim Johnston Dynamic Source Member Manipulation Source physical files may be processed in RPG like a normal database file. This allows a simple method of creating your own tools to provide documentation ...
- Created on 31 August 1992
- 3399. HOT TIPS: Utilities (11 Tips)
- (General)
- ... temporarily changed during an SEU/400 session via F13. This allows CL command prompting from within RPG for QCMDEXC strings, or from within OCL36, for instance. - Douglas Handy SEU Find/Change Improvement ...
- Created on 31 August 1992
- 3400. AS/400 Subfile Programming Part II: Basic Coding
- (RPG)
- ... and structure that you must understand to use subfiles effectively. This article focuses on the typical logic flow of a subfile program, along with the coding of both the display file and the RPG/400 program ...
- Created on 31 July 1992