|
Greg, Type STRDBG UPDPROD(*YES) and run your program. The job log should tell you what the problem is. Also, the InfoCenter has lists of SQLSTT's in it. Matt -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Fleming, Greg (ED) Sent: Friday, July 08, 2005 11: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 Programmer/Analyst Everglades Direct, Inc. 720 International Parkway Sunrise, FL 33325 954.514.2258 954.851.1201 Fax gfleming@xxxxxxxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
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.