RPGLE Questions and Answers

Recent IT Questions

101 - 120 of 402

AS400 - RRN of PF

FILE1 is a PF. I want to read 100th Record directly. I want to perform this operation without using LF, OPNQRY, Native I/O. want to achieve this using RRN value of File. How to code this in RPGLE Program

View Answer   |  Jan 20 2009  11:43 AM GMT
RPGLE, RPGLE Program, RRN
asked by Rajeshece

  480 pts.

Can embedded SQL in a SQLRPGLE program be used as a stored procedure?

I am successfully using (external) stored procedures with many RPGLE programs. (Some of these are SQLRPGLE programs because they return a result set.) All of this works fine. But if I try to replace some of the RPG I/O in a RPGLE program with embedded SQL, creating a SQLRPGLE program, and run it...

View Answer   |  Jan 14 2009  10:09 PM GMT
iSeries RPG programming, Stored Procedures, Embedded SQL
asked by Warykat

  20 pts.

MSGW

Thank You for your reply But I need the process how I can write a program in order to get all the process to be done that is, giving opt7 & reply 'G' for a MSGW job. Or can I have any other process to do the same that means sending a reply to a MSGW job in RPGLE or CLLE or by any other process in...

View Answer   |  Jan 9 2009  4:43 AM GMT
MSGW, Message Waiting, AS/400 administration
asked by Kothamasusitaratnam

  5 pts.

rpgle

I have a file value which is of length 15 with 2 decimal places.This value has to be assigned to an output file field whose length is 13 (eg:10.2).Can this assigned in RPGLE.The field from input file is a numeric field

View Answer   |  Jan 8 2009  3:20 PM GMT
RPG ILE, RPGLE, RPG Output File Field
asked by Anderson123

  840 pts.

Debugging service program

Hi anybody tell me how to dubug a service program in ILERPG...thanks

View Answer   |  Jan 7 2009  5:07 PM GMT
RPGLE, RPG ILE
asked by Ten2008

  730 pts.

rpg subdur

I'm doing a subdur to calc the number of days between mfg date and trans date. When mfg is 2008 and trans is 2009 (12/31/2008 01/02/2009) I get a result of -364 like it subdur is ignoring the year. Any idea how to fix?

View Answer   |  Jan 5 2009  1:24 PM GMT
SUBDUR, RPGLE
asked by Jjjlake

  40 pts.

Please explain RPG "Bind by Copy" and "Bind by Reference"?

Can you explain the terms with example BIND BY COPY BIND BY REFERENCE

View Answer   |  Jan 5 2009  7:40 AM GMT
RPGLE, RPG, Bind by Copy
asked by Rajeshece

  480 pts.

AS/400 development

Service Program contains 10 procedures. 5 Procdures in that service programs are defined with export keyword.5 Procdures in that service programs are defined with import keyword. i am calling the procedures from other ile program. How many procedures are available for me? How to hide the...

View Answer   |  Jan 5 2009  5:59 AM GMT
RPGLE, AS/400 service program, RPG
asked by Rajeshece

  480 pts.

MSGW in WRKACTJOB

How to end a job in MSGW how we can give in a program all the proces to give OPT-7 in front of a job which is in MSGW & giving 'G' to end that in RPGLE /CLLE progrm that too in a scheduled time

View Answer   |  Jan 5 2009  5:46 AM GMT
MSGW, WRKACTJOB in AS400, Message Waiting status
asked by Sitaratnam

  10 pts.

CL AND RPGLE

can i call an rpgle prog from a cl by passing parameters from cl. Also how do i debug these two sources which are of different types.I am not able to use strisdb to link the modules.

View Answer   |  Jan 2 2009  1:13 PM GMT
RPG, RPGLE Program, CL
asked by Anderson123

  840 pts.

AS400 Print Screen button on upper lefthand corner not working with new VISTA PC

Hi, A user reported a problem where she used to be able to print whatever's on her screen from within any AS400 application by pressing the print screen icon on the upper lefthand corner of her screen (under the File button). Since she got a new pc with VISTA on it, it only prints a screen with...

View Answer   |  Dec 22 2008  6:10 PM GMT
RPGLE, AS/400 Print Screen
asked by Kineno16

  15 pts.

AS400 - RPGLE Module

Hi, I have created module mod1. and i have merged the mod1 with services programs sp1, sp2, sp3. how do i find what are all the service programs attached with that particular module?

View Answer   |  Dec 22 2008  8:21 AM GMT
RPG, RPGLE, RPG/400
asked by Rajeshece

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

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.

where does the file get created in AS/400 system when we fire embedded INSERT query in an RPGLE program

we are inserting deptid in departments table using the following INSERT statement: INSERT INTO departments (department_id, department_name ) VALUES (30, ':Purchasing'); so where does the departments file get created in As/400 system? when we are doing a runqry on...

View Answer   |  Nov 12 2008  2:14 PM GMT
AS/400, RPGLE, SQLRPGLE
asked by Mohan K

  470 pts.

How many files can be read in an RPGLE program?

How many files can be read in an RPGLE program?

View Answer   |  Nov 11 2008  7:48 AM GMT
RPGLE, RPGLEPGM
asked by Angajala

  5 pts.

Print from RPGLE without closing program or PRTF

I just setup an Epson TM-H6000III POS printer on the AS400. This is used to print a receipt and then change to the check validation to print on the back side of checks. I got everything working except the receipt prints a " - -1" everytime I close the PRTF to release the print. Does anyone know a...

View Answer   |  Nov 7 2008  1:23 PM GMT
RPGLE, AS/400 printing, PRTF
asked by OnLine400

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

How to tell if a specific record comes before or after another specific record?

In RPG ILE, I have an externally described file. I am chaining out to the logical file with a key & find the first record. Now, I want to know if the second record I'm looking for is before or after the first record in the file.

View Answer   |  Oct 29 2008  8:13 PM GMT
RPGLE, RPG ILE
asked by Stckrb

  5 pts.

101 - 120 of 402