SQLRPGLE Questions and Answers

Recent IT Questions

1 - 20 of 26
<<PREVIOUS 1|2 NEXT>>

SQLRPGLE Cursors and Recursion

I'm trying to recursively call a PI in my SQLRPGLE program. Problem is, I get an SQLCODE error of -519 and I'm sure it has to do with cursors and the prepare statement in my PI. Here's the code: pprintPrograms    b      dprintPrograms    PI      d...

Answer Question   |  Nov 19 2009  11:09 PM GMT
SQLRPGLE, iSeries, SQL Cursors
asked by Dcantwell

  170 pts.

Convert RPGLE to SQLRPGLE

How do I convert RPGLE program to SQLRPGLE? Software/Hardware used: AS400

View Answer   |  Nov 12 2009  9:31 PM GMT
RPGLE, SQLRPGLE, RPGLE Program
asked by Nutangujar

  750 pts.

SQLRPGLE

I need to retrieve the RRN and use it within my RPGLE program. I have the Select RRN(file) statement, but I get a Character in Cast argument not valid when executing. Any suggestions? Software/Hardware used: iSeries RPGLE

View Answer   |  Oct 22 2009  9:09 PM GMT
SQLRPGLE, iSeries SQL
asked by Trishahles

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

Synon - Compilation

Hello Everybody, I would like to know whether it is possible to use “SQLRPGLE“ source types in Synon, I am currently using Synon “8.1SP1” version.  Can anyone explain the procedure to compile “SQLRPGLE” source type in Synon? Thanks & Regards Bibin George Software/Hardware used:...

View Answer   |  Oct 12 2009  4:37 PM GMT
Synon/2E, SQLRPGLE, Synon
asked by BibinGeorge

  110 pts.

Problem Running SQLRPGLE program in Batch: Works Fine Interactively

Hello all, We currently have a program that runs in batch. Last night, we had the following error occur: RNQ0103: The target for a numeric operation is too small to hold the result. The program works perfectly when run interactively. When the program was originially written, I compensated for...

View Answer   |  Oct 6 2009  6:27 PM GMT
iSeries RPG programming, Batch job, Error Messages
asked by Dcantwell

  170 pts.

progam change date updated for SQLRPGLE program

Can anyone tell me where I can fird the reason that the 'program last change date' is updated in an SQLRPGLE program when it is run?  It showed up on an audit and the auditors say it is unacceptable.  I am looking for proof that this the way it is from some kind of official source, or a way to...

View Answer   |  Oct 2 2009  7:21 PM GMT
AS/400, iSeries, Last modified
asked by Sodafountain

  25 pts.

Embedded SQL

In SQL RPGLE program, I declare a cursor using a view.. The view has name Emp_Pat_Dept_Data(EMPdata) the empdata is the AS400 name. In my cursor def which name I should use. Also for the fields referenced do I need to use the renamed field names in the view definition or I can use the field names...

View Answer   |  Sep 28 2009  9:29 PM GMT
Embedded SQL, SQLRPGLE
asked by Nutangujar

  750 pts.

SQL error

I've a cursor to fetch date from DB2/400...When date is stored as 0001-01-01, I get error - Year portion of the Date not in correct range. This is the default date my update program stores when user doesnt enter anything for date field. How can I bypass this error while fetching SQL cursor in my...

View Answer   |  Sep 27 2009  4:57 PM GMT
SQLRPGLE, DB2/400, DB2
asked by Nutangujar

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

SQLRPGLE - Prepare - Declare Cursor

I'm using Prepare, Declare SQL cursor in my SQLRPGLE program After Declare statement I receive SQL -312 - Which indicates to me that the SQL statement is not declared correctly. Is it something wrong with my query. I ran this query in SQL editor and went fine. I dun understand why not in the...

View Answer   |  Aug 25 2009  1:49 AM GMT
SQLRPGLE, SQL Cursors
asked by Nutangujar

  750 pts.

file user open exceptions for printer file

i'm opening a program defined printer file in SQLRPGLE.. i get error file is already open.... if that is the case, then i'm trying to write in that file but now this gives me exception that attempting to write in closed file...   Please help Software/Hardware used: SQLrpgle

View Answer   |  Aug 24 2009  8:12 PM GMT
SQLRPGLE, SQL Printing, SQL error messages
asked by Nutangujar

  750 pts.

Using SRCDBG with an SQLRPGLE module

I'm trying to debug a RPGLE module created with CRTSQLRPGI. The STRDBG program returns an error message stating the program "cannot be accessed". There is no DBGVIEW option on the CRTSQLRPGI command, so even if I get the debug to work. will I see any source data? Thanks. Software/Hardware used:...

View Answer   |  Aug 13 2009  6:32 PM GMT
SQLRPGLE, RPGLE, SQL
asked by Grp

  5 pts.

Fetching one cousor within DO loop of another cursor

Is the below scenerio possible, if yes then how? CREATE C1 CURSOR OPEN CURSOR C1 FETCH C1 CURSOR DOW SQLCOD = 0 (For Cursor C1) CREATE C2 CURSOR OPEN CURSOR C2 FETCH C2 CURSOR DOW SQLCOD = 0 (For Cursor C2) CLOSE CURSOR C2...

View Answer   |  Aug 6 2009  4:44 AM GMT
SQLRPGLE
asked by Soniswadesh

  5 pts.

Is SQL Commitment level extended to non SQL programs called

I have an SQLRPGLE program that calls an RPG program. I know that the SQLRPGLE program has an internal commitment control engine activated, but will it extend onto the RPG program I call from here?

View Answer   |  Jul 8 2009  10:16 AM GMT
SQL commitment control level, SQLRPGLE, RPG
asked by Ragenrags

  10 pts.

SQL in an SQLRPGLE program

I want to use embedded SQL in an SQLRPGLE program to search a file for a field entered in a screen to select data using the LIKE operand. This is my code C/EXEC SQL C+ DECLARE C1 CURSOR FOR SELECT * FROM F0101JN WHERE ALADDZ = :SZIP C+...

View Answer   |  Apr 10 2009  7:35 AM GMT
SQL/400, Embedded SQL, SQLRPGLE
asked by Alpfalpf

  25 pts.

RPGLE - Provide One-to-Many mapping

hi, I want to provide one-to-many mapping . consider 1 example, i have one-to-one mapping in Agent and Depot. bt i want, one Agent & Many Depot mapping. Means we can have one Agent with many Depot. using RPGLE or SQLRPGLE. I have one subfile where we can retrieve Agent, Agent name, and Depot...

View Answer   |  Mar 16 2009  11:23 AM GMT
RPGLE Program, SQLRPGLE, RPGLE
asked by 2342

  5 pts.

RPGLE Stored Proc to Reporting Services

Have SQLRPGLE program set-up to use cursor to return result set, want to use this to return table to MS Reporting Services get error message "low-order nibble of byte array offset 2451 is not valid. Byte Value OO. What does this mean and why not data back to client?

View Answer   |  Feb 17 2009  10:21 PM GMT
SQLRPGLE, Reporting Services 2005, RPGLE
asked by Oldmickey

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

Using the SQL IN clause in SQLRPGLE

Can I use a variable with the IN clause in an iSeries SQLRPGLE program? Can I use: WHERE CUSTID IN(:CUSTNUMS) Instead of: WHERE CUSTID IN(145,1600,352)

View Answer   |  Dec 18 2008  10:09 PM GMT
iSeries, iSeries development, SQLRPGLE
asked by PWMASI

  5 pts.

1 - 20 of 26
<<PREVIOUS 1|2 NEXT>>