RPGLE Questions and Answers

Recent IT Questions

21 - 40 of 402

decimal data error

I declare time field in RPG as D btime    4  0 eval btime = 2400 this one i pass to a CL program with var type var(&tim) type(*dec) len(4,0) and this in turn passed to another RPG program D stime    4  0 when it comes to third program it has some hex char shown in debug as belo stime = 2_4_...

View Answer   |  Oct 20 2009  10:29 PM GMT
RPGLE, RPG, Decimal Data Error
asked by Nutangujar

  750 pts.

SQLRPGLE

I've Report to print using SQLRPGLE The Report criteria screen has around 15-20 select conditions...based on the conditions entered by the user, I build a query of type Select * from emp1 where val1 = ? and val2 =? and val3 = ? and........... This is the first time I'm dealing with so many select...

View Answer   |  Oct 14 2009  10:05 PM GMT
SQLRPGLE, SQL, RPGLE
asked by Nutangujar

  750 pts.

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

View Answer   |  Oct 13 2009  8:59 PM GMT
RPG ILE, RPG debugging, RPGLE
asked by Nitzinger

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

View Answer   |  Oct 13 2009  7:23 PM GMT
RPGLE, As/400 Object, RPG indicators
asked by Nutangujar

  750 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. Software/Hardware used: V5R4

View Answer   |  Oct 12 2009  2:58 PM GMT
RPGLE, V5R4, iSeries
asked by Old2new

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

View Answer   |  Oct 9 2009  9:41 PM GMT
RPGLE, DDS, iSeries DDS
asked by Rick53

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

View Answer   |  Oct 8 2009  4:43 PM GMT
RPG, RPGLE
asked by Nitzinger

  180 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? I have not been able to...

View Answer   |  Oct 1 2009  4:40 PM GMT
RPGLE, SQL
asked by MurrayInfoSys

  570 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 not have to press the...

View Answer   |  Sep 30 2009  6:36 PM GMT
RPGLE
asked by RonKoontz

  1355 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. Software/Hardware used: AS400 - RPGLE

View Answer   |  Sep 30 2009  5:06 PM GMT
AS/400, RPGLE
asked by AmberAS400

  5 pts.

Menua Option change

Opt  Object      Type      Library     Attribute   Text                             OBRPT       *MSGF     LIb1                     Report Trackin      OBRPT       *FILE      ...

View Answer   |  Sep 29 2009  3:27 PM GMT
RPGLE, AS/400, AS/400 Display File
asked by Nutangujar

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

View Answer   |  Sep 27 2009  6:22 PM GMT
RPGLE, INFDS
asked by Nutangujar

  750 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 ,...

Answer Question   |  Sep 25 2009  7:26 AM GMT
IBM Content Manager, API, iSeries Content Manager
asked by Byju

  5 pts.

what is SEQONLY(*YES) property

[strong]Hi,                                                                                                                                       i have a problem...

View Answer   |  Sep 24 2009  11:32 AM GMT
AS/400 programming, RPGLE
asked by Sreeraj

  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 Software/Hardware used: SQLRPGLE

View Answer   |  Sep 24 2009  2:24 AM GMT
SQL, RPGLE, AS/400 Subfiles
asked by Nutangujar

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

View Answer   |  Sep 22 2009  8:33 PM GMT
Rpgle - display file, RPGLE
asked by Nutangujar

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

View Answer   |  Sep 21 2009  10:23 PM GMT
RPGLE, RPG/400 Subfile, AS/400 Subfiles
asked by Nutangujar

  750 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. Software/Hardware used: i5 OS400 V5R4

View Answer   |  Sep 21 2009  3:11 PM GMT
RPGLE, ACQUIRE, workstation
asked by Eskdale

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

View Answer   |  Sep 15 2009  5:23 PM GMT
RPGLE Program, RPGLE, AS/400 programming
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.    Software/Hardware used: as/400, rpgle

View Answer   |  Sep 8 2009  8:14 PM GMT
RPGLE, SSL, AS/400
asked by BKZ

  5 pts.

21 - 40 of 402