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