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
3
votes
3 answers

SQLRPGLE source size limit

Is there a limit to what the SQL pre-compiler can handle for an SQLRPGLE source object? I have had some problems compiling a 25,000 line program and a line limit is the only thing that would explain the errors I'm getting
Hamish
  • 1,015
  • 9
  • 20
2
votes
1 answer

One RPGLE calls another RPGLE program using a data structure, how to achieve this in free format

I have a calling program suppose program1 which calls program2 using a data structure. CALL 'Program2' PARM P1PARM The structure of P1PARM D P1PARM DS 256 D P1ADFR 1 15 D …
Kunal Roy
  • 729
  • 3
  • 11
2
votes
3 answers

RPG iSeries Take PDF in byte[] from Java function and write it to IFS

I am preparing a program in RPGLE that will use Java function returning fancy PDF file. I want to take that PDF in RPGLE and create a PDF file on IFS. For now the Java program returns the PDF in byte[] format. Than I take the byte [] as char in RPG…
2
votes
1 answer

Can an RPG program call something external, ie: a webservice?

Is there a way for an RPG program to call a web service? I would prefer an ASP.Net web service but would be fine with a winform app or a web page. I'm wanting make an internet service available to the iseries by creating a gateway.
Bill Martin
  • 4,825
  • 9
  • 52
  • 86
2
votes
1 answer

IBM for i / RPG: How to compile a module and create a service program with one call in IBM Rational Developer for i (RDi)

How to avoid having to use the Compile menu of RDi 2 times in a row - to create first a SQL RPGLE module and then to create the service program associated?
Stephane Ehret
  • 340
  • 2
  • 9
2
votes
1 answer

Is there way to convert flat file with HTML elements data to PDF in AS400?

We have flat file which has html elements data. Program converting this data to .DOC using CPYTOIMPF and mail to the user. Office automatically converting html tags and showing in proper format. As per new requirement, Flat file data need to be…
Sam K
  • 103
  • 4
2
votes
2 answers

In RPGLE program, Why do EXCEPT is preferred over UPDATE to update a field in PF?

Eval Num = 1; Why do we prefer: C EXCEPT DDMAST --------------------------- O RDDMAST E DDMAST O NUM Over: UPDATE DDMAST
2
votes
2 answers

What is the real advantage of using activation group in rpg

Can someone kindly tell me what is the real advantage of using an activation group. I mean other than the fact that we can deactivate a bunch of programs together what real advantage does activation group provide us over not using it.
Kunal Roy
  • 729
  • 3
  • 11
2
votes
1 answer

How to delete a record without actually reading the record in RPGLE

Recently I came across a question that was asked to me in a RPGLE interview. I was asked how to delete a record without actually reading it in RPGLE. My answer was we can use embedded SQL , but he told in SQL we are still reading the data. So in…
Kunal Roy
  • 729
  • 3
  • 11
2
votes
1 answer

Difference between WRITE and EXCEPT in rpg/rpgle

Hi in many of old rpg programs that I have come across I can see that EXCEPT is being used in place of WRITE opcode. Can someone tell me what is the exact difference between the EXCEPT and WRITE opcode.
Kunal Roy
  • 729
  • 3
  • 11
2
votes
1 answer

Difference between compiler directive /Include and /copy in rpgle(sqlrpgle)

In rpgle /sqlrpgle code I have come across compiler directives like /INCLUDE and /COPY, can somebody tell me what is the core defference between the two because it seems they pretty much do the same thing.
Kunal Roy
  • 729
  • 3
  • 11
2
votes
2 answers

RPGLE Increment Counter into Data Structure

I'm trying to implement a counter in my program that will give a total at the end of the records. Currently I have a counter within a procedure called TotalCalls += 1; that counts the calls which is working fine, and I have a Totals field in my…
jaspoe30
  • 53
  • 3
2
votes
1 answer

Writing into IFS file a variable size string

I'm writing a file in iSeries IFS. My variable File_Data is a 32000A, so when I use CallP Write(FileD : %Addr(File_Data) : %Size(File_Data) ) I find some unuseful spaces when the Variable is not…
Nifriz
  • 1,033
  • 1
  • 10
  • 21
2
votes
3 answers

Call RPG program from PHP

We have an AS/400 system. I am asked to look for a way to call RPG programs from PHP on our Apacher server. The only solution i found was installing zend server to AS/400 and using i5 PHP API Toolkit. Since I don't know how to use AS/400 and don't…
Muhammet Emre
  • 349
  • 3
  • 17
2
votes
2 answers

Converting a numeric to a date in MM/DD/YYYY format in IBM I RPG

I'm working on a project where I have an external file with dates in a numeric format (like: 20,210,807) rather than in date format. I need to get them into a report formatted in MM/DD/YYYY. I have a data structure started but I'm at a stalemate on…
jaspoe30
  • 53
  • 3
1 2
3
18 19