How do you print shading in RPG
How do you print shading in RPG?
Answer Question
| February 11, 2013 8:09 PM
AS/400, RPG
How do you print shading in RPG?
Replace leading blanks with zeros in RPG
I have a 3A field on my display file, when user enters ‘ 50′ I want to chain the file with ’050′ since record in stored in file like that. How can I replace the leading blanks with zeros in this case?
Answer Question
| February 11, 2013 11:02 AM
AS/400, RPG
I have a 3A field on my display file, when user enters ‘ 50′ I want to chain the file with ’050′ since record in stored in file like that. How can I replace the leading blanks with zeros in this case?
RPG: AS/400 question
AS/400 question 10: In RPG 1 I have 6 parameters and in RPG2 I have 9 parameters being passed. I have RPG 3 which processes the request based on RPG1 and RPG2. if RPG 1 is called then 6 parameters will be received and the rest 7,8,9 should be initiated to Zeroes. If RPG 2 [...]
Answer Question
| February 6, 2013 9:32 AM
AS/400, RPG
AS/400 question 10: In RPG 1 I have 6 parameters and in RPG2 I have 9 parameters being passed. I have RPG 3 which processes the request based on RPG1 and RPG2. if RPG 1 is called then 6 parameters will be received and the rest 7,8,9 should be initiated to Zeroes. If RPG 2 [...]
Need to print PDF of length 198 generated by spool of same size
Earlier length of printer file was 132.Now some more fields are added and hence I have increase size till 198. After program execution, spool is being generated fine, but when converting it to PDF, the extra fields are being cropped. How can I generate PDF till length at least to 160 length. What extra setting [...]
Answer Question
| January 10, 2013 7:12 AM
AS/400, RPG, Spool file
Earlier length of printer file was 132.Now some more fields are added and hence I have increase size till 198. After program execution, spool is being generated fine, but when converting it to PDF, the extra fields are being cropped. How can I generate PDF till length at least to 160 length. What extra setting [...]
RPG online course
Kindly someone anyone suggest me for RPG, CL (AS400) Online course. Fees no problem but I need idea for good tutorial.
Answer Question
| January 7, 2013 12:49 PM
AS/400, RPG, RPG training
Kindly someone anyone suggest me for RPG, CL (AS400) Online course. Fees no problem but I need idea for good tutorial.
Debugging a RPG program
Is there any way to store a variable value in file while the program is in debug? what i means is, I have a data structure of size 32766, while debugging the program ,the dippaly variable only display limited size of the data structure, but I want the total data of the variable……
Answer Question
| January 7, 2013 11:41 AM
RPG, RPG Program
Is there any way to store a variable value in file while the program is in debug? what i means is, I have a data structure of size 32766, while debugging the program ,the dippaly variable only display limited size of the data structure, but I want the total data of the variable……
CALLB,CALLP,CALL
1. When are dynamic calls(CALL) preferred to static calls(CALLB & CALLP)? 2. Performance wise which one is faster, CALLB or CALLP ? 3. I know CALLP checks the parameters during compile time and has an advantage over CALLB. But any scenarios where CALLB takes the advantage over CALLP ? 4. Performance wise are the below [...]
Answer Question
| December 10, 2012 7:28 AM
ILE for iSeries, ILE RPG, RPG
1. When are dynamic calls(CALL) preferred to static calls(CALLB & CALLP)? 2. Performance wise which one is faster, CALLB or CALLP ? 3. I know CALLP checks the parameters during compile time and has an advantage over CALLB. But any scenarios where CALLB takes the advantage over CALLP ? 4. Performance wise are the below [...]
CPF4169 error appeared during OPEN for screen file
In reference to Ibmi ILE programming environment. I am in a screen program which is set to 132 length. There are multiple calls to other programs that are set to 80 length where there is not a problem getting the CPF4169 error. So now I have a new program to call and I am getting [...]
Answer Question
| December 4, 2012 6:41 PM
AS/400, CPF errors, CPF4169, IBMi, ILE, RPG, Rpgle - display file, screen
In reference to Ibmi ILE programming environment. I am in a screen program which is set to 132 length. There are multiple calls to other programs that are set to 80 length where there is not a problem getting the CPF4169 error. So now I have a new program to call and I am getting [...]
Want to find a string in CL source file(ABOUT 400 CL SOURCE ) and replace with other String.
I Have a problem For replacing a particular Hard coded Libray name from my all CL source file(about 400) by some other hardcoded library name.For e.g There is a library name Used in many CL source file with ABCD(lib name).I want to change all occurances in each CL source file By DEFG.
Answer Question
| December 4, 2012 12:41 PM
AS/400, cl 400, RPG
I Have a problem For replacing a particular Hard coded Libray name from my all CL source file(about 400) by some other hardcoded library name.For e.g There is a library name Used in many CL source file with ABCD(lib name).I want to change all occurances in each CL source file By DEFG.
Is there and efficient way to load Prtf fields with data from a PF?
I want to load a Physical File with Printer File field names and Data. Then read through the PF and populate the printer file field variable with the data from another field in the file. Then I can write the PrtF record with the variable data from the file. For example PFfields: fLINE fCMD1 fRIGHT [...]
Answer Question
| November 29, 2012 5:14 PM
iSeries AS/400, RPG
I want to load a Physical File with Printer File field names and Data. Then read through the PF and populate the printer file field variable with the data from another field in the file. Then I can write the PrtF record with the variable data from the file. For example PFfields: fLINE fCMD1 fRIGHT [...]
ADDBKP – default program
Hi, I’m trying to debug the batch job. After releasing the job, a display screen is shown the use debug commands. When I use ADDBKP STMT(1), an error is thrown as no default program exits. How to make my program as default program?
Answer Question
| November 28, 2012 7:39 AM
Batch job, RPG
Hi, I’m trying to debug the batch job. After releasing the job, a display screen is shown the use debug commands. When I use ADDBKP STMT(1), an error is thrown as no default program exits. How to make my program as default program?
IPI prompt type.
What is the purpose of IPI prompt type in RPG? Can anybody explain me with examples?
Answer Question
| November 26, 2012 6:37 AM
RPG
What is the purpose of IPI prompt type in RPG? Can anybody explain me with examples?
Operation not allowed in a job running multiple threads from SQL RPGLE
Hi, I am running SQLRPGLE on V7R1. The program takes entries from file and emails. The program on high level does following steps……….: 1. Fetch Record from File, ………… 2. Convert Spool file to PDF and puts into IFS, into Root/Folder1, ……… 3. Copies PDF file from Root/Folder1 to QDLS/Folder1 using command CPY, ……. 4. [...]
Answer Question
| November 13, 2012 7:32 PM
AS/400, iSeries, RPG, RPGLE
Hi, I am running SQLRPGLE on V7R1. The program takes entries from file and emails. The program on high level does following steps……….: 1. Fetch Record from File, ………… 2. Convert Spool file to PDF and puts into IFS, into Root/Folder1, ……… 3. Copies PDF file from Root/Folder1 to QDLS/Folder1 using command CPY, ……. 4. [...]
Is there a way to tell how an RPG program was compiled
We have come across some vendor supplied RPG programs that have been compiled with the FIXNBR option set to *INPUTPACKED. We would like to know if there is a way to display how a program was compiled and to see all of the options selected for it. Thanks.
Answer Question
| November 13, 2012 5:00 PM
RPG, RPG Programs
We have come across some vendor supplied RPG programs that have been compiled with the FIXNBR option set to *INPUTPACKED. We would like to know if there is a way to display how a program was compiled and to see all of the options selected for it. Thanks.
How can I open file from another library in RPG program
Hi, my requirement is how can I open a file from another library in RPG program … noted that I have tried to use keyword : EXTFILE(LIBRARY _Nam / FILE_Nam) but it doesn’t work. Please advise. Thanks! Tarek yaseen
Answer Question
| November 12, 2012 3:17 AM
RPG, RPG Programs
Hi, my requirement is how can I open a file from another library in RPG program … noted that I have tried to use keyword : EXTFILE(LIBRARY _Nam / FILE_Nam) but it doesn’t work. Please advise. Thanks! Tarek yaseen
List of objects
Hi.. I got to create a pf which will have list of objects present in all the user libraries availabe. When i use DSPOBJD, the server gets struck. DSPOBJD works fine when a specified library is specified. But in order to get all the objects, is there anyother options?
Answer Question
| October 19, 2012 5:46 AM
DSPOBJD, object, Outfile, RPG, RPGLE
Hi.. I got to create a pf which will have list of objects present in all the user libraries availabe. When i use DSPOBJD, the server gets struck. DSPOBJD works fine when a specified library is specified. But in order to get all the objects, is there anyother options?
How to capture decimal value of numeric fld
I need a way to capture the decimal value of a numeric field (i.e. 5.78). Need a way to be able to break the decimal value away to do computations on it. How do I achieve this using RPG III coding techniques?
Answer Question
| October 18, 2012 6:50 PM
RPG
I need a way to capture the decimal value of a numeric field (i.e. 5.78). Need a way to be able to break the decimal value away to do computations on it. How do I achieve this using RPG III coding techniques?
Outfile printing
In CL, I’ve created a outfile out of dspobjd cmd. To this file, i’ve filtered a column using opnqryf. I’ve copied the output (cpyqryf) to a new file. While doing this, i’m getting the error data option was not allowed with open option’ The log shows :The first file is created-> added to library. Seqonly [...]
Answer Question
| October 16, 2012 7:14 AM
CL, cpyqryf, OPNQRYF, RPG, RPGLE
In CL, I’ve created a outfile out of dspobjd cmd. To this file, i’ve filtered a column using opnqryf. I’ve copied the output (cpyqryf) to a new file. While doing this, i’m getting the error data option was not allowed with open option’ The log shows :The first file is created-> added to library. Seqonly [...]
How to create Report on WRKOBJ’s output using a pf?
Hi gotta develop a pf which will show all the objects under all user’s library. Please suggest
Answer Question
| October 15, 2012 8:21 AM
iSeries, iSeries AS/400, RPG, RPG Code
Hi gotta develop a pf which will show all the objects under all user’s library. Please suggest
Display File Field Value When Function Key Pressed
I have a simple display file that shows a window with a single field for user to enter a value for a number. If the user enters a number and presses enter the program uses the value to send number to other programs. My problem however is if a user places a value in the [...]
Answer Question
| September 25, 2012 8:06 PM
AS/400, ILE, iSeries, RPG
I have a simple display file that shows a window with a single field for user to enter a value for a number. If the user enters a number and presses enter the program uses the value to send number to other programs. My problem however is if a user places a value in the [...]





