RPG Questions and Answers

Recent IT Questions

161 - 180 of 727

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

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

Record addition in a PF

I have a PF with some data in it which i am using in a RPG program. I got another text file with extra data related to PF in it. I have to add this data to the existing data in the PF, Please tell me how can i do this from my RPG program....advance thanks

View Answer   |  Jan 3 2009  6:15 PM GMT
RPG, Physical File, RPG/400
asked by Ten2008

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

indicators

I have an RPG that uses alot of indicators for attributes like Position cursor and reverse image.How to effectively use these in a program instead of doing seton and setof everytime.I have come across arrays not sure if it can be used or can you suggest ways of making the program look much more...

View Answer   |  Jan 2 2009  10:29 AM GMT
RPG
asked by Anderson123

  840 pts.

Overflow

How to control overflow in RPG without using indicators. Is it possible?

View Answer   |  Dec 25 2008  8:47 AM GMT
RPG
asked by Ten2008

  730 pts.

FTP Source File transfers between to AS/400 systems

I have written a bound ILE CLP and RPG comand/program that will allow LIB/FILE.source transfers between two AS/400 systems and/or LPARS using FTP. It works fine with the exception that the source files are transferred with out the Descriptive TEXT. Does anyone know how to solve this dilemma? We...

View Answer   |  Dec 23 2008  3:20 PM GMT
RPG, FTP, OS/400 TCP/IP
asked by ECLAY

  20 pts.

How to send the data from a Physical file to a Flat file

Please check the below prgram and advice me how to send the data from APH(physical file) to Flate file SAAPH (flat file). FTRF is a datstructure created for send the data only this two fields in flat file. i am not sure how to club this data structre and flat file in programe. FAPH IF E ...

View Answer   |  Dec 23 2008  12:45 AM GMT
RPG, Physical File, RPG/400
asked by Askt1

  105 pts.

System date and RPG/400

please advice me how to less 1 day from system date in rpgile. please send me the syntex.

View Answer   |  Dec 23 2008  8:54 AM GMT
RPG, RPGILE, RPG/400
asked by Askt1

  105 pts.

Embedded SQL to process ALL members

Hi, I'm trying to get an RPG with embedded SQL to read all the members in a file. I know I used to be able to do this with an OVRDBF command with *ALL specified for the member, but this doesn't seem to work anymore. In the joblog I get a CPF4268 message which says the file has no members or is...

View Answer   |  Dec 22 2008  12:54 AM GMT
AS/400, iSeries, SQL
asked by Gilly400

  23625 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

  495 pts.

Code Complexity tool for AS400

Is there any open source tool avaiable to measure the code complexity for AS400 programming languages like RPG, COBOL?

View Answer   |  Dec 19 2008  4:39 PM GMT
COBOL, RPG, Open source software
asked by Frmdeva

  215 pts.

How to create a Data Area with RPG for storing variables

How to create a data area using an RPG.I need to create a data area and store some values in it.The value to be stored are also retrieved from the same RPG.(that is from screen variables)

View Answer   |  Dec 19 2008  9:29 AM GMT
RPG, Data Area, RPG variables
asked by Anderson123

  840 pts.

Decimal data error

For testing an RPG program, I changed the CL program which submits the RPG program to a “call”. The change was to include a new parameter (numeric) to the RPG program. After testing, the Call was changed back to SBMJOB, but when tested again, the RPG program bombed with ‘decimal data...

View Answer   |  Dec 12 2008  6:36 PM GMT
RPG, CL, CL programs
asked by Moksha

  20 pts.

Suggesions for programming task in RPG

Hi I have a task to perform Create a screen with a date and year field,the value given in this field will be mapped to a database file and a set of records will be retrieved from this file with the screen values as select conditions.This has to be further written to a new file. Please suggest...

View Answer   |  Dec 12 2008  11:52 AM GMT
RPG, RPG/400, RPG Subroutine
asked by Anderson123

  840 pts.

How to manage allocated register problems in RPG?

Hello. I'm having troubles with many allocated registers for update, when 2 users try to modify the same data. How is the correct way to prevent this situation in ILERPG ? Thanks!

View Answer   |  Dec 11 2008  2:56 AM GMT
RPG, RPG ILE, RPGILE
asked by Mariodlg

  210 pts.

How to access all records in RPGILE

hi all, suppose i have a report with input criteria 'machine code' and requirement it that if i input a perticular 'machine code' then it should COME only that , otherwise all records of all 'machine codes' should come , in clp i use %WLDCRD for that. but i need to do it in rpgile , is there any...

View Answer   |  Dec 10 2008  5:21 AM GMT
RPG, RPG ILE, SETLL
asked by Ambrish 82

  275 pts.

How to get the row count of a PF with RPG ILE?

Hello, I'm looking for an example of how to get a row count of a PF from a ILE rpg program. Thanks everybody.

View Answer   |  Dec 10 2008  2:10 AM GMT
RPG, RPG ILE, RPGILE
asked by Mariodlg

  210 pts.

Clearing a PF record on AS/400

I'm chaining a field to a unique keyed PF. I'm getting a not found indicator so I'm trying to write the record but I receive a duplicate key error. How this can be I do not understand. A colleague suggested that a field (or fields) within the record might be a key of other LF's over the file and...

View Answer   |  Dec 9 2008  10:41 PM GMT
RPG, CHAIN, Physical File
asked by Floyd02

  270 pts.

rpg

I have created a subroutine to update a display file. key CHAINfile 90 *IN90 IFEQ *OFF MOVELfieldvalue screenvalue EXFMTscreen MOVELscreenvalue filevalue UPDATrecfmt of file ...

View Answer   |  Dec 9 2008  4:00 PM GMT
RPG, RPG Subroutine, RPG Display File
asked by Anderson123

  840 pts.

161 - 180 of 727