Guest.Visitor
What\'s the purpose of SQLDA and SQL_NUM? The program doesn\'t appear to use them.
Guest.Visitor
I am using sql in my RPG programs without including SQLDA within.
P.Weyer
I am the writer of the article and need to correct an inaccuracy in the article. Although the article is technically correct it is not completely accurate. The SQLDA and SQL_NUM definitions are in fact not required. This was pointed out to me by Kevin Brunk - Manager, Business Systems Development - The Butler Company. Thanks Kevin for the email pointing this out.
Guest.Visitor
Hi, SQLCOD = *Zeros shouldn\'t be used! Sometimes records are returned with SQL-Warnings (SQLCOD 1-99). Therefore it\'s better to use SQLCOD = 100 (Record not found) and SQLCOD < *Zeros (SQL-Error) SQLCOD is a field from SQLCA (SQL Communications Area) that is automatically copied into source code by the precompiler. SQLDA (SQL Definitions Area) is only neccessary with dynamic SQL when different fields are selected. Birgitta
Guest.Visitor
I thought SQL Code was deprecated in favor of SQL State a few years ago. Chris
Guest.Visitor
I believe this is a correct statement. We no longer use SQLCOD, we now use SQLSTT (SQL Status). If one continues to use SQLCOD, IIRCC, that in the QAQQINI file, the SQL_SUPPRESS_WARNINGS value needs to be set to *YES. And guess what that does? :-) Walker Powell
Please login to make comments.
User Rating: / 2
PoorBest 

WHITE PAPERS

The following White Papers can be found at the MC White Paper Center

 

 


   MC-STORE.COM