All Forums Tools
kajum 2 posts Joined 08/09
13 Aug 2009
COMPILE C PROGRAM IN AIX WITH TERADATA SQLs

hi,I want to compile a program in C. It have a multiple calls to teradata. I have no idea how to compile in Aix.The compiler that I should be use is cc.I tried cc -G -KPIC tdsfbd0358.c this generates a tdsfbd0358.i and after I have no Idea what I have to make, a link? how? help please?Here, I show a sample code of sentences that my program hasvoid Fin (int rc) { if (rc != 0 && ProcessId > 0) { EXEC SQL RollBack; if (SQLCODE != 0) rc = -2048; Num = rc; EXEC SQL Update TSFMARNU Set COD_RC = :Num ,TIM_FMODIFIC = Current_TimeStamp Where COD_ID = :ProcessId; if (SQLCODE != 0) rc = 199; EXEC SQL Commit; if (SQLCODE != 0) rc = 199; } Mssg (23, Cnt_Total); Mssg (21, rc); EXEC SQL LOGOFF; exit (rc); }/*I'm looking in forum and I don't found nothingThanks and sorry my bad english

Raja_KT 1246 posts Joined 07/09
13 Aug 2009

Hi,Bad english is not an issue so long as technology is good :). I suggest you can go to C forum for unix and get the right answer.Rgds,Raja

Raja K Thaw
My wiki: http://en.wikipedia.org/wiki/User:Kt_raj1
Street Children suffer not by their fault. We can help them if we want.

kajum 2 posts Joined 08/09
13 Aug 2009

Thanks I will try it.

You must sign in to leave a comment.