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
1 answer
iSeries JAVA program with RPGLE Interface crashes when processing images
I have made a java program that creates PDF files based to GnuPdf. It runs perfectly when run using native java code (on windows or iSeries QSH), however, when run through an RPGLE interface, the program crashes (at what seems like random…

jax
- 37,735
- 57
- 182
- 278
0
votes
1 answer
How do I print a value in an array in DDS
I know this question isn't directly RPG language oriented, but I have no idea where I would turn otherwise.
I've created a PRTF in RDi for my project in class. I've set up several arrays in the RPGLE file to hold some numbers and several more like…
0
votes
1 answer
Is there a way to compile with crtsqlrpgle without using QTEMP/QSQLPRE?
The process to create an object from a SQLRPGLE source member is a multi-step process:
The syntax of the SQL within the source member is checked to ensure it is valid.
A copy of the source member being compiled is moved to a source file QSQLPRE in…

iiSiggi
- 175
- 8
0
votes
1 answer
Dollar Sign in RPG/AS400 variable name
I am looking at some code, some AS400 code; I see a variable declaration with a $ symbol in it. Does this have a special meaning?
D Q$test S 8 0
Ostensibly this is a numeric variable 'test'; is Q$ a part of the actual name…

Gedalya
- 899
- 4
- 16
- 28
0
votes
3 answers
AS400- MOVEA not compiling for moving decimal data structure to decimal array
D posDS ds
D pos1 2 0
D pos2 2 0
D posArr 2 0 dim(2)
C MoveA posDS posARR
In the above code I am getting RNF7262 - Factor 2 and Result field are not same type and length.…

kalyan
- 55
- 5
0
votes
4 answers
How to retrieve MAX and MIN value of an integer array in RPGLE
In RPGLE (AS400) how to get the max and min value of an integer array.

Kunal Roy
- 729
- 3
- 11
0
votes
1 answer
RPG program error: Error MCH3601 was detected in file
We have been facing a very strange issue with one of our RPGLE programs that bombs intermittently with the subjected error.
This happens specifically at a line where a write operation is performed to a subfile record format. I have debugged and…

EuroPass
- 41
- 7
0
votes
2 answers
RPG400 - RPG Source Code compilation error - Data descriptions for file not found
My source code is referring to some Screen Names & DB tables. Sample declarations given below:
FSCRNNAME CF E WORKSTN
FDBNM1 IF E K DISK
I'm using the MicroFocus Rumba editor for compiling and using the…

user13413844
- 1
- 1
0
votes
2 answers
In RPG, use a date, in *job format from a file
I'm trying to convert, in a RPG program, a date from a file (it's from the DSPJRN command, so the field si 6 numeric, in JOB format).
I want to use it as a date in my program, but I can't achieve it correctly.
I have tried to describe a field with…

FredericP
- 1,119
- 1
- 14
- 27
0
votes
1 answer
Why my pygame code is crashing with "RecursionError: maximum recursion depth exceeded while calling a Python object"?
I want to put a system of collide on my pygame's rpg and my code is crashing with "RecursionError: maximum recursion depth exceeded while calling a Python object". I tried many things but the error always appears.
My code:
import pygame
from…

Nat' code
- 55
- 6
0
votes
2 answers
Using bindingsource stored in the ifs
Is there any possible way to create a serviceprogramm (crtsqlrpgi OBJTYPE(*SRVPGM)) using a .bnd file stored in the ifs as bindingsource?

iiSiggi
- 175
- 8
0
votes
1 answer
Cannot find external descriptions for DSPF in RPG IV
I have a server running IBM i 7.2 (no PTFs), which I am using to learn the system. I attempted to create a application with a single RPGLE source (CALCR) and a DSPF (CALCD) with a single record. However, when compiling the RPG code (via PDM) I get a…

J. Nicholas
- 105
- 7
0
votes
1 answer
Correct commit options when calling SQLRPG during a commit cycle
We have some jobs running on our system which updates a file FILE1 in a commitment control cycle using STRCMTCTL and ENDCMTCTL. I'm calling a new SQLRPGLE program PGM1 during the job that updates FILE1 using UPDATE SQL statement. The program is…

Ash22
- 1
- 1
0
votes
1 answer
Some way to ensure data integrity without compiling RPG with file-level check?
Some members on our team write/maintain RPG programs - they share a db2 database, consisting of tables both journaled and not journaled.
If we compile with level-check, then even if we're just adding a new column to a table, then any RPG programs…

Sarov
- 545
- 6
- 17
0
votes
0 answers
conversion of IBM RPG file to C#
As per requirement we need to convert the IBM RPG code file to C# code. We have researched for a third party tool to convert the RPG code, but we couldn’t find such free tool. Another option in-front of us is, create our own logic to convert each…

Ranish
- 877
- 2
- 10
- 30