Questions tagged [rpg]

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.

280 questions
12
votes
4 answers

RPG to Java migration on an IBM iSeries

Our company uses an IBM iSeries for a majority of our data processing. All of our internal apps are written in RPG. According to IBM's roadmap, IBM is pushing companies to move to Java/J2EE. We're looking to modernize our internal apps to a more GUI…
Bill Martin
  • 4,825
  • 9
  • 52
  • 86
9
votes
2 answers

What's the difference between EVAL and MOVE in RPGLE

I recently got into the IBM's RPG world, so while writing some code and reviewing other people's code I've found that some use Eval and some others use Move to accomplish the same things. Is there any difference between them? Thanks.
Sebastian
  • 845
  • 4
  • 12
  • 25
7
votes
2 answers

Books on RPG IV for a Ruby programmer?

I'm a Ruby programmer and need to learn RPG IV because of my current project. I want to learn primitive types, data structures, control flows, architecture etc. Online resources are as good as paper books. What book or online tutorial should I start…
user768237
7
votes
5 answers

AS400 RPG Simulator

I have a urgent requirement to call an RPG Program from java. As suggested in this Accessing RPG on iSeries from Java question. I am planning to use JTOpen. But unfortunately I dont have access to any of theses systems. So is there any way I can…
Srinivas
  • 1,383
  • 5
  • 20
  • 28
5
votes
1 answer

Program need to return array data structure elements back to the program where it's called t

I have the requirement where I need to return array data structure elements back to calling program .initially I thought of using array data structure (9999- max dim) as parameter to calling program..there are 50 calling programs are there .only…
Sam K
  • 103
  • 4
5
votes
2 answers

Extend Templated Data Structure (Inheritance)

I have been reading about LIKEDS, TEMPLATE, and BASED trying to determine if there is a way to create data structure templates (prototypes) with inheritance. I have: D costs DS QUALIFIED TEMPLATE D material …
Sarah Kemp
  • 2,670
  • 3
  • 21
  • 29
5
votes
3 answers

RPG calling Java, java.lang.NoClassDefFoundError

My aim is to call a Web Service from Java, initiated from a RPG function. (I know, its long way around, but it is what we need) I have created a /JavaLib folder on the AS400, and copied all our needed External Jars we need. Create a Java class with…
ZioN
  • 550
  • 2
  • 11
  • 35
5
votes
3 answers

how to learn RPG/400

I heard about RPG programming from my lecturer. I would like to give it a try. The problem with it is that, how I do the programming? I don't know the OS and the IDE to suit the needs. Any help?
Red White
  • 51
  • 1
  • 4
4
votes
3 answers

RPG (iSeries) Modernization using JTOpen - What is possible?

We would be in near future implementing a solution to modernize our iSeries applications written as RPG programs with some stored procedures, and our preferred way is leveraging the latest and greatest of what Java has to offer in this space. From…
user937372
  • 41
  • 3
4
votes
1 answer

Is there way to trap QCMDEXC error in an RPG program other than using MONITOR

I have issued a CL command in a RPGLE program using the QCMDEXC api. Suppose the CL command throws an error. Is there any way of capturing the error without using the MONITOR.
Kunal Roy
  • 729
  • 3
  • 11
4
votes
2 answers

Syntax higlighters for RPG And CLP that generate HTML and/or RTF?

I found that ToHtml.com has a nice bunch of syntax highlightes that generate HTML. But they don't include RPG or CLP. So: anyone who knows a syntax highlighter for RPG or/and CLP that generates either HTML or RTF? Some more references the custom…
4
votes
2 answers

IBM i Determine Available Programming Languages

I've read time and time again that IBM i is a modern system supporting many programming languages. How do I determine which ones are available to me besides COBOL and RPG? A laundry list is given on Wikipedia, and I'd be interested especially in C,…
4
votes
1 answer

How to decrypt zip file programmatically in as 400 using RPG/RPGLE?

Is is possible to decrypt a zip file in AS 400 with password using RPG/RPGLE? Which library I should use? Is there any example?
4
votes
0 answers

ANTLR4 getCharPositionInLine() not working as intended in LEXER rule

ANTLR Grammer: grammar Test; /* * Parser Rules */ rpg_file : f_section EOF? ; f_section : f_line* ; f_line : f_start f_content f_end ; f_start …
ealagic
  • 51
  • 1
4
votes
2 answers

passing optional parm between programs in AS400

I have a PGMA(RPGLE) which is called from PGMB(CL) and PGMC(CL). PGMB calls PGMA with 2 parms while PGMC calls PGMA with 3 parms. How do I deal with this in PGMA. I tried options(*Nopass) for the third parm(which is optional) but that is only for…
AS400 User
  • 187
  • 2
  • 14
1
2 3
18 19