RPG/400 Questions and Answers

Recent IT Questions

81 - 100 of 145

AS/400 printing error

How can I go to next page when I am printing from an RPG/400 program and using an externally described printer file. Scenarios are:- 1. I need to print only 2 lines in a page, and print 2 more lines in next page. 2. I am coming across overflow error CPF5004 when printing a database file. Should I...

View Answer   |  Dec 12 2008  7:11 AM GMT
AS/400 printing, RPG/400, Overflow Error CPF5004
asked by Tenwang

  35 pts.

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.

rpg400

As a part of training in RPG i have created a pf with two fields barcode and vendor.I have created a screen with the same fields.Now i need a code in rpg400 that will open the screen and when values are entered it should get populated in the file.

View Answer   |  Nov 27 2008  10:06 AM GMT
RPG/400
asked by Anderson123

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

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.

rpg400

How to validate a alphanumeric field that is of length 20 but should not allow values less than 12?

View Answer   |  Nov 25 2008  1:17 PM GMT
RPG/400, RPG/400 field validation
asked by Anderson123

  840 pts.

Flat files

I have a data in data strucure then after i need to create flat files in txt format. please suggest me how can i proceed.

View Answer   |  Nov 25 2008  12:51 AM GMT
RPG/400, Flat files, RPG data conversion
asked by Askt

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

DSPF programming

Hi Please explain... When i open a screen in update mode how does the value get displayed in the screen and when updated it gets updated in the file.what is the general coding logic used in this case.

View Answer   |  Nov 25 2008  9:26 AM GMT
DSPF, RPG/400, Display File
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.

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.

Receiving an XML file to RPG

HI, I need to receive xml files ( of fixed format ) to my rpgle progrm ( not free format RPG ) and do some calculations. Can i do this without purchasing any tools ( free tools can be used). Please let me know if anyone has done something similar Regards, Kiron

View Answer   |  Nov 4 2008  7:35 AM GMT
RPG, XML, RPGLE
asked by Kiron

  5 pts.

Modules in RPGLE

Hi, Can anyone tell me what is module in RPGLE and how is it created? alos tell me how this can be called from rpgle?

View Answer   |  Nov 3 2008  11:49 AM GMT
RPG, RPGLE, RPG/400
asked by Mathi

  5 pts.

Barcoding in RPG/400 DDS

How can I code an EAN13 barcode in RPG 400 DDS

View Answer   |  Nov 3 2008  9:36 AM GMT
RPG, DDS, RPG/400
asked by Roddyredbelt

  25 pts.

RPG/400

Hello ,how can we Migrate fromcurrently running on UNISYS platform to AS/400 platform. Major portion of the source application is in COBOL and uses the DMS-II database. This has been migrated to COBOL and RPG on AS/400 using the DB2/400 database

View Answer   |  Nov 1 2008  2:02 PM GMT
DB2/400, COBOL/400, RPG/400
asked by 126

  170 pts.

81 - 100 of 145