RPG/400 Questions


Settin on LR indicator not closing files
I have a service program that ends with *INLR but it does not close the files after its procedure is called. It is compiled with ACTGRP(*CALLER) the program that uses it is also compiled with ACTGRP(*CALLER). However, if I use the CLOSE op code, the file closes. Is this natural or should this be corrected [...]

Answer Question   |  July 18, 2009  9:09 AM
*INLR, *INLR problem, LR indicator, RPG, RPG/400
asked by:
560 pts.

Default value of a Indicator data type
Hi, can you please temme, what is the default value of a Indicator data type (N) which is declared with ‘INZ’?

Answer Question   |  July 15, 2009  7:47 AM
Data Types, RPG, RPG/400
asked by:
30 pts.

AS400 Physical file conversion to xml file
Hi, i need to write an RPGLE program to convert an as400 physical file to an xml file. Does anyone have a sample code for it? Thanks in advance.

Answer Question   |  July 2, 2009  5:10 AM
AS/400 import/export, Physical File, RPG/400, RPGLE, XML
asked by:
55 pts.

How to define password field in display file.
Hi, In my project i need to create a display file with username and password. But while typing password the text should not visible to user. So any one can tell how to define the password field in AS/400.

Answer Question   |  July 1, 2009  8:21 AM
AS/400 passwords, RPG, RPG III, RPG/400
asked by:
60 pts.

How can I find out my System IP Address through CL/RPG?
I would like to know my system IP-Adress , to validation with User name and IP-Address.

Answer Question   |  December 22, 2010  9:27 AM
AS/400 administration, AS/400 IP address, CL/400, RPG/400
asked by:
95 pts.

Launching AS/400-iSeries with DB2 and RPG
I am new in AS400/ iSerices. Actually I am a software developer C#.Net in my office we have database on AS400/iSerices DB2. I usually use Sql. I want to install or launch AS400/iSerices on my home PC. Can anybody help me how launch AS400/ iSerices on my personal PC. Thanks in advance. Mr.SEA mrsea001@gmail.com

Answer Question   |  June 10, 2009  5:30 AM
AS/400 installation, DB2/400, OS/400 Installation, RPG/400
asked by:
130 pts.

How to create menu using RPG program?
how to create menu using rpg program

Answer Question   |  December 17, 2010  9:37 AM
RPG, RPG ILE, RPG/400, RPGILE
asked by:
5 pts.

Distance between 2 points with RPG
RPG Code to calculate the distance between two (2) points using Longitude and Latitude?

Answer Question   |  June 5, 2009  12:15 AM
RPG, RPG/400
asked by:
5 pts.

negative numeric values
How to retrieve the negative numeric values stored in packed fields of a PF into a RPG program and process them?

Answer Question   |  May 29, 2009  5:54 PM
PF, RPG, RPG/400
asked by:
1,150 pts.

Printer files in RPG ILE
How can we create and use printer files in rpg ile… i am new to as400 and i want to know about printer files and reports as my company asked me to……..

Answer Question   |  May 19, 2009  9:04 AM
AS/400 Printer File, AS/400 printing, RPG, RPG ILE, RPG/400, RPGILE
asked by:
25 pts.

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?

Answer Question   |  May 18, 2009  7:00 AM
RPG, RPG/400, RPGLE
asked by:
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

Answer Question   |  May 18, 2009  3:37 PM
CHAIN, KEYFLD, OPNQRYF, READE, RPG, RPG/400
asked by:
5 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

Answer Question   |  May 8, 2009  7:33 AM
CHAIN, RPG, RPG/400, RPGLE
asked by:
1,150 pts.

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

Answer Question   |  May 5, 2009  11:16 AM
RPG, RPG/400, RPGILE
asked by:
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?

Answer Question   |  April 28, 2009  7:53 AM
AS/400 development, CL, RPG, RPG/400
asked by:
1,150 pts.

RPGLE pgm to determine the last day for a month
does anyone have an rpgle pgm that will return the last day of the calendar month if given the month and year.

Answer Question   |  April 30, 2009  9:38 PM
RPG %DATE, RPG/400, RPGLE
asked by:
45 pts.

Read opcode
Hi Can i use the record format in place of a file name for all types of READs available in RPG/400 along with SETLL n SETGT?

Answer Question   |  April 29, 2009  10:30 AM
RPG/400, SETGT, SETLL
asked by:
1,150 pts.

file names in rpg/400
How to alias a file name in rpg/400 program. the problem here is the file name 10 char length and RPG/400 allows a maximum of 8 chars. Please answer…thanks

Answer Question   |  April 27, 2009  9:56 AM
RPG/400, RPG/400 Filename Alias
asked by:
1,150 pts.

key list in RPG/400
Hi, i have a physical file with a composite key of 6 fields. I am writing a single page subfile program in which the program is supplied with two field values from the screen or another program. Now whenever i am chaining using the two fields under the keylist the errors are shown like the [...]

Answer Question   |  May 6, 2009  8:38 AM
RPG/400, RPG/400 Subfile
asked by:
1,150 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

Answer Question   |  August 31, 2011  6:41 AM
LDA, Local Data Area, RPG, RPG/400
asked by:
1,150 pts.