RPG Questions and Answers

Recent IT Questions

81 - 100 of 727

What is command we can use for calculate difference between 2 times (like subdur)?

we can use subdur for calculate the difference between 2 dates. and what's the function code that can use for difference between two times?

View Answer   |  May 15 2009  7:00 AM GMT
RPGLE, RPG/400, RPG
asked by Ccss

  10 pts.

OPNQRYF

Is it possible to access a file created by opnqryf in an RPG/400 program using keys? I have defined the KEYFLD parameter but the RPG doesn't find the records when using READE or CHAIN

View Answer   |  May 14 2009  3:37 PM GMT
OPNQRYF, RPG/400, KEYFLD
asked by Marg

  5 pts.

How can As400 RPG check if user is logged in

Looking for As400 RPg code to check if user is logged in AS400. All assistance is greatly appreciated. Thanks, Alex Bernardo

View Answer   |  May 12 2009  8:30 PM GMT
AS/400 user sessions, RPG
asked by DHLSameday1

  60 pts.

RPG/400 CHAIN opcode

Hi,anybody tell me how to find the end of file situation while reading through the CHAIN opcode on a file in RPG/400 and in RPGLE. I think RPGLE we have %found built in function.thanks

View Answer   |  May 7 2009  7:33 AM GMT
RPG/400, CHAIN, RPG
asked by Ten2008

  730 pts.

How to use XML in RPG

Hi All, I want to know if its possible to FTP a file from RPG to any other systems using XML. More precisely, can we use XML to pull the data from RPG and feed it to other systems. If yes, appreciate if you can give some inputs or notes where I can find the complete process or code. Thanks.

View Answer   |  May 6 2009  10:20 PM GMT
RPG, XML, FTP
asked by RPGPGM

  40 pts.

SQL or RPG

Would it be better to use SQL or RPG, to update one field in the file with a value from another field in the same file? I am not that familiar with SQL, only a beginner. My RPG skills are rusty as I've not written anything in the last 4 years.

View Answer   |  May 6 2009  3:22 PM GMT
SQL, RPG
asked by Adeaver

  20 pts.

Logical Relationship in Input Specs in RPG

Hi, We can use operators AND/OR (in position 16:18) to specify logical relationship for Record Identification codes of an input record. I understood in what cases we use AND operator, but I couldn't understand in what cases one can use OR operator. I would be highly thankful if someone can help me...

asked by Shrutigupta

  165 pts.

Make RPG ILE programs look better

How can i use my as400 programming screen look better using different colours for my comments.

View Answer   |  May 1 2009  11:16 AM GMT
RPGILE, RPG/400, RPG
asked by Narasimha125

  5 pts.

Program calls on AS/400

How i can check that my previous call to a program from other program was successful. Only after successful call and run only i can call another program. How to do check this in RPG and CL?

View Answer   |  Apr 28 2009  7:53 AM GMT
RPG, CL, RPG/400
asked by Ten2008

  730 pts.

SQL in RPG (Error when TESTING (i.e. running under ISDB) RPG program which builds SQL statement and then uses PREPARE,DECLARE,OPEN,FETCH,CLOSE)

Under ISDB, JOBLOG showed' Internal Error 1001 has occurred SQLCOD -901' SQLCOD was ‘-901’ (i.e. minus 901) which according to manual ’SQL Programming’ is associated with Message SQL0901 – ‘SQL System Error’ SQLERP was ‘QSQROUTE’ - According to Manual ‘DB2 Universal Database...

View Answer   |  Apr 24 2009  11:29 AM GMT
SQL, RPG, SQL in RPG
asked by TonyC

  15 pts.

RPG vs Java vs Others

Hi, With the possibilities of using all sorts of C and Java type functions now available in RPG and bearing in mind that (in my experience) Java is difficult to tune to perform reasonably on the i-Series is there any benefit for an RPG programmer to learn Java? Or would some other language be a...

View Answer   |  Apr 23 2009  11:22 AM GMT
RPG, Java, iSeries development
asked by Gilly400

  23625 pts.

RPGLE %CHAR strips off leading zeros

Chan we stop %CHAR from removing the leading zeros?

View Answer   |  Apr 22 2009  9:27 PM GMT
RPGLE, RPG %CHAR, RPG
asked by Coder

  10 pts.

CPW source code

I would like to simulate a CPW benchmark. Is there source code (preferrably on RPG) available and how can I obtain it? Or is it just IBM private property?

View Answer   |  Apr 22 2009  9:20 PM GMT
CPW, AS/400, RPG
asked by ThomasSykora

  15 pts.

Passing parameters thru LDA

Hi i want to know how the parameters can be passed from one RPG program to another RPG program using LDA.Please give me an example code. thanks Ram

View Answer   |  Apr 22 2009  6:41 AM GMT
RPG, Local Data Area, RPG/400
asked by Ten2008

  730 pts.

RPG Program works fine in debug (ISDB)

I am coding a program in RPG/400 on OS v5r4. The program uses input files to calculate several program described fields for a report. The program does not calc correctly when I call it from the command line. The program works as expected when I run it through debug (ISDB). I am using the same sign...

View Answer   |  Apr 21 2009  6:26 PM GMT
RPG, RPG/400, ISDB
asked by Flydragon

  15 pts.

How to open file in different modes in RPG?

Hi, There have been a lot of changes in RPG over the last few years and I've lost track of many of these changes, so I have a question about file opens in RPG :- Is it possible to open a file for either input only or update without using overrides (and preferably without multiple F-specs)? The...

View Answer   |  Apr 21 2009  11:20 AM GMT
RPG, iSeries, RPG File Locks
asked by Gilly400

  23625 pts.

RPG sub-procedures

What have you found to be an over-riding reason to use a sub-procedure in an RPG program instead of a sub-routine?

View Answer   |  Apr 18 2009  1:53 PM GMT
RPG ILE subprocedure, RPG ILE, RPG
asked by LBurkett99

  800 pts.

OVRDBF Not working as supposed to

Here's the program flow CL1 calls RPG1 RPG1 calls CL2 CL2 has OVRDBF on fileA that is being used in RPG1 When the control gies back to RPG1, the file is not overriden. So I thought it might have ended at call level and I tried to do OVRDBF in RPG1 after the control come back from CL2 but still no...

View Answer   |  Apr 17 2009  6:12 PM GMT
OVRDBF, CL, RPG
asked by Jahan

  50 pts.

Check for file lock on the IFS in RPG

I need a way to check to see if a text file is locked on the IFS in an RPG program. I am running the following command in the rpg program: ReturnInt = Open(%Trim(EntryPath):O_RDONLY+O_SHARE_NONE);. When I do this for an excel file the returnint comes back with a -1 if the file is locked. However...

View Answer   |  Apr 17 2009  1:17 PM GMT
IFS Lock, RPG, IFS
asked by Marvmart

  25 pts.

AS/400 to Java migration

Hello, could someone suggest me an appropriate tool for AS/400 to Java migration? also, I am more interested if that is a product and not a service.

View Answer   |  Apr 14 2009  4:54 AM GMT
AS/400, RPG, Java Web developers
asked by Suc

  10 pts.

81 - 100 of 727