Embedded SQL for Suse Linux
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Embedded SQL for Suse Linux Expand / Collapse
Author
Message
Posted 6/1/2006 11:43:46 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/10/2007 12:33:00 PM
Posts: 1, Visits: 1
I'm porting a program from an NCR platform to SUSE Linux that reads in a select statement from a file and outputs a delimited flat file. The code opens the connections, prepares the statement and does a describe to get the field information:

/* Log on. Prepare and describe the statement. */
EXEC SQL LOGON :LOGON_STRING;
if (SqlCA.SqlCode != 0)
return(8);

/********** PREPARE */
EXEC SQL PREPARE SEL_STMT FROM :SQL_STATEMENT;
if (SqlCA.SqlCode != 0) {
EXEC SQL LOGOFF;
exit(2);
}

/********** DESCRIBE */
strncpy (MYSQLDA.sqldaid, "SQLDA ", 8);
MYSQLDA.sqldabc = 0;
MYSQLDA.sqln = MAX_FIELDS - 1;
EXEC SQL DESCRIBE SEL_STMT INTO MYSQLDA;


What's happening is that the describe is coming back with a return code of zero but is not returning any data. The code and compile option (-g is the only option) are the same on both platforms so that's not the issue. Has anyone else encountered similar problems with using Suse Linux and embedded sql? Thanks in advance.
Post #4291
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 8:36am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.141. 10 queries. Compression Disabled.