RPG Questions and Answers

Recent IT Questions

181 - 200 of 727

AS400 read of PC files

On the AS400/ISeries/SystemI, I would like to read PC file data from a PC Server into my RPG program. What is the best way to accomplish this task? Right now, it would be for READ ONLY.

View Answer   |  Nov 28 2008  6:28 PM GMT
AS/400, RPG, RPG ILE
asked by Danljonessr

  10 pts.

%ERROR function in RPG

How to use % error built in function in rpgle program any code example please?

View Answer   |  Nov 28 2008  4:53 PM GMT
RPG, CHAIN(E), RPG error handling
asked by 6r

  155 pts.

Sorting data in RPGLE

How to sort data in rpgle program countrywise in program coding only?

View Answer   |  Nov 28 2008  4:46 PM GMT
RPG, RPGLE, RPGLE Program
asked by 6r

  155 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.

RPG COMPLIATION ERROR QCLRTVJA

Hi I am finding error while compliing RPG/400 program error is as follows Message . . . . : Total parameters passed does not match number required. Program QRGRT attempted to call program QCLRTVJA with 47 parameters. Program QCLRTVJA expects a minimum of 48 and a maxmum of 50 can any body...

View Answer   |  Nov 27 2008  6:44 AM GMT
RPG, RPG/400, RPG Error Messages
asked by Bu

  60 pts.

RPG query

Hi Martin, thanks for the previous query. Now i want to read the data of a DB file and display the data via display file. I have written following code for this: FPFRPG1 IF E K DISK FDSP1 CF E WORKSTN ...

View Answer   |  Nov 26 2008  10:47 AM GMT
RPG, RPG/400
asked by Shaddy

  20 pts.

FTP with RPG

I have a file which should be ftped to another server.I have the ftp script.Can you suggest 1.code to automatically ftp the file to another server 2.also to send email alerts using snddst if ftp fails.

View Answer   |  Nov 26 2008  9:46 AM GMT
RPG, SNDDST, AS/400 FTP
asked by Anderson123

  840 pts.

Dynamic screen designing in RPG

is it possible to design rpg screen at run time. I mean designing and using screen through rpg code.

View Answer   |  Nov 26 2008  7:40 AM GMT
RPG, RunTime, Dynamic screen designing in RPG
asked by Ranevikas

  15 pts.

RPG/Asset

Can a rpg program in asset be converted to rpg400 or ile?If so how

View Answer   |  Nov 26 2008  6:27 AM GMT
RPG, RPG ILE, RPG/400
asked by Anderson123

  840 pts.

DSPF prog

Thanks for ur response.I have a small clarification.If all fields on the screen is from 1 file chain and then exfmt will work.What if the screen has fields form more than 1 file.

View Answer   |  Nov 25 2008  12:51 AM GMT
RPG, DSPF, RPG/400
asked by Anderson123

  840 pts.

RPG procedure

Hello Martin, Below is the codeline which i used for reading a DB file via RPG: FMYFILE IF E K DISK C READ PFRPG1 C DOW NOT%EOF C...

View Answer   |  Nov 25 2008  5:32 AM GMT
RPG, Database programming, RPG/400
asked by Shaddy

  20 pts.

Tools for example unit test source RPG

I need tool for test code. any proposals ???

View Answer   |  Nov 24 2008  7:59 PM GMT
RPG, RPG IV, RPG Testing
asked by RPG1982

  5 pts.

RPG Array

Hello ! Can I check for all the elements of an Array in single statement ? e.g. If Array(*All) = *Blanks ? I want to check that all elements of an array is blank or not.

View Answer   |  Nov 24 2008  9:47 AM GMT
RPG, RPG IV, Report Program Generator
asked by Uppikal

  5 pts.

Display files in AS/400

I am getting stated with RPG400.I hev this requirement to add a new field in an existing screen and move this value to a new PF.This is when the screen is opened in crete mode. the other screen where the new field is to be added is the update screen.In this screen value is to be retrieved from the...

View Answer   |  Nov 24 2008  9:37 AM GMT
RPG, Report Program Generator, PF/LF
asked by Anderson123

  840 pts.

Reading a database file via RPG program

could anyone provide me with the codeline for reading a database file via RPG program

View Answer   |  Nov 24 2008  5:49 AM GMT
RPG, RPG/400, AS/400 database
asked by Shaddy

  20 pts.

How to monitor job activity on AS/400

How is it possible to tell on AS/400 that the program (RPG) is just "idling" on the screen and the user is not really using it ? I need the way to monitor it to end the job if the program is not being used.

View Answer   |  Nov 18 2008  1:41 PM GMT
AS/400, RPG, ENDJOB
asked by BelauB

  10 pts.

RPG error RPG9001

I am received error code QRG9001 error while compliling RPG/400 PROGRAM os version is V3R7M0 on my AS/400 server can anybody help me to resoved this

View Answer   |  Nov 17 2008  9:54 AM GMT
RPG, RPG/400, AS/400 error messages
asked by Bu

  60 pts.

AS/400 file specification

Why sometimes we need to put "K" for file specification?eg: FSSDATA IF E K DISK

View Answer   |  Nov 17 2008  6:18 AM GMT
RPG, RPGLE, FSSDATA parameter
asked by Cev

  105 pts.

EXFMT

Hi, I have used two EXFMT Statements successively in my RPG Program as shown below EXFMT FOR1 EXFMT FOR2. FOR1 is SFLCTL and FOR2 is a record to be overlayed in FOR1 at the bottom. Now I want my program to display FOR2 immdediately after FOR1. But I could realise that only whent the enter key is...

View Answer   |  Nov 16 2008  10:33 AM GMT
RPG, AS/400 command functions, EXFMT statement
asked by Sris1986

  55 pts.

sql table in rpg

I need to read an sql table (file) in rpg and select certain records. I'm pretty green in sql. Anyone have a sample they could share? I'am better at rpg than ile., but I'll take what I can get. Thanks

View Answer   |  Nov 14 2008  6:21 PM GMT
SQL, RPG, SQL tables
asked by Brenger

  165 pts.

181 - 200 of 727