ISeries RPG Programming Questions and Answers

Recent IT Questions

1 - 18 of 18
<<PREVIOUS 1 NEXT>>

Problem Running SQLRPGLE program in Batch: Works Fine Interactively

Hello all, We currently have a program that runs in batch. Last night, we had the following error occur: RNQ0103: The target for a numeric operation is too small to hold the result. The program works perfectly when run interactively. When the program was originially written, I compensated for...

View Answer   |  Oct 6 2009  6:27 PM GMT
iSeries RPG programming, Batch job, Error Messages
asked by Dcantwell

  165 pts.

Modify MS Access using iSeries RPGLE

I have to intergrate a third party product that uses an MS Access database with my AS/400 machine and be able to both update the Access data as well as read data from the Access database to use on the 400. Does anyone know how I can do this?

View Answer   |  Jul 16 2009  5:01 PM GMT
iSeries RPG programming, RPGLE, Microsoft Access
asked by Wkozerski

  20 pts.

CPF5149 on Delete using SHARE(*YES)

I am receiving a CPF5149 error when trying to perform a delete of a record in a file that is defined as update/add in the F spec. Unfortuneately, the software package my company uses requires SHARE(*YES) on all database files. I am fairly sure that the problem is caused by the file being opened at...

View Answer   |  Jul 6 2009  2:59 PM GMT
RPG, iSeries RPG programming, RPG Programming
asked by Joy Stalnecker

  120 pts.

lexmark printer on iSeries

What are the specific settings to connect a Lexmark model 658 to an iSeries system using ip and crtdevprt.

asked by Mballai

  15 pts.

Does anyone know if Version 4.05 of BPCS is compatible with V5R3 of i5/OS?

We upgraded out production machine to V5R3 of i5/OS and we are seeing an issue with BPCS programs not compiling that use to before. This includes errors with /COPY statements that were found but now showing the following errors * QRG2001 Severity: 30 Number: 11 ...

View Answer   |  Jun 8 2009  8:12 PM GMT
iSeries, iSeries RPG programming, AS/400 upgrading
asked by Lovemyi

  1445 pts.

rpg/400

I am not able to send the messages to message subfile.. i am able to compile my rpgile program sucessfully... please find below displayfile and rpgile code for your reference so please advice. display file. A R MSGRCD SFL A*%%TS SD 20090407 ...

View Answer   |  Apr 7 2009  4:31 PM GMT
RPG/400, iSeries RPG programming, RPGILE
asked by Askt

  265 pts.

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 i put...

View Answer   |  Mar 17 2009  6:58 PM GMT
RPG ILE, RPGLE, RPG IV
asked by BUG68

  80 pts.

random number

Can anyone pos thet code in RPG 4 or logic to generate random number....?

View Answer   |  Mar 6 2009  4:42 PM GMT
RPG IV, iSeries RPG programming
asked by Harshaljg

  10 pts.

Quarter calculation

I have a fiscal calendar that runs from March to February. I need to be able to calculate the quarter number and determine the months that compose that quarter. Doing all of this with out prompting the user.

View Answer   |  Mar 4 2009  4:10 PM GMT
iSeries, RPGIV, iSeries RPG programming
asked by AS400PCFileTransfer16

  45 pts.

converting numeric field to a character field and show leading zeros

I am using %char to convert a numeric 9 pos field to character for use in a larger out put field. My code looks basically like eval labelout - "4J'+lpart+%char(lexpire)+%char(lserl) Where lexpire and lserl are used in the labelout field, I need the leading zeros to show. Right now, they are...

View Answer   |  Feb 18 2009  3:27 PM GMT
RPG, RPGLE Program, iSeries RPG programming
asked by Merts

  25 pts.

How to use embedded SQL in a RPG program used as a stored procedure

When I use embedded SQL in a RPG program and call it from another program it works fine. But, when I try to use the program as a stored procedure it gives me a SQL error. I have worked with stored procedures and understand them, but have not been successful using embedded SQL with them. Any ideas...

asked by Warykat

  20 pts.

AS400 Cobol screen write hanging up

I am an RPG programmer, but have a client with a cobol issue. When the program does a write to a screen it never returns to the read statement. No error is issued and we have to cancel the job. Any ideas or suggestions?

View Answer   |  Feb 9 2009  3:26 PM GMT
COBOL, COBOL/400, iSeries RPG programming
asked by 400Man

  5 pts.

AS400 - RPG

What is the difference between *NAMVAR and *DTAARA in RPG Programming

View Answer   |  Jan 21 2009  8:28 AM GMT
RPG, iSeries RPG programming, NAMVAR
asked by Rajeshece

  440 pts.

Can embedded SQL in a SQLRPGLE program be used as a stored procedure?

I am successfully using (external) stored procedures with many RPGLE programs. (Some of these are SQLRPGLE programs because they return a result set.) All of this works fine. But if I try to replace some of the RPG I/O in a RPGLE program with embedded SQL, creating a SQLRPGLE program, and run it...

View Answer   |  Jan 14 2009  10:09 PM GMT
iSeries RPG programming, Stored Procedures, Embedded SQL
asked by Warykat

  20 pts.

Data QUEUE - Remote location ..... for program device DDMDEVICE was not found

When trying to use a remote DATA QUEUE the send and receive data queue commands failed giving : Service with protocol tcp not found. Cannot establish DDM connection with remote system. Operation on DDM data queue DTAQFIFO in TESTLIB failed. Remote location MYAS400 for...

View Answer   |  Nov 27 2008  9:33 PM GMT
RPG, DDM, iSeries RPG programming
asked by SBCHenry

  15 pts.

passing parameters via a datastructure to and from a procedure

Can anyone provide a simple example of passing data via a data structure from one procedure to another? I would like to call a procedure to post data to a transaction file using a data structure to pass the data.

View Answer   |  Oct 10 2008  6:40 PM GMT
RPGLE, iSeries RPG programming, A/400
asked by Docorp

  15 pts.

DBCS File Support - Data type

I am changing our current application software to support DBCS. As this software needs the ability to run in both an SBCS environment and a DBCS environment, I need to re-define fields at the file level to allow DBCS data. Specifically, is it better to use data type "E" or data type "O" to define...

View Answer   |  Aug 22 2008  3:42 PM GMT
iSeries RPG programming, RPG ILE, DBCS
asked by Anncyb

  40 pts.

General keys on iSeries

Hello, Is it possible to activate a 'general key' besides the attention key which can be set for each individual user on the iSeries? I want to give a certain group of users the opportunity to use a Print Screen Pgm when the standard shortcuts (Ctrl P etc..) don't work as expected due to an...

View Answer   |  May 30 2008  12:33 AM GMT
AS/400, Keyboards, iSeries RPG programming
asked by Zappaz

  5 pts.

1 - 18 of 18
<<PREVIOUS 1 NEXT>>