rpgle

How long can memory leaks persist in RPGLE programs?

I'm putting into production some RPGLE code which uses %alloc and dealloc to allocate memory. Programmers should be able to ensure there are no resulting memory leaks but I'm worried about what happens if they don't. My question is: if programmers mess up and there are memory leaks then when will this memory be reclaimed? Is it when ...

External stored procedure on IBM i

I am trying to create an external stored procedure on an IBM i (V5R4), but I'm getting an error when I try to run it. All I want to do is call an RPG program, without passing any parameters or worrying about returning any data. Sorry, I'm not an RPG programmer or an expert on IBM i, so I could be missing something very simple. The SQL ...

refactoring in iSeries (RPG), is it realistic

Implementing agile in projects requires the ability to do refactoring. It is not really a must, but code refactoring has proven to be a good engineering practice. In an agile (Scrum) project on the iSeries platform, which requires development (new code and modifications to legacy code) in RPG, RPG LE, is it possible to implement refacto...

How can I get the EBCDIC value of a character in RPGLE?

I need to have some way of converting single characters in RPGLE into integers - does anyone know a good way? It has to work for all possible inputs and ideally provide a different integer for each input - at the very least it must provide a different value for all common inputs. I don't care particularly what the integers are. In a C li...

Is there an numeric type in ILE RPG which will overflow without crashing my program?

I'm looking for a numeric type in ILE RPG which will "wrap round" when it overflows, in a similar way to how a C int would. Is there such a thing? ...

Passing XML back and forth with RPG and .NET

I am at a loss here of a best-practice to pass XML back and forth with RPG and C#.NET. Originally, I was going to use a temp physical file in QTEMP, but it seems to be that there should be a better way. The temp file has one line of the document in one record of the file. To me this seems to add a lot of extra work that really shouldn't ...

[Help]How can I get the EBCID Value of the Feild in RPGLE

I need to have some way to judge the content of feild whether is chinese or english.As far as konw that the EBCID value of chinese character just like this :the head is 0E and the tail is 0F,so,who can tell me how do I get the EBCID value of the feild? Thank you! ...

Invoking ASO400 RPG From Java

Hi, I have a very limitied (0) knowledge on AS400 and RPG. But we have a urgent requirement where we need to invoke a RPG program from a java class. So I found that we can achieve it through JTOpen. But I am stuck at declaring the ProgramParameter list. I have the following information about RPG Program Program name: ZM30000R Parame...

Fetching RPGLE files from the IBMi using java.

Hi, I need to fetch the RPGLE files from the user libraries in the IBMi machine using JAVA. Im using JTOpen400. Can anyone plz help??? ...

recursive run of rpg program

i am running a rpg program recursively it is giving an error like this Application Error. RNX8888 unmonitored by PGM1 at statement *N, instruction X'0000'. Trigger program or external routine detected an error.....what can be the resolution ...its urgent..thanks ...

Comparing RPG to C# and SQL.

In an RPG program (One of IBM's languages on the AS/400) I can "chain" out to a file to see if a record (say, a certain customer record) exists in the file. If it does, then I can update that record instantly with new data. If the record doesn't exist, I can write a new record. The code would look like this: Customer Chain CustFile ...

Handling pointer while updating a key value in rpgle

my code goes like this femp uf e k disk dvar1 s 5p 0 c *loval setll emp c read emp c dow not %eof(emp) C eval ecode = ecode + 10 c eval var1=ecode c update recemp ...

RPG compiler converts type S to type P?

Here is my situation: I have program A which looks like this: Fmfile IF E K DISK USROPN d grue s like(dhseqn) d C *ENTRY PLIST C PARM grue c open mfile c*** do something with grue c close mfile c ...

Is it possible to read content of an IceBreak 'marker' in the program code?

I'm using IceBreak to make HTML frontend for RPG programs. There is a function called 'SetMarker' which takes the name of the marker and the value: SetMarker('Demo':'Example'); This makes the value available for the HTML code: <!--#tag="MyTag"--> <p>This is a/an <%$ Demo %></p> When called by RPG: ResponseWriteTag('IceB.html':'My...

How can I keep a RPG program running in memory?

I coded a monitoring program in RPG that checks if the fax/400 is operational. And now I want this program to check every 15 minutes. Instead of placing a job every 15 minutes in the job scheduler (which would be ugly to manage), I made the program wait between checks using DLYJOB. Now how can I make this program "place itself" in mem...