RPG Questions


AS/400: RPG IV
Hi, I stuck in following scenario. I have 2 files FILEA in lib LIBA and FILEB in LIBB and have to use both the files in RPG program.   Please assist me on this.    

Answer Question   |  May 16, 2011  9:47 AM
RPG, RPG IV
asked by:
160 pts.

RPG
How do we declare a Physical file for both  input and output(Read/Write/Update) operations in RPG400?

Answer Question   |  December 24, 2009  7:26 AM
Physical Files, RPG, RPG/400
asked by:
105 pts.

Using the command RCVMSG
There are numerous reports which automatically print throughout the day. Often there may be a message waiting on the printer and because no one was expecting any reports, no one discovers the problem until hours later. (By this time there may be quite a few reports waiting to print) I was trying to use the command rcvmsg (msgq qsysopr). [...]

Answer Question   |  May 25, 2010  2:23 PM
CL, CLP, CLPROGRAM, RCVMSG, RPG, RPG ILE, RPGLE, V5R4
asked by:
165 pts.

RPG Program in MSGW status blocks Java Application
Hello. I’m looking for the best way to identifying when a RPG program called from java is waiting for a message response (MSGW status). When this situation ocurrs, my java application waits for the RPG execution returns, indefinitely.

Answer Question   |  December 17, 2009  9:22 PM
AS/400, Java, ProgramCall, RPG
asked by:
2,790 pts.

/COPY function and how work?
Hi everybody, I know what /copy made in RPGIV, but I need a certification for this. In a Prototype I put /copy after I compile I don’t need the source of /copy until the object need modifications, that’s right? And after this if I copy this object to other machine, is possible I have errors [...]

Answer Question   |  December 15, 2009  4:31 PM
AS/400, Free Format, ILE RPG, RPG, RPG ILE
asked by:
225 pts.

How to see the source for the AS/400 objects?
I am having a server at my office which has a project application running on it.I need to access the Cl/RPG/CMD/PNLGRP and file objects on it to modify them and restore.I tried for the DSPOBJD and *SERVICE to find the source library and file but couldn’t retrieve from that combination. I think the library may [...]

Answer Question   |  December 15, 2009  11:59 AM
AS/400 development, AS/400 objects, RPG
asked by:
1,150 pts.

Where is the source file of an ILE program?
Hi,  I need to find out the name of the source file of a ILE program. I am getting a blank using DSPOBJD. I know it can be rtrieved using dsppgm but I need to run the process in a program and strore the output in a file.  Pls help… !! This is kinda urgent…  [...]

Answer Question   |  December 11, 2009  8:00 AM
RPG, RPG ILE, RPG IV, RPGLE
asked by:
125 pts.

How to determine if ANY fields have changed in a file, when user maintains a record of info
I have maintenance programs that need audit records created when someone changes any field, within a record, within my existing RPG maintenance program.

Answer Question   |  December 4, 2009  9:06 PM
AS/400, RPG, V5R4
asked by:
30 pts.

ovrdbf in rpg
hi guys.. i am getting a file name as a variable from CL program. based on some condition i want to write in differnt members of the file.since the file name is stored in a variable i cant able to declare it in f spec. so i created a duplicate object for that file and [...]

Answer Question   |  November 30, 2009  6:04 AM
DDS, OVRDBF, RPG
asked by:
10 pts.

Move all fields in a record format at once.
How can I move all the fields of a single record format at once? I need to move fields totalling 712 positions to a single flat-file record that is also 712 positions long. I really don’t want to move one-field-at-a-time into a data structure if I can help it.

Answer Question   |  November 19, 2009  1:25 AM
RPG, Subfile Record Format
asked by:
15 pts.

AS/400 Primary Language
Hi! I developed an application in CL and RPG and I want it to be multilingual. Is it possible to programmatically read the system primary language so I can use the same language for my application?[o:p][/o:p]

Answer Question   |  November 20, 2009  3:05 PM
AS/400 Primary Language CL RPG, CL, RPG
asked by:
15 pts.

Can anyone please tell me what is the basic difference between arrays and tables in RPG.
Hi All, Can anyone please tell me what is the basic differance between arrays and tables in RPG and for which type of requirement we have to use arrays and tables. since there might be bit difference between both of them. Please explain me.

Answer Question   |  November 18, 2009  5:56 AM
RPG, RPG arrays, RPG Tables, RPG/400
asked by:
695 pts.

data search using popup window
Is there a sample RPG/CL/SQL code on how to create a popup window to search data from a PF?

Answer Question   |  November 17, 2009  12:44 AM
CL, iSeries, Physical Files, RPG, SQL
asked by:
5 pts.

Input or Update Primary files and (shudder) the RPG cycle …
First, I’d like to say that obviously there are some very knowledgeable midrange people here … lots of good tips to pick up …  I’ve been programming RPG since the early 80′s … and I notice that   very few people ever use or even refer to the RPG cycle any more …  nor do [...]

Answer Question   |  November 17, 2009  9:47 PM
Primary file processing, RPG, RPG cycle
asked by:
405 pts.

Padding with zeros in Synon/2e
How can we implement Padding with zeros (concept in rpg) in Synon/2e?

Answer Question   |  May 19, 2010  11:25 AM
RPG, Synon, Synon/2E
asked by:
205 pts.

rpg
I have five indexed files in rpg prog. Can I decleared common key field parameters for all five files? Is it possible in cobol ? If not how will solve this querry in cobol ? Explain with an ex.

Answer Question   |  November 11, 2009  6:55 AM
COBOL, RPG, RPG Program
asked by:
5 pts.

I/O operation was applied to closed file error on AS400
I’ve got a program that outputs to two reports, a summary and a detail. Both printfiles are using the keyword usropn. I open the files at the begining of the program and I close them at the end. The files close after the totals are printed, the totals are only printed when LR is turned [...]

Answer Question   |  November 3, 2009  2:07 PM
AS/400, Asti, EXCEPT, OVRPRTF, PRTF, RPG, V6R1
asked by:
100 pts.

ACCESS PARTICULAR MEMBERS IN RPG
SUPPOSE I HAVE A PF WITH 3 MEMBERS. IS IT POSSIBLE TO DO READ/WRITE OPERATION ON PARTICULAR 2 MEMBERS?

Answer Question   |  November 3, 2009  11:34 AM
RPG, RPG/400, RPGLE
asked by:
5 pts.

Clear leading zeros
I have a 10A character field which hold a numeric value. Problem is that it contains leading zeros. How can I remove them? Many thanks.  

Answer Question   |  November 3, 2009  9:08 AM
RPG, RPGIV, V5R4
asked by:
380 pts.

Convert number to roman numerals in RPG
Hi, Can any know how to convert numbers to roman numerals in RPG or RPGLE?

Answer Question   |  October 29, 2009  6:43 AM
RPG, RPGLE
asked by:
30 pts.