RPG Questions and Answers

Recent IT Questions

1 - 20 of 727
<<PREVIOUS 1|2|3|4|5|6|7|8|9|10 NEXT>>

Move all fields in a record format at once.

How can I move all the fields of a single record format at once? I need to move fields totalling 712 positions to a single flat-file record that is also 712 positions long. I really don't want to move one-field-at-a-time into a data structure if I can help it.

View Answer   |  Nov 19 2009  1:25 AM GMT
RPG, Subfile Record Format
asked by Mahler2

  15 pts.

AS/400 Primary Language

Hi! I developed an application in CL and RPG and I want it to be multilingual. Is it possible to programmatically read the system primary language so I can use the same language for my application?[o:p][/o:p]

View Answer   |  Nov 18 2009  3:05 PM GMT
AS/400 Primary Language CL RPG, CL, RPG
asked by BobIV

  15 pts.

Can anyone please tell me what is the basic difference between arrays and tables in RPG.

Hi All, Can anyone please tell me what is the basic differance between arrays and tables in RPG and for which type of requirement we have to use arrays and tables. since there might be bit difference between both of them. Please explain me.

View Answer   |  Nov 18 2009  5:56 AM GMT
RPG/400, RPG Tables, RPG arrays
asked by Mohan K

  470 pts.

data search using popup window

Is there a sample RPG/CL/SQL code on how to create a popup window to search data from a PF? Software/Hardware used: RPG, CL, SQL, iSeries

View Answer   |  Nov 17 2009  0:44 AM GMT
Physical Files, RPG, CL
asked by Sarapsm

  5 pts.

Input or Update Primary files and (shudder) the RPG cycle ...

First, I'd like to say that obviously there are some very knowledgeable midrange people here ... lots of good tips to pick up ...  I've been programming RPG since the early 80's ... and I notice that   very few people ever use or even refer to the RPG cycle any more ...  nor do I ever see IP...

View Answer   |  Nov 11 2009  9:47 PM GMT
RPG cycle, Primary file processing, RPG
asked by ASWDEVELOPER

  180 pts.

Padding with zeros in Synon/2e

How can we implement Padding with zeros (concept in rpg) in Synon/2e?

Answer Question   |  Nov 9 2009  11:25 AM GMT
Synon/2E, Synon, RPG
asked by MAGIC

  185 pts.

rpg

I have five indexed files in rpg prog. Can I decleared common key field parameters for all five files? Is it possible in cobol ? If not how will solve this querry in cobol ? Explain with an ex.

View Answer   |  Nov 9 2009  6:55 AM GMT
RPG Program, RPG, COBOL
asked by Mahesh11

  5 pts.

I/O operation was applied to closed file error on AS400

I've got a program that outputs to two reports, a summary and a detail. Both printfiles are using the keyword usropn. I open the files at the begining of the program and I close them at the end. The files close after the totals are printed, the totals are only printed when LR is turned on. LR is...

View Answer   |  Nov 3 2009  2:07 PM GMT
AS/400, RPG, PRTF
asked by Lemonjello

  50 pts.

ACCESS PARTICULAR MEMBERS IN RPG

SUPPOSE I HAVE A PF WITH 3 MEMBERS. IS IT POSSIBLE TO DO READ/WRITE OPERATION ON PARTICULAR 2 MEMBERS? Software/Hardware used: AS/400

View Answer   |  Oct 31 2009  11:34 AM GMT
RPGLE, RPG/400, RPG
asked by Amol123

  5 pts.

Clear leading zeros

I have a 10A character field which hold a numeric value. Problem is that it contains leading zeros. How can I remove them? Many thanks.   Software/Hardware used: V5R4 iSeries

View Answer   |  Oct 29 2009  9:08 AM GMT
RPGIV, V5R4, RPG
asked by NeilD

  65 pts.

Convert number to roman numerals in RPG

Hi, Can any know how to convert numbers to roman numerals in RPG or RPGLE?

View Answer   |  Oct 24 2009  6:43 AM GMT
RPG, RPGLE
asked by Babs

  25 pts.

Moving to prototypes and /FREE (correcting my last post)

I want to change the following to using prototypes and /FREE... how do I do that? D RDCTL         E DS                  EXTNAME(RDCTL)  C     *ENTRY        PLIST                          C                  ...

View Answer   |  Oct 23 2009  7:19 PM GMT
RPG
asked by JamesR

  70 pts.

Need to find everyplace a file is being used.

I have a file that we are adding a field. Need to find every program the file is being used to know which ones need to be recompiler. Would be nice to do one big search of the entire library.  Software/Hardware used: as400

View Answer   |  Oct 22 2009  3:37 PM GMT
RPG, RPGLE, DDS
asked by Nitzinger

  150 pts.

Using prototypes and data structures

How do I convert the following into using prototypes (including the *ENTRY) and /free?? D RDCTL         E DS  EXTNAME(RDCTL)     Software/Hardware used: V5R4 RPG

View Answer   |  Oct 22 2009  12:06 AM GMT
RPG, V5R4
asked by JamesR

  70 pts.

How to handle deletion in RPG

I have a file(A) that needs to have records deleted from it based off information in another file(B). I think the logic should be... Read A Chain to B if criteria met delete record. Is there a better/cleaner way to do this? I do not have much experience with RPG.

View Answer   |  Oct 21 2009  2:35 PM GMT
RPG, RPG Record Deletion
asked by Adeaver

  20 pts.

decimal data error

I declare time field in RPG as D btime    4  0 eval btime = 2400 this one i pass to a CL program with var type var(&tim) type(*dec) len(4,0) and this in turn passed to another RPG program D stime    4  0 when it comes to third program it has some hex char shown in debug as belo stime = 2_4_...

View Answer   |  Oct 20 2009  10:29 PM GMT
RPGLE, RPG, Decimal Data Error
asked by Nutangujar

  750 pts.

ILE Best method of Parameter handling using Procedures

Using prototypes and Procedure interfaces I understand that no parameter may be returned if a procedure is called directly via CALLP. And only one parameter may be returned if procedure is called via EVAL with return. What is the best way to return multiple parameters from a procedure (assuming I...

View Answer   |  Oct 15 2009  11:09 AM GMT
RPG ILE Parameter handling, RPG ILE, RPG
asked by Barryo

  35 pts.

How to use debug on a interactive program with subfiles

I want to know if you can use debug on a interactive program that uses subfiles to hold the modify data?

View Answer   |  Oct 12 2009  6:49 PM GMT
RPG ILE, RPG, RPG debugging
asked by Nitzinger

  150 pts.

Why do I have such a problem with passing to a program a 8 byte field using a parm.

Why do I have such a problem with passing to a program a 8 byte field using a parm. Parm field is define as packed(8,0) but as soon as the program tries to acquired the parm I get a Decimal data error. *ENTRY       ...

View Answer   |  Oct 8 2009  4:43 PM GMT
RPG, RPGLE
asked by Nitzinger

  150 pts.

How to use edtcde &edtwrd in o spec?

Dear all, Actually I want to learn the use of edtcde and edtwrd keywords in O spec. how can i use these keywords suppose if  i have a field sellprice which consists 7 length with 2 decimal position i want to put $ sign for the values of this field in fixed and floating format how can i code it in...

View Answer   |  Oct 3 2009  4:24 PM GMT
RPG Code, RPG, EDTCDE
asked by 6r

  155 pts.

1 - 20 of 727
<<PREVIOUS 1|2|3|4|5|6|7|8|9|10 NEXT>>