RPGILE Questions


CF03, CF12 doesnt work
hi can you please help me…why CF12 and CF03 are not working in my display file. file is - A*%%EC                                                        A                                      DSPSIZ(24 80 *DS3)     A                                      INDARA                 A          R ORDER                                            A*%%TS  SD  20090825  13321843       REL-V5R4M0  2225722-WDS A  03                                  CF03(03 ‘Exit’)        A  04                                  CF04(04 ‘Prompt’)      A  12                                  CF12(12 ‘Previous’)    A                                      RTNCSRLOC (&v1, &v2)  A                                      CSRLOC(ROW        COL) A            [...]

Answer Question   |  September 1, 2009  5:27 PM
iSeries, iSeries programming commands, RPGILE
asked by:
895 pts.

RPG ILE Day of Week
Are there alternate ways to determine the day of the week. I have the following formula - DayOfWeek = %Subst((‘Sunday ‘ ‘Monday ‘ ‘Tuesday ‘ ‘Wednesday’ ‘Thursday ‘ ‘Friday ‘ ‘Saturday ‘ ):(((%Rem(%Diff(%Date():%Date(’1941-12-07′):*D):7)+1)*9))-8:9);

Answer Question   |  August 13, 2009  6:56 PM
AS/400, RPG, RPGILE
asked by:
1,245 pts.

RPGILE Calls(Static&Dynamic)
What are the static and dynamic calls in RPGILE.

Answer Question   |  August 10, 2009  12:06 PM
RPGILE, RPGILE Dynamic Calls, RPGILE Static Calls
asked by:
1,635 pts.

LIKE FUNCTION IN RPGILE
Hi All.. suppose i want to access all records in wich any field begins with ‘S’ … how can i do this in RPG ILE without using %subst Please help me.. Regards Ambrish

Answer Question   |  July 28, 2009  5:31 AM
AS/400, RPG ILE, RPGILE
asked by:
310 pts.

RPG ILE ending program properly on an error
Hello, Could someone please help me with this? 1. I have an ever running job that calls a particular ILE program (PGM A) to do some XML parsing and composing. 2. PGM A calles another program PGM B (which in turn has modules MOD B, MOD C and a NOMAIN module MOD D binded to [...]

Answer Question   |  August 1, 2009  5:34 PM
RPG, RPG ILE, RPGILE
asked by:
55 pts.

converting ILE legacy code to a GUI based system
We are trying to move out of the old “GREEN SCREEN” code. Our software company is heading towards a GUI interface, but we currently have approx 250 custom programs that would need to be converted. Just about all of our legacy code is written in RPLGE / CLLE. We have a few simple apps that [...]

Answer Question   |  June 29, 2009  3:04 PM
AS/400, Conversion functions, ILE RPG, RPGILE, RPGLE
asked by:
3,890 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.

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.

RPG indicators
Pls tell me how to pass values to a group of indicators at once in a single statement in RPG and RPGILE with example..thanks

Answer Question   |  June 18, 2011  8:43 AM
RPG, RPG indicators, RPGILE
asked by:
1,150 pts.

Report Layout Utility
how can i pass the values in my subfile to my printer file using rpgile….

Answer Question   |  July 3, 2009  7:32 AM
AS/400 printing, Report Layout Utility, RPGILE, Subfile
asked by:
25 pts.

How to find out number of members in Source file ?
Hi All, i want to find out how many number of members are available in one source file. For example i have created one source file (QRPGSRC) in (LIBRARY1) now i want to find how many sources are available in LIBRARY1/QRPGSRC this source in my RPGILE program. Do we have any AS400 command or API [...]

Answer Question   |  May 17, 2009  9:15 AM
AS/400 commands, CL, QRPGSRC, RPGILE
asked by:
695 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.

RPG ILE Character Hex Value to Decimal
Hi, I have a flat file with hexidecimal characters after certain characters. For Example : “MY NAME IS BEN ~0A” The “0A” represents the hex for 10 (decimal) whitch means 10 spaces. My problem is when i have “0A” in a alpha numeric workfield (length 2), how can i use it as a hex value? [...]

Answer Question   |  April 30, 2009  3:36 PM
Character, Hexadecimal values, RPG ILE, RPGILE
asked by:
20 pts.

Difference between CPYTOIMPF and CPYF command
hi, I am working on AS400- RPGILE can anybody please tell me whet is the difference between command CPYTOIMPF an CPYF I would really appreciate if you explane with example. Thanks & Regards Ambrish

Answer Question   |  April 20, 2009  11:57 AM
AS/400 commands, CPYF, CPYTOIMPF, RPGILE
asked by:
310 pts.

RPGIII to RPGILE Conversion
Someone out there must hae done this conversion. We are planning on doing this conversion to ILE sometime and would like to know some of the issues. We are planning on using the IBM conversion tool, which I believe can do most of the programs, leaving only a few to “hand” code. What we are [...]

Answer Question   |  April 8, 2009  5:33 AM
IBM conversion tool, RPG, RPG III, RPGILE
asked by:
980 pts.

Refresh a SQL View in ILE
I have created a view and am using in an ILE module. I have updated one of the files that the view is built with. How do I refresh the View to see this record the next time I run the SQL view? Is there a CREATE OR REPLACE VIEW in RPGILE? Thank you.

Answer Question   |  April 7, 2009  5:05 PM
AS/400 SQL View, RPGILE, SQL View
asked by:
25 pts.

rpg/400
I am not able to send the messages to message subfile.. i am able to compile my rpgile program sucessfully… please find below displayfile and rpgile code for your reference so please advice. display file. A R MSGRCD SFL A*%%TS SD 20090407 073131 KSS991U REL-V4R4M0 5769-PW1 A SFLMSGRCD(24) A MSGKEY SFLMSGKEY A SFPGMQ SFLPGMQ(10) A [...]

Answer Question   |  April 8, 2009  4:31 PM
iSeries RPG programming, RPG/400, RPGILE
asked by:
265 pts.

rpg/400
I have a rpgile (XOP560) program as below. compile sucessfully and while calling program displaying screen but once come out of the screen using f3 i am getting error as below. Message ID . . . . . . : CEE9901 Severity . . . . . . . : 30 Message type . . [...]

Answer Question   |  April 6, 2009  2:54 PM
RPG Error Messages, RPG/400, RPGILE
asked by:
265 pts.

RPG/400
i have a field in PF OHPODT 7 0 one more field in other PF DSORDD 8 A i need to move data from OHPODT to DSORDD in dateformat(CCYYMMDD) i am not sure about dateformat in OHPODT but in this field i can see only 0 value. Please advice me in RPGILE which way to [...]

Answer Question   |  April 9, 2009  11:42 AM
AS/400, DSORDD, RPGILE
asked by:
265 pts.

rpg/400
can yu advice me how to change date format from mmddyyyy to yyyymmdd in rpgile. Please advice..

Answer Question   |  April 7, 2009  2:59 PM
RPG/400, RPGILE
asked by:
265 pts.