RPG Questions


Caloin Webservice From RPGLE
I need to call a webservice from RPGLE.. I know all the examples out there. Anyone actually do it yet? If so did you have any problems with getting out from the 400?  Code examples would be good or a quick reference on what steps were done would be awesome.  Thanks  

Answer Question   |  July 16, 2010  7:57 PM
RPG, WebServices
asked by:
1,780 pts.

Printing a Number as a Character
How do you print a numeric field as characters? For example on check print, how do you print Nine Hundred Ninety-Nine instead of 999?

Answer Question   |  March 18, 2010  9:44 PM
Character, numbers, print, RPG
asked by:
5 pts.

Error message CPF4131 AS/400
On of our users is trying to run a job but he’s getting an error message: CPF4131. Message . . . . : Error message CPF4131 appeared during OPEN (C G D F). Cause . . . . . : RPG procedure IVD403R1 in program ********/IVD403R1 received the message CPF4131 at statement *INIT while performing [...]

Answer Question   |  April 19, 2013  1:21 PM
AS/400, CPF4131, RPG
asked by:
100 pts.

Connect to Oracle from AS/400
I need to connect to an Oracle database from an AS/400 (RPG III/CL program). Because I need to get some data. How can I do it? What do I need?

Answer Question   |  November 28, 2011  12:21 PM
CL Program, Oracle Database, RPG, RPG III
asked by:
5 pts.

Data area *LIBL/INSRLIST is not allocated for output.
The following is a snippet of the code. I get an error on the OUT op code as in the title.  * Next List Number                                   D                 DS                                  D Get_Next_List                  6S 0 DtaAra(INSRLIST) //  Create Header record              In *Lock Get_Next_List;         //  Ge                                       DoU Done  = @True;                    Chain(E) Get_Next_List INSRL100;      If %Found;                     // Inc    Get_Next_List [...]

Answer Question   |  February 26, 2010  9:31 PM
RPG, RPGLE, V5R4
asked by:
940 pts.

Non Subfile Field Not Changing When Doing an EXFMT
This should be a simple thing to do but it is not working. I have an RPG program in which the user enters a warehouse code and presses enter. If the code is valid, it then populates a field in the record with the warehouse description. If the user changes the code to an invalid [...]

Answer Question   |  January 20, 2012  5:23 PM
RPG, RPG debugging, RPG ILE, RPG IV, RPG/400, RPGLE
asked by:
165 pts.

Date field default value – RPG
I have a date field defined in a file to hold the date we expect an order to be delivered. However there may be no orders open for an item and I expect I will get an error if I then leave this field blank. Any ideas on how I can handle this to avoid [...]

Answer Question   |  December 19, 2011  4:12 AM
RPG, RPG Programming
asked by:
105 pts.

Free Format RPGIV
Hello everybody, I am looking for complete reference for free format RPGIV,as I am new to free format…please provide me a link/pdf for the same. Thanks, Samul 

Answer Question   |  February 10, 2010  7:14 AM
RPG, RPG training, RPGIV
asked by:
160 pts.

EMP
How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file [...]

Answer Question   |  February 1, 2010  10:33 AM
CL, RPG, RPGLE
asked by:
0 pts.

Different results for embedded SQL
I have embedded SQL in my RPG code and some of the results are different to what I get when I check using STRSQL

Answer Question   |  February 1, 2010  7:08 PM
Embedded SQL, RPG, SQL, STRSQL
asked by:
20 pts.

CCSID Problem Creating XML Documents with RPG and CGIDEV2
Hello, I am creating XML documents with the CGIDEV2 library of procedures. My XML templates are in CCSID 1252. I have a field defined as CCSID 37 that I am trying to insert into the XML as variable text. This field contains a cent sign. CGIDEV2 creates the new XML document as CCSID 819 withut [...]

Answer Question   |  February 1, 2010  6:34 PM
CCSID, CGIDEV2, RPG, XML
asked by:
5 pts.

Access the API using AS400
Hi, I would like to send the few tracking details in to the website and to get back the details from the web. The URl has special character like < > & ” .(for passing the values to the web) and more than 200 of length. i would need  to know is there any way like using any [...]

Answer Question   |  February 1, 2010  1:00 PM
API, AS/400, AS/400 API, AS/400 programming, CLP, RPG, URL
asked by:
180 pts.

Calling a URL length more than 200 from CLP
Hi Techies, I would like to call a URL by passing some input values and retrieve some values from the results. 1. The URL lenght is more than 200, with special characters like % ” < / > 2.I need to retrieve values from the particular website. Can u please help me out soon, its [...]

Answer Question   |  February 8, 2010  12:31 PM
AS/400 DB2, CLP, CLPROGRAM, DB2, RPG
asked by:
180 pts.

Allocate more then 16 MB to RPG Variable
Is there a way to allocate more then 16MB space to variable or pointer in RPG ? I heard about Heap /User Space creation but when I tried to use it, it’s limit is again 16 MB.

Answer Question   |  January 28, 2010  10:56 AM
RPG, RPG variables
asked by:
10 pts.

Can I read a Word doc in the IFS in an RPG program?
I am looking for a way to read the contents of a Word doc in the IFS from an RPG program.  Does anyone know of a way to do this? I have found some articles about using QShell or PASE to read text files, but I am not sure if they will work for Word [...]

Answer Question   |  January 16, 2010  2:17 PM
iSeries, RPG
asked by:
170 pts.

Vietnamese Characters in RPG
I would like to write a program in RPG to print out Vietnamese characters with accents, for example ắ, ấ, ỏ, ọ, … But I don’t know the way JD Edward can support. Appriciate your help here.

Answer Question   |  January 14, 2010  7:46 AM
JD Edwards World, RPG, RPG Language Support
asked by:
5 pts.

Using a command line in a display file in RPG
Can I create a display file with a command line in it using RPG?

Answer Question   |  January 13, 2010  8:55 PM
iSeries command line, RPG, RPG Display File
asked by:
20 pts.

RPG
Hi, This is my first post , but i have been reading this site for a while now. I have a strange question that maybe somebody on here can give me an answer on? I know there are many very experienced Programmers on here! My question is that i have been working in my current [...]

Answer Question   |  August 25, 2011  2:00 AM
RPG
asked by:
15 pts.

Data Access Layer in RPG
Has anyone implemented a Data Access Layer in RPG-ILE, similar to what is discussed in these articles: http://www.itjungle.com/fhg/fhg072104-story01.html and http://www.itjungle.com/fhg/fhg011205-story01.html If so, can you share some of the positives and negatives of the experience? In hindsight, would you do it again? What would you do differently? Our organization is in the beginning stages of a [...]

Answer Question   |  January 7, 2010  5:23 PM
DB2, RPG, RPGILE
asked by:
5 pts.

RPG/EGL market size
I’m trying to find any data on the size of the US RPG/EGL market, number of servers, applications, programmers, etc. Anyone have any recent figures?

Answer Question   |  January 5, 2010  3:42 AM
EGL, RPG
asked by:
5 pts.