RPGLE Questions


Can one use strdbg to trace code through a interactive program that allows update to display screens
Can one use strdbg to trace code through a interactive program that allows update to display screens. I can get  the add item and delete item part to work but not the update/change function which craps out with a error message. There seems no reason for this message, but there has to be a reason [...]

Answer Question   |  October 16, 2009  8:59 PM
DDS, RPG Date Formatting, RPG debugging, RPG ILE, RPGLE, STRDBG
asked by:
385 pts.

RPGLE
I’ve display file in RPGLE program… I want to display function key F19=View History based on certain condition. I planned to use indicator to swith on if the condion meets and the option will be displayed … the problem here is all 01 to 99 indicators, KC,KE,KG,KJ,KQ,U2 are already used by the program. how to condition [...]

Answer Question   |  October 26, 2009  7:23 PM
As/400 Object, RPG indicators, RPGLE
asked by:
895 pts.

Retrieve error message in RPG
I have an interactive RPGLE program ,PGMA, that calls another RPG program, RPG3P, based on a parameter and that job is not interactive. If RPG3P aborts how can I find out what the error mesage was? The job log does not give enough information to help find the problem.

Answer Question   |  October 14, 2009  2:58 PM
iSeries, RPGLE, V5R4
asked by:
25 pts.

How do I process Horizontal Subfiles in a particular order?
I have a data entry screen for serial numbers. Each serial number is 10 characters in length. Therefore I created a horizontal subfile using SFLLIN. This puts spaces between the records equally. The result is that I have X number of columns. When I enter the data, the entry is from left to right. But [...]

Answer Question   |  October 12, 2009  9:41 PM
DDS, iSeries DDS, RPGLE
asked by:
110 pts.

Why do I have such a problem with passing to a program a 8 byte field using a parm.
Why do I have such a problem with passing to a program a 8 byte field using a parm. Parm field is define as packed(8,0) but as soon as the program tries to acquired the parm I get a Decimal data error. *ENTRY        PLIST                                                            PARM                    NWDATE            8 0 EVAL      TodayDate = NWDATE           <=== [...]

Answer Question   |  October 10, 2009  4:43 PM
RPG, RPGLE
asked by:
385 pts.

Cal I load a record SET into a work file using SQL within RPGLE?
ALL - I have to process a set of Inventory Transactions based on W/H, Product, From Date, and To Date. Normally, I would jump into a Do Loop; read the SQL cursor; write the record to a work file; process until EOF. Can an SQL statement do all of that for me in one statement? [...]

Answer Question   |  October 1, 2009  4:40 PM
RPGLE, SQL
asked by:
940 pts.

Error Reset Key
I have a request that I have not done before. In my display file I use the IBM messages when there is an error. When the screen is displayed again it displays the field in question highlighted and then the user has to press the error reset key. Is there away so the user does [...]

Answer Question   |  October 20, 2009  6:36 PM
RPGLE
asked by:
1,780 pts.

Move file on windows folder through FTP script in RPGLE
I am trying to move a file from one folder to another on windows by writing a FTP script in RPGLE. But my file path is too long to come in one line in rpg source. Please can you let me know, how to continue the command in second line.

Answer Question   |  June 2, 2011  5:06 PM
AS/400, RPGLE
asked by:
5 pts.

Menua Option change
Opt  Object      Type      Library     Attribute   Text                             OBRPT       *MSGF     LIb1                     Report Trackin      OBRPT       *FILE       Lib1      DSPF        Admissions Menu                  OBRPT       *MENU     Lib1      PGM                                                                                                               I’ve to add new menu option in the Menu file OBRPT. I change the DSPF OBRPT however I dont understand if I have to change PGM of type *menu…if yes then how to do that? -NG     

Answer Question   |  September 29, 2009  3:27 PM
AS/400, AS/400 Display File, RPGLE
asked by:
895 pts.

INFDS in RPGLE
I declare INFDS in my program for a display file and use it to detect what key is pressed DChkfil           DS                       D key_pres              369    369         This was working earlier and suddenly now I see in debug that the key_press variable is not working as earlier…… the variable shows one highlighted portion when i press F11 [...]

Answer Question   |  September 29, 2009  6:22 PM
INFDS, RPGLE
asked by:
895 pts.

iSeries Content Manager API Error
I am trying to archive PDF document in iseries Content Manager V5.1 using the APIs provided by IMB in the RPGLE program. The SimLibStoreNewObject is giving error when the ObjectSize parameter is passed with a value 490KB or above. If the ObjectSize parmater is passed as any value below 490KB , even zero the API [...]

Answer Question   |  December 17, 2009  7:26 AM
API, IBM Content Manager, iSeries Content Manager, RPGLE
asked by:
5 pts.

what is SEQONLY(*YES) property
[strong]Hi,                                                                                                                                       i have a problem with my program which was running successfully on the previous days. Every time I try to run the program the job fails. [/strong] [strong]The error in spool files is as shown below Message . . . . : Open of member DTICARRX was changed to SEQONLY(*NO). [/strong] [strong]Cause . [...]

Answer Question   |  September 24, 2009  11:32 AM
AS/400 programming, RPGLE
asked by:
20 pts.

Page at a time subfile
I want to code loading a single page subfile in SQLRPGLE. How do I handle the page up and page down key, posotion to in that program? thanks, NG

Answer Question   |  October 21, 2009  2:24 AM
AS/400 Subfiles, RPGLE, SQL, SQLRPGLE
asked by:
895 pts.

display file – window RPGLE
I have a window for a display file       whenevr i display field level err message the message appears outside the window…. how will i get it inside the window at the bottom? @depnum        11Y 4B 11 18 A 41                                  ERRMSG(‘department number is required.’)   thanks, ng

Answer Question   |  September 23, 2009  8:33 PM
RPGLE, Rpgle - display file
asked by:
895 pts.

subfile in RPGLE
i have indicator to show fields in a row red in subfile… when i select some option say 5 – view against this row, it displays necessary details. now affter dispalying this when i return back to existing screen, i update SFL to make the selected option 5 blank, and redisplay the file…..however this time it doesnt [...]

Answer Question   |  September 24, 2009  10:23 PM
AS/400 Subfiles, RPG/400 Subfile, RPGLE
asked by:
895 pts.

5250 job initiation
Can anyone remember how to start a job (e.g. and enquiry) on a 5250 workstation either from another session, releasing that session, or from a submitted job.   I have used ACQ and REL in the dim distant past but cannot member  if this is possible.

Answer Question   |  September 23, 2009  3:11 PM
ACQUIRE, RPGLE, workstation
asked by:
5 pts.

How do I call an API which is in a service program
I hope somebody can shed some light on the following. I need to call an API “QjoRtvJrnReceiverInformation” which is in service program QJOURNAL. I am not new to ILE but experience of using service programs and using API’s within service programs is limited Do I need to code all the ‘D’ specs and call the [...]

Answer Question   |  September 16, 2009  5:23 PM
AS/400 programming, RPGLE, RPGLE Program
asked by:
Djb
20 pts.

secure socket written in RPGLE
I am having a sporadic  issues with a secure socket program written in RPGLE.  The program is ending before a response is recieved from the reqeusted server.   

Answer Question   |  October 29, 2009  8:14 PM
AS/400, RPGLE, SSL
asked by:
BKZ
5 pts.

LIKE function in RPGLE
can i use like function instead of using subst.in rpgle

Answer Question   |  September 8, 2009  2:32 AM
LIKE statement, RPGLE
asked by:
5 pts.

Problem with & in RPGLE
I’m using XML-SAX in a RPGLE-program to read an XML-file which works pretty fine. Though, when I come to an entity with “Boys ”&” Girls” (I added extra “ in this example between the “&” just to make it visual)  i run into trouble. The handler does not seem to recognise anything after “Boys” and the stringlength is [...]

Answer Question   |  January 13, 2011  9:10 AM
RPGLE, XML, XML-SAX
asked by:
5 pts.