CPW source code
I would like to simulate a CPW benchmark. Is there source code (preferrably on RPG) available and how can I obtain it? Or is it just IBM private property?
Answer Question
| April 28, 2009 9:20 PM
AS/400, AS/400 testing, Commercial Processing Workload, CPW, RPG
I would like to simulate a CPW benchmark. Is there source code (preferrably on RPG) available and how can I obtain it? Or is it just IBM private property?
Passing parameters thru LDA
Hi i want to know how the parameters can be passed from one RPG program to another RPG program using LDA.Please give me an example code. thanks Ram
Answer Question
| August 31, 2011 6:41 AM
LDA, Local Data Area, RPG, RPG/400
Hi i want to know how the parameters can be passed from one RPG program to another RPG program using LDA.Please give me an example code. thanks Ram
RPG Program works fine in debug (ISDB)
I am coding a program in RPG/400 on OS v5r4. The program uses input files to calculate several program described fields for a report. The program does not calc correctly when I call it from the command line. The program works as expected when I run it through debug (ISDB). I am using the same [...]
Answer Question
| April 21, 2009 6:26 PM
ISDB, RPG, RPG Program, RPG/400, V5R4
I am coding a program in RPG/400 on OS v5r4. The program uses input files to calculate several program described fields for a report. The program does not calc correctly when I call it from the command line. The program works as expected when I run it through debug (ISDB). I am using the same [...]
How to open file in different modes in RPG?
Hi, There have been a lot of changes in RPG over the last few years and I’ve lost track of many of these changes, so I have a question about file opens in RPG :- Is it possible to open a file for either input only or update without using overrides (and preferably without multiple [...]
Answer Question
| November 19, 2009 11:20 AM
iSeries, RPG, RPG File Locks
Hi, There have been a lot of changes in RPG over the last few years and I’ve lost track of many of these changes, so I have a question about file opens in RPG :- Is it possible to open a file for either input only or update without using overrides (and preferably without multiple [...]
RPG sub-procedures
What have you found to be an over-riding reason to use a sub-procedure in an RPG program instead of a sub-routine?
Answer Question
| April 21, 2009 1:53 PM
RPG, RPG ILE, RPG ILE subprocedure
What have you found to be an over-riding reason to use a sub-procedure in an RPG program instead of a sub-routine?
OVRDBF Not working as supposed to
Here’s the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come [...]
Answer Question
| April 18, 2009 6:12 PM
CL, OVRDBF, RPG
Here’s the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come [...]
Check for file lock on the IFS in RPG
I need a way to check to see if a text file is locked on the IFS in an RPG program. I am running the following command in the rpg program: ReturnInt = Open(%Trim(EntryPath):O_RDONLY+O_SHARE_NONE);. When I do this for an excel file the returnint comes back with a -1 if the file is locked. However [...]
Answer Question
| April 21, 2009 1:17 PM
IFS, IFS Lock, RPG
I need a way to check to see if a text file is locked on the IFS in an RPG program. I am running the following command in the rpg program: ReturnInt = Open(%Trim(EntryPath):O_RDONLY+O_SHARE_NONE);. When I do this for an excel file the returnint comes back with a -1 if the file is locked. However [...]
AS/400 to Java migration
Hello, could someone suggest me an appropriate tool for AS/400 to Java migration? also, I am more interested if that is a product and not a service.
Answer Question
| April 15, 2009 4:54 AM
AS/400, AS/400 development, AS/400 import/export, AS/400 migration, Java, Java Web developers, RPG
Hello, could someone suggest me an appropriate tool for AS/400 to Java migration? also, I am more interested if that is a product and not a service.
Difference between Record and File locks
I had always thought that record and file locking where terms used interchangeably. I searched the web and couldn’t validate my assumpition. Is there anyway in RPG you can lock a specific record (record lock) in a file without locking the entire file (file lock)?
Answer Question
| October 6, 2011 4:48 PM
RPG, RPG File Locks, RPG Record Locks
I had always thought that record and file locking where terms used interchangeably. I searched the web and couldn’t validate my assumpition. Is there anyway in RPG you can lock a specific record (record lock) in a file without locking the entire file (file lock)?
LOOKUP
when lookup is unsuccessful what is the value of array index?
Answer Question
| July 16, 2009 2:55 PM
RPG, RPG LOOKUP
when lookup is unsuccessful what is the value of array index?
ReadE opcode
Hi can u pl tell me how to use READE opcode without having factor1 field..thanks
Answer Question
| April 8, 2009 2:53 PM
READE, RPG, RPG READE Opcode
Hi can u pl tell me how to use READE opcode without having factor1 field..thanks
I/O device error in AS/400 program
what is I/O device error in AS/400 programs and when it occurs ? pls clarify….thanks
Answer Question
| April 8, 2009 8:47 AM
AS/400 errors, AS/400 I/O error, RPG, RPG/400
what is I/O device error in AS/400 programs and when it occurs ? pls clarify….thanks
RPGIII to RPGILE Conversion
Someone out there must hae done this conversion. We are planning on doing this conversion to ILE sometime and would like to know some of the issues. We are planning on using the IBM conversion tool, which I believe can do most of the programs, leaving only a few to “hand” code. What we are [...]
Answer Question
| April 8, 2009 5:33 AM
IBM conversion tool, RPG, RPG III, RPGILE
Someone out there must hae done this conversion. We are planning on doing this conversion to ILE sometime and would like to know some of the issues. We are planning on using the IBM conversion tool, which I believe can do most of the programs, leaving only a few to “hand” code. What we are [...]
Is a DB on AS400 always DB2 ?
Please, I want to know if possible : when we speak about a data base on AS400, exactly a data base used by RPG, is it allways a DB2 database ? Is AS400 a database. Is it the same as DB2/400 ? I hope to be clear enough. Sincerely
Answer Question
| November 24, 2010 3:25 PM
AS/400 database, DB2, RPG
Please, I want to know if possible : when we speak about a data base on AS400, exactly a data base used by RPG, is it allways a DB2 database ? Is AS400 a database. Is it the same as DB2/400 ? I hope to be clear enough. Sincerely
How to retrieve the current version of AS400 you are working on?
Hi, Does anyone know how to retrieve the current version, release and model number of the AS400 box you are working on. We can view this information in spool files, but I want to retrieve this information through both CL and RPG program. Regards Shruti.
Answer Question
| April 7, 2009 12:42 PM
AS/400 upgrades, AS/400 Version, CL, RPG
Hi, Does anyone know how to retrieve the current version, release and model number of the AS400 box you are working on. We can view this information in spool files, but I want to retrieve this information through both CL and RPG program. Regards Shruti.
RPG/400 Error RNQ1255
I have a RPGILE (XOP560) program. I am able to compile sucessfully this program. once i call this program i am getting below error. please advice me. Additional Message Information Message ID . . . . . . : RNQ1255 Severity . . . . . . . : 99 Message type . . . [...]
Answer Question
| September 16, 2009 10:53 AM
Error RNQ1255, RPG, RPG Error Messages, RPG/400
I have a RPGILE (XOP560) program. I am able to compile sucessfully this program. once i call this program i am getting below error. please advice me. Additional Message Information Message ID . . . . . . : RNQ1255 Severity . . . . . . . : 99 Message type . . . [...]
Duplicate object (PF) using SQL with same attributes
I want to create a duplicate object using SQL. I don’t want to use CRTDUPOBJ and also do not want to compile my rpg’s pgm because of new file level identifier. Please advice
Answer Question
| December 15, 2011 6:46 AM
CRTDUPOBJ, LVLCHK, PF, Physical File, RPG, RPG/400, SQL, SQL/400
I want to create a duplicate object using SQL. I don’t want to use CRTDUPOBJ and also do not want to compile my rpg’s pgm because of new file level identifier. Please advice
How to create a code using diff colors in RPG & CL
How to create a code using diff colors in RPG & CL
Answer Question
| April 3, 2009 4:04 AM
CL, RPG, RPG/400
How to create a code using diff colors in RPG & CL
create rpg source from object?
I just accidentally deleted my rpg srce. I have no splf out there and no back up. is it possible to recreate from obj code?
Answer Question
| April 2, 2009 5:48 PM
Create RPG Source from Object, RPG, RPG Source
I just accidentally deleted my rpg srce. I have no splf out there and no back up. is it possible to recreate from obj code?
RPG/400 error
i am getting error while moving data from one field to another field. I have two files xodcfp(physical file) xounpr 8 p(2) xodstsf(physical file) xsuprc1 10a while moving data from xounpr to xsuprc1 i am gettig error…. i tried EVAL XSUPRC1 = %EDITC(XOUNPR:’X') but still getting error… please advice
Answer Question
| October 29, 2009 12:00 PM
AS/400 development, RPG, RPG/400
i am getting error while moving data from one field to another field. I have two files xodcfp(physical file) xounpr 8 p(2) xodstsf(physical file) xsuprc1 10a while moving data from xounpr to xsuprc1 i am gettig error…. i tried EVAL XSUPRC1 = %EDITC(XOUNPR:’X') but still getting error… please advice





