COMPILE C PROGRAM IN AIX WITH TERADATA SQLs

Tools
N/A

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 has

void 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 nothing

Thanks and sorry my bad english
2 REPLIES

Re: COMPILE C PROGRAM IN AIX WITH TERADATA SQLs

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
N/A

Re: COMPILE C PROGRAM IN AIX WITH TERADATA SQLs

Thanks I will try it.