Reading an unknown file in RPG
Hi All, I am working on a DBU like utility which will provide a maintainance screen for each file. I need to read the file in an rpg program but i dont know the program name till runtime. I can’t declare the file in F specs as i dont know the file name. SQL is [...]
Answer Question
| March 19, 2009 12:27 PM
DBU, RPG, RPG ILE, SQL
Hi All, I am working on a DBU like utility which will provide a maintainance screen for each file. I need to read the file in an rpg program but i dont know the program name till runtime. I can’t declare the file in F specs as i dont know the file name. SQL is [...]
Convert character field in decimal field.
hi, everybody i need a help for this: waval = 15A wnval = 15 2 i put in my source this eval wnval = %dec(waval:15:2) but when i run the program stop with error in this line. what i need to do, because i want this example: waval = 123456789012345 wnval = 123456789012345.00 but if [...]
Answer Question
| March 21, 2009 6:58 PM
iSeries RPG programming, RPG ILE, RPG IV, RPGLE
hi, everybody i need a help for this: waval = 15A wnval = 15 2 i put in my source this eval wnval = %dec(waval:15:2) but when i run the program stop with error in this line. what i need to do, because i want this example: waval = 123456789012345 wnval = 123456789012345.00 but if [...]
RPGILE comparing values
i have a value say for example ASD12246. i need to check this value against afile which contains similar values lik this. i need to pick the value that has maximum matches with this number. Sa y for example if the File has ASD122 and ASD1224 i have to selct the code corresponding to ASD1224 [...]
Answer Question
| March 4, 2009 6:13 AM
RPG, RPG ILE, RPGILE
i have a value say for example ASD12246. i need to check this value against afile which contains similar values lik this. i need to pick the value that has maximum matches with this number. Sa y for example if the File has ASD122 and ASD1224 i have to selct the code corresponding to ASD1224 [...]
How to determine the RPG version
Hi, Can you tell me how to know the RPG version (III or IV) in our AS400? Also, if it’s ILE? Thank you.
Answer Question
| August 4, 2009 10:41 AM
RPG, RPG III, RPG ILE, RPG IV
Hi, Can you tell me how to know the RPG version (III or IV) in our AS400? Also, if it’s ILE? Thank you.
Pop-Up Calendar with RPG
I found a link that would show me how to code a pop-up calendar on the AS400. However, when I went to that link, it was invalid. Does anyone know how to create RPG code for a pop-up calendar on the AS400?
Answer Question
| February 11, 2009 11:31 PM
AS/400 development, Pop-Up Calendar, RPG, RPG III, RPG ILE, RPG IV
I found a link that would show me how to code a pop-up calendar on the AS400. However, when I went to that link, it was invalid. Does anyone know how to create RPG code for a pop-up calendar on the AS400?
RPG Debugger
I work for a small AS/400 shop. For the most part, we are still coding in RPGIII and doing green screen applications. Due to a recent Lawson upgrade, we have had to convert a large chunk of our code to ILE. Myself and the other programmer here are used to the Interactive debugger and using [...]
Answer Question
| February 4, 2009 3:16 PM
AS/400 development, RPG ILE, STRDBG, WDSc
I work for a small AS/400 shop. For the most part, we are still coding in RPGIII and doing green screen applications. Due to a recent Lawson upgrade, we have had to convert a large chunk of our code to ILE. Myself and the other programmer here are used to the Interactive debugger and using [...]
Job Type
How to find the job type (Interactive/ Batch) using RPGLE Programs
Answer Question
| January 22, 2009 11:32 AM
RPG Batch Mode, RPG ILE, RPG Interactive Mode, RPGLE Program
How to find the job type (Interactive/ Batch) using RPGLE Programs
How to get a Lastname from a field that contains the Full Name? (RPG-ILE)
Hi Guys, I need your suggestions…. I have to extract data from our AS400 box and convert it into text file. For a client’s name we have 3 particular fields. 1. FirstName, 2. LastName and 3. FullName. The problem is there are records where First Name and LastName fields are empty. Thats why I have [...]
Answer Question
| January 16, 2009 6:55 AM
AS/400 development, AS/400 Query, RPG ILE, RPG/400
Hi Guys, I need your suggestions…. I have to extract data from our AS400 box and convert it into text file. For a client’s name we have 3 particular fields. 1. FirstName, 2. LastName and 3. FullName. The problem is there are records where First Name and LastName fields are empty. Thats why I have [...]
how do you code a table in rpg
I need to code a table in rpg iv. I’m new to rpg and need assistance on coding techniques as it pertains to creating a table in a rpg iv program
Answer Question
| January 12, 2009 9:14 PM
RPG, RPG ILE, RPG IV
I need to code a table in rpg iv. I’m new to rpg and need assistance on coding techniques as it pertains to creating a table in a rpg iv program
RVI Software
I set up all our AP checks images for routing to an IFS Folder (PC). There are 12,763 images! When I ran the RVI program IMMUTOR1 it aborted with the message below. How can I clear the “R” from some of the existing APCHK’s I have routine so I can reduce the number of images [...]
Answer Question
| October 4, 2009 4:06 PM
RPG ILE, RPG/400, RVI Software
I set up all our AP checks images for routing to an IFS Folder (PC). There are 12,763 images! When I ran the RVI program IMMUTOR1 it aborted with the message below. How can I clear the “R” from some of the existing APCHK’s I have routine so I can reduce the number of images [...]
RPG edit code for signed value
Hi I have moved a numeric value to a ds. I have used this EVAL F1 = %EDITC(ABC:’3′)-here F1 is part of flat file DS and there are decimals required in the output file.I am getting the decimals but my problem is that ABC field from i/p file could be negative but am not sure [...]
Answer Question
| January 13, 2009 2:58 PM
Flat files, RPG Flat Files, RPG ILE
Hi I have moved a numeric value to a ds. I have used this EVAL F1 = %EDITC(ABC:’3′)-here F1 is part of flat file DS and there are decimals required in the output file.I am getting the decimals but my problem is that ABC field from i/p file could be negative but am not sure [...]
rpgle
I have a file value which is of length 15 with 2 decimal places.This value has to be assigned to an output file field whose length is 13 (eg:10.2).Can this assigned in RPGLE.The field from input file is a numeric field
Answer Question
| January 8, 2009 3:20 PM
RPG ILE, RPG Output File Field, RPGLE
I have a file value which is of length 15 with 2 decimal places.This value has to be assigned to an output file field whose length is 13 (eg:10.2).Can this assigned in RPGLE.The field from input file is a numeric field
Debugging service program
Hi anybody tell me how to dubug a service program in ILERPG…thanks
Answer Question
| January 7, 2009 5:07 PM
RPG ILE, RPGLE
Hi anybody tell me how to dubug a service program in ILERPG…thanks
Data Area Lock issue in RPG ILE
Hi, I am using a data area in a RPG ILE program which will lock the data area and updates value. If the data area is locked, the program has to unlock the data area which is locked by the same user in any of his other session. Is it possible? If yes, please let [...]
Answer Question
| January 13, 2009 9:54 AM
Data Area, Data Area Lock, RPG, RPG ILE
Hi, I am using a data area in a RPG ILE program which will lock the data area and updates value. If the data area is locked, the program has to unlock the data area which is locked by the same user in any of his other session. Is it possible? If yes, please let [...]
Text files
Can you write or add to text file in an RPG LE program?
Answer Question
| December 30, 2008 4:52 PM
RPG ILE, RPG ILE Text Files
Can you write or add to text file in an RPG LE program?
AS400 – RPGLE
Is it possible to declare and read the Multiple logical files in RPGLE Programs? Why?
Answer Question
| January 4, 2009 7:13 AM
RPG ILE
Is it possible to declare and read the Multiple logical files in RPGLE Programs? Why?
How to manage allocated register problems in RPG?
Hello. I’m having troubles with many allocated registers for update, when 2 users try to modify the same data. How is the correct way to prevent this situation in ILERPG ? Thanks!
Answer Question
| December 12, 2008 2:56 AM
Concurrency, ILE RPG, Mutex, Mutual exclusion, RPG, RPG ILE, RPGILE
Hello. I’m having troubles with many allocated registers for update, when 2 users try to modify the same data. How is the correct way to prevent this situation in ILERPG ? Thanks!
How to access all records in RPGILE
hi all, suppose i have a report with input criteria ‘machine code’ and requirement it that if i input a perticular ‘machine code’ then it should COME only that , otherwise all records of all ‘machine codes’ should come , in clp i use %WLDCRD for that. but i need to do it in rpgile [...]
Answer Question
| December 10, 2008 5:21 AM
AS/400 development, LOVAL SETLL, READE, RPG, RPG ILE, SETLL
hi all, suppose i have a report with input criteria ‘machine code’ and requirement it that if i input a perticular ‘machine code’ then it should COME only that , otherwise all records of all ‘machine codes’ should come , in clp i use %WLDCRD for that. but i need to do it in rpgile [...]
How to get the row count of a PF with RPG ILE?
Hello, I’m looking for an example of how to get a row count of a PF from a ILE rpg program. Thanks everybody.
Answer Question
| December 10, 2008 2:10 AM
AS/400 database, AS/400 development, PF/LF, Physical File, RPG, RPG ILE, RPGILE
Hello, I’m looking for an example of how to get a row count of a PF from a ILE rpg program. Thanks everybody.
calling java function running on websphere from as/400
How to call a java program running on web sphere application server from System i? We are able to call a java program deployed on System i on IFS directory using RPG ILE.
Answer Question
| December 9, 2008 2:22 PM
IFS, iSeries, Java, RPG ILE, System i, WebSphere
How to call a java program running on web sphere application server from System i? We are able to call a java program deployed on System i on IFS directory using RPG ILE.





