RPG IV Questions


Tools for example unit test source RPG
I need tool for test code. any proposals ???

Answer Question   |  December 3, 2008  7:59 PM
RPG, RPG IV, RPG Testing, RPG Testing Tools
asked by:
5 pts.

RPG Array
Hello ! Can I check for all the elements of an Array in single statement ? e.g. If Array(*All) = *Blanks ? I want to check that all elements of an array is blank or not.

Answer Question   |  November 24, 2008  9:47 AM
Report Program Generator, RPG, RPG arrays, RPG IV
asked by:
5 pts.

Combining fields in RPG
How can I combine three fields into one in rpg?

Answer Question   |  October 14, 2008  8:06 PM
RPG, RPG IV
asked by:
65 pts.

barcoding
how do I print a barcode in the output specs of an RPG IV source program?

Answer Question   |  January 7, 2009  8:23 PM
AS/400 printing, RPG IV
asked by:
5 pts.

Parms to Cobol from RPGIV
Is it possible to pass parms to a called COBOL pgm from a RPGIV pgm?

Answer Question   |  September 26, 2008  3:51 PM
COBOL, RPG IV
asked by:
10 pts.

Password Expiry
Hi,if i want to change my password after 15 days ..then plz gv me a coding for that in rpgiv….

Answer Question   |  July 31, 2010  4:54 AM
AS/400 user permissions, RPG IV, RPG/400
asked by:
35 pts.

RPG //EJECT
Used to use //EJECT to force page breaks while printing out source (usually at end of each subroutine. Doesn’t seem to work anymore. Any suggestions?

Answer Question   |  September 18, 2008  8:49 PM
//EJECT, Page breaks, RPG, RPG IV
asked by:
VGG
5 pts.

Using *HIVAL
Can I use *HIVAL in Free? (e.g. SetGT (*Hival) Rcd01;) Will this statement position the file cursor after the last record? Thanks. RE

Answer Question   |  August 7, 2008  9:21 PM
Free Format, RPG IV
asked by:
30 pts.

*entry plist
How to use rpgiv d-list instead of *entry plist?

Answer Question   |  July 31, 2008  5:39 PM
RPG IV
asked by:
5 pts.

Using system() function in RPG IV
Could someone please tell why this doesn’t work? Path = ‘SOMENAME. I get a CPF006 (‘Errors occurred in command.’) The message in the joblog is ‘String ‘XMLDATAA’ contains a character that is not valid.’ D path S 63A Varying D cpfmsg S 7A Import(‘_EXCP_MSGID’) D command S 1024A Varying D system PR 10I 0 extProc(‘system’) [...]

Answer Question   |  May 3, 2010  6:08 PM
AS/400, AS/400 errors, RPG IV
asked by:
25 pts.

XML-INTO
I’m trying to use XML-INTO with %XML to convert an XML document into a DB2 database file. The XML file has four levels of data with elements from each level that need to be used for the database record. Naturally, the relationships between the level are important, too. The levels are Header (control # + [...]

Answer Question   |  June 27, 2008  4:02 PM
DB2, RPG IV, XML
asked by:
25 pts.

RPQSQL / SQLRPG
Any body please help Wanted to know the advantage and disadvantage using RPGSQL / SQLRPG I’ve heard that this is the new one its not only RPG but become one with SQL. Thanks in advance

Answer Question   |  April 29, 2010  12:31 AM
RPG, RPG ILE, RPG IV, RPG/400, RPGILE, RPGLE, RPGSQL, SQLRPG
asked by:
TG
50 pts.

Automated file transfer from AS400 to Word?
A search400.com reader wrote in with this question: I need to take a spool file (say a Collection Letter) generated from RPGIV. I can copy this spool file to a physical file if needed. I want to automatically import or send this file to Microsoft Word for editing purposes. I have used the ‘ADD-INs’ for [...]

Answer Question   |  June 12, 2008  5:39 PM
AS/400, Microsoft Excel, Microsoft Word, RPG IV, Spool files, Word
485 pts.

RPG %SCAN Question
I am unable to get all the scanned records for a string in a file. For example, my file itemmast has 1000 records in it. When I use Query 400 and search for ‘cable’ I get 50 records with the word cable in various positions of a 30 character field. When I use the statement [...]

Answer Question   |  June 5, 2008  4:18 PM
AS/400 Query, RPG, RPG IV
asked by:
250 pts.

Printing Logos
We are eliminating some preprinted forms and creating the forms ourselves. The problem is these preprinted forms have our company logo on it. How can I add a logo to a report created on the AS400 in RPGLE?

Answer Question   |  June 4, 2008  5:09 PM
RPG, RPG III, RPG IV, RPG/400
asked by:
165 pts.

Writing Information to the JobLog
I’ve seen a number of snippets here and there on the internet regarding the ability to write specific information to the job log in order to figure out exact problems, based on the conditions placed within. I’ve seen reference being made to some API, but have been unable to actually find useful information for its [...]

Answer Question   |  April 21, 2010  2:11 PM
Joblogs, RPG IV, RPGLE
asked by:
685 pts.

How to FTP a file from PC to my personal library?
How to FTP a file from PC to my personal library?

Answer Question   |  April 1, 2008  11:14 AM
AS/400, AS/400 FTP, RPG ILE, RPG IV, RPGLE
asked by:
10 pts.

How to read records in all of the members of a single pf?
I have a file name file1. it has 30 members. i have a input value from a display file and i need to check it in all the members. If it match i write the record in file2. How to read records in all members of a single pf?

Answer Question   |  March 27, 2008  7:13 AM
AS/400, RPG IV, RPGILE, RPGLE
asked by:
10 pts.

Advanced Trigger question for *insert *before to allow update of field value
I need to update a field in a record being written prior to it being written. I want to do it with a trigger because many programs write and update this file. I have tried several things and the closest I have gotten is to do a *before *insert where I can see the values [...]

Answer Question   |  August 4, 2010  7:02 PM
RPG, RPG ILE, RPG IV, RPGILE, RPGLE
asked by:
5 pts.

open(open file for processing)
OPEN commmand is used for what purpose in rpgiv.pls also give me the short program of this command.

Answer Question   |  February 21, 2010  7:22 PM
RPG ILE, RPG IV
asked by:
5 pts.