× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Tommy,
 
That did the trick.
 
Greg
 
-----Original Message-----
 
compile the program with COMMIT(*NONE) 
OR
in your program set the option:
 
C/exec sql
c+  Set Option Commit=*None
c/end-exec
 
Thanks,
Tommy Holden
 
 
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On
<mailto:rpg400-l-bounces@xxxxxxxxxxxx%5dOn>  Behalf Of Fleming, Greg
(ED)
Sent: Friday, July 08, 2005 10:00 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: SQL newbie question
 
 
I'm new to embedding SQL, and I have what seems like a silly problem.  I
did search the archives, but all the entries regarding problems with
delete statements in SQL had to do with the complexity of the statement,
wheras the following is rather simple, but doesn't seem to work.
 
 
 
Here's the statement:
 
C/Exec SQL delete from oebhxd   
C+ Where     ASItem = '90000'        
C/End-Exec                      
 
ASITEM is a 12 character field.
 
This works fine in interactive SQL.
When I run it embedded in SQLRPGLE, SQLSTT returns a '55019'.
What am I doing wrong ? 
 
Greg Fleming
 

 

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.