RPG Questions and Answers

Recent IT Questions

21 - 40 of 727

6.1 OS

Will RPG IV programs generated using the increase field sizes in 6.1 be able to run on previous versions (i.e. V5R4)?

View Answer   |  Oct 1 2009  6:18 PM GMT
RPG IV, V5R4, RPG
asked by Dcarney

  30 pts.

error in following rpg code?

Dear all, I am having problem while compiling follwing rpg code for calculation of square and cube of 2digit number.my display file compiles well but there is an error exfmt operation entry not valid.(error qrg 5199). RPG CODE is:  Columns . . . :    1  71           ...

View Answer   |  Sep 30 2009  5:12 AM GMT
RPG, RPG compilation error, RPG Code
asked by 6r

  155 pts.

RPG Programming Standards

I'M LOOKING FOR RPG PROGRAMMING STANDARDS. We have always had standards example if you create a report the report should have the date, title, program name, page numbers.  Does anyone have a stanards document or is there anything on the web?   I appreciate your help!     Software/Hardware...

View Answer   |  Sep 23 2009  3:51 PM GMT
RPG, CL, AS/400
asked by Superbusy

  15 pts.

S/36 RPG program using a Data Area

We enter in vouchers from a variety to locations. All of the voucher entry programs are written in RPG IV and use a Data Area to get the next voucher, update the data area using lock in/out. This all works very well. We have an older S/36 program that populates Employee Expenses into the voucher...

View Answer   |  Sep 15 2009  4:17 PM GMT
AS/400, S36E, RPG
asked by Superbusy

  15 pts.

File open RPG

Is there a way in an rpg program to open a file using a character field for the filename? for example: if my file name is TESTFILE I can use the line: (in rpg free)   OPEN TESTFILE; but is there a way to have character field in place of the filename:   D filename          ...

View Answer   |  Sep 12 2009  8:19 AM GMT
AS/400, RPG
asked by Srikant

  5 pts.

AS400: copybook or module? ...or...other?

I'm on V6R1, using WDSCi 7 to program in RPG IV.  I've accumulated a number of functions that I use in quite a few of my programs, and I was thinking it might be a good idea to go ahead and place them as subroutines (may be wrong terminology) in a copybook.  But, having done some research, there...

View Answer   |  Sep 11 2009  12:35 AM GMT
AS/400, iSeries, V6R1
asked by Koohiisan

  1005 pts.

Stored procedure

how to capture the messages sent by Stored procedure.. the one which i'm using is programmed to returned '0001110' if certaine condition do not match...how will i capture this or where i'll see these messages... Thanks, NG Software/Hardware used: AS400

View Answer   |  Sep 10 2009  2:18 PM GMT
RPG, AS/400 stored procedures, AS/400
asked by Nutangujar

  750 pts.

DB2

i have display file which inputs a varibale say Var1.... This is updated in a PF. My problem is program is not updating this varibale in this file. it updates all other varibales...i checked the library list and evrythng is in place... in PF, the field name is Var1. i use the same name for DSPF -...

View Answer   |  Sep 9 2009  2:27 PM GMT
DB2, RPG, AS/400
asked by Nutangujar

  750 pts.

Flat file

How to copy records from a file to flat file in RPG III Software/Hardware used: AS400

View Answer   |  Sep 7 2009  11:33 AM GMT
RPG III, RPG, RPG Flat Files
asked by Gill007

  5 pts.

Stored Procedure

hi, I'm calling a Stored procedure from RPGLEV program. I'm getting error pointer not set for location referenced. the SP has 3 parameters, numeric, numeric, Character my call stmt is CallP  SP_Prototype(num1:num2:Char1) the program crahses....any thoughts???? thanks, NG Software/Hardware used:...

View Answer   |  Sep 3 2009  8:32 PM GMT
AS/400, RPG, AS/400 development
asked by Nutangujar

  750 pts.

Defining a sort variable (ORDER by) in RPG SQL

I have a file that I would like to sort on a specific column that a user would choose. I sort the file by an imbedded SQL statement: ORDER by PRDNO. Works fine. If I try and make it a variable (ORDER by :Sort_Seq), the statement is ignored. Is there a way to make the ORDER by a variable in RPG...

View Answer   |  Sep 3 2009  2:12 PM GMT
RPGSQL, SQL, RPG
asked by MurrayInfoSys

  570 pts.

Number of lines of code in a program

hi, I've 50 programs to find the number of lines of code in it... is there any smart way? Thanks, N. Software/Hardware used: as400

View Answer   |  Sep 2 2009  9:50 PM GMT
AS/400, RPG
asked by Nutangujar

  750 pts.

How to convert RPG to a .txt file

How do you take a regular source member and convert it a .txt file?

View Answer   |  Aug 31 2009  9:38 PM GMT
RPG, RPG to .txt file
asked by Joe94553

  15 pts.

SNDUSRMSG equivalent in RPG (including VALUES and DFT)

Some time ago I found a piece of code by Scott Klemens regarding the implementation of SNDUSRMSG in RPG using QMHSNDM and QMHRCVPM. I need to do the exact same thing, however I also need to pass the values for the VALUES and DFT keywords used with SNDUSRMSG. Does anybody have an idea on how to do...

View Answer   |  Aug 26 2009  1:19 PM GMT
iSeries, AS/400, CL
asked by Roelpeeters

  5 pts.

RPG Logic Cycle ?

HI,     How to know that a RPG program using RPG Logic Cycle or Not?     Jayanta

View Answer   |  Aug 21 2009  6:37 AM GMT
RPG, RPG logical operators, RPG Logic Cycle
asked by 21061981

  25 pts.

Logical File without Keyfield

If i am using a logical file without key fields in RPG program , it will show any error ?   Jayanta

View Answer   |  Aug 20 2009  10:08 AM GMT
RPG, Logical Files
asked by 21061981

  25 pts.

Serialization: Mutexes vs. Semaphores

I am looking for a way to serialize access to a RPG program across multiple jobs. I have been doing some research on mutexes and semaphores and I am wondering what the advantages/disadvantages of each are. Also if there are any other ways to accomplish this. Thanks in advance for your reply

View Answer   |  Aug 19 2009  1:22 PM GMT
iSeries, RPG, Mutex
asked by Joy Stalnecker

  120 pts.

Scrolling Message in RPGLE

Does anyone know how to create a scolling message on the bottom of a display screen? I am programming on the AS400 in RPGLE

View Answer   |  Aug 18 2009  9:22 PM GMT
RPG, RPG ILE, RPG/400
asked by GHENDER

  50 pts.

Get user id in CGI RPG program

Please, kindly advise on this issue I am having. Program is coded in RPG and is a CGI module. I tried to get user-id from program data structure, but this "UserID 254 263", but it shows QTMHHTTP, because this pgr runs on HTTP server. How else can I obtain real user-id of the user who is envoking...

View Answer   |  Aug 12 2009  6:31 PM GMT
RPGLE, Java, CGI
asked by Lenny2113

  115 pts.

FXP FILES CONVERSION (TO RPG)

  fOXPRO REL 2.6 (FOR dos) CAN SOMEBODY GUIDE ME AS TO HOW FXP FILES ARE CONVERTED BACK TO PRG (WITHOUT SPENDING MONEY) ? Software/Hardware used: fOXPRO REL 2.6 (FOR dos)

View Answer   |  Aug 12 2009  10:36 AM GMT
FoxPro 2.6 for DOS, FoxPro, FoxPro 2.6
asked by AmjadM

  15 pts.

21 - 40 of 727