DO NOT use this tag for Role Playing Games!! RPG (Report Program Generator) is a high-level programming language (HLL) for business applications. IBM is the creator and primary vendor of RPG, but the language is available from other mainframe and microcomputer manufacturers, including Unisys. Use this tag for older non-ILE versions of RPG from IBM and for non-IBM variants of the language.
Questions tagged [rpg]
280 questions
0
votes
3 answers
SQL selection based on a particular field value
I have a table of people and a table of their addresses. A person can have multiple addresses, but there is an effective date attached to each address.
I want to link people and addresses to their greatest effective date and I am stuck with my query…

Wale A.
- 41
- 11
0
votes
2 answers
How to run interactive RPG Application from C#?
I'm trying to run interactive RPG/MAPICS programs from C#. To do this, I'm trying to launch a .ws file via PCSWS.EXE and write input to it from C#.
The emulator launches just fine, but I can't seem to be able to send input to it, either by Standard…

Sarov
- 545
- 6
- 17
0
votes
1 answer
GeneXus grid load issue on AS/400
I am using GeneXus X Evolution 3 – Version 10.3.98441 U5
I am compiling RPG for AS/400 platform.
My challenge is that I need to filter out records with a certain status value when I load a grid in a work panel. I’ve finally gotten my program to…

CoMo G-Dawg
- 401
- 1
- 3
- 18
0
votes
2 answers
Have to create something in AS400 using RPG
I was interviewed today for an entry level programming job. I only have knowledge of Python at a basic level, but the hiring manager wants me to learn a little about the development side of AS400 using RPG 400 or RPGFree. I have to send him…

J. Sparks
- 27
- 3
0
votes
2 answers
AS400 duplicate fileds name different types in logical file
I'm Facing with issue in my programs. There is 2 physical files which declares field as xxBABA. 'xx' is different for two of this PF's and the these fields have different types one char other decimal. There exist logic file which contains this two…

Silver
- 3
- 4
0
votes
1 answer
Replacing Primary file in RPGLE
Does anyone has experience in replacing the primary file from a RPG program, which has Level indicators defined (Level indicator used for calculation purpose)?
Instead of RPG cycle , i need to introduce new file (replacing primary file) which will…

MAS400
- 65
- 1
- 9
0
votes
1 answer
Read value from As400 RPG program to string
I am calling an as400 Rpg program from C#. I pass it 6 parameters with value and a 7th that is null and to be returned from the program. I do receive a value from the program in the form of a byte. The returned value is supposed to be either 1 or 0…

Leonardo Wildt
- 2,529
- 5
- 27
- 56
0
votes
1 answer
How to emulate in Java the behavior of RPG Z-ADD or other assignment that would be an overflow?
I have to mimic RPG behavior in Java. In RPG, there are 2 zoned decimal fields
FLDA is length 2 with 0 decimals
FLDB is length 5 with 1 decimals
FLDA value = 0
FLDB value = 1234.5
RPG line of code
C Z-ADDFLDB FLDA …

Christopher Smith
- 197
- 1
- 18
0
votes
1 answer
Calling AS/400 RPG Programs from Java
I want to call AS/400 RPG Programs from java, but I'm facing an error as below
com.ibm.as400.data.PcmlException: Exception received: [com.ibm.as400.access.ObjectDoesNotExistException] /QSYS.LIB/%LIBL%.LIB/GETKURSJAV.PGM: Object does not exist.
…

rafitio
- 550
- 3
- 15
- 36
0
votes
2 answers
System i command line RPG CALL with packed numeric - how to format
If an RPG programs parameter is defined as PACKED(11,0)
CALL MYPGM parm(x'12345678901f')
gives a decimal data error.
Message ID MCH1202
Cause . . . . . : The sign or the digit codes of the packed or the zoned
decimal operand is in error. …

mike
- 1,233
- 1
- 15
- 36
0
votes
3 answers
How to check the stack of the Pgm in AS/400 RPG?
I have a doubt about how to find the stack of the pgm?
EX:
We have three pgms PGM 1 , PGM 2, PGM 3.
However PGM 2 called by PGM1 and PGM 3 called by PGM 2.
how we check that PGM 3 called by PGM 2 as we know only about the PGM 3. we don't about the…

Mohd wasim
- 1
- 1
0
votes
2 answers
How to use { } Curly braces in java-script function to be generated by RPG-CGI pgm
How to write a RPG-CGI program to generate a HTML page which contains a java-script program having function xxx() { aaaaaaaaaaaa; ssssssssss; }. When written in using Hex code constant it is being changed to some other symbol in the actual html code…

Nirmal
- 115
- 1
- 1
- 6
0
votes
1 answer
Is there a workaround for QDMLOPNF 128 limit?
iSeries QDMLOPNF API only returns 128 open files. This limit is quite small for real world (meaning bad designed) applications.
Anyone has came up with a workaround?
TAATOOLS' CVTOPNF is based on QDMLOPNF as well
Thank you

RafaQuiM
- 3
- 1
0
votes
2 answers
Good resources for secure coding in RPG and CL (iSeries development)
I'm just wondering if anyone can point me for secure coding resources for RPG and CL. (RPG as in for the iSeries, not Role Playing Games).
I have no problem finding resources that cover secure coding guidelines that are generic, which are very…

David
- 72,686
- 18
- 132
- 173
0
votes
2 answers
How do I pass an array data structure as a parameter?
I'm trying to pass an array DS as a parameter but when compiling I get an "RNF5343 Array has too many omitted indexes" error.
The Array Data Structure is defined the same in both programs as
D ResponseData DS Dim(100) Qualified
D…

Deltazor
- 66
- 1
- 3