Pro*C Question
From: paddy_nyr <mpprpp_at_yahoo.com>
Date: Fri, 22 Oct 2004 18:15:23 -0400
Message-ID: <2ttettF23ts0bU1_at_uni-berlin.de>
[Quoted] [Quoted] I'm new to Pro*C/C in general so can anyone give me some insite on where I might be going wrong?
[Quoted] This is old code that I'm trying to modify.
Date: Fri, 22 Oct 2004 18:15:23 -0400
Message-ID: <2ttettF23ts0bU1_at_uni-berlin.de>
[Quoted] [Quoted] I'm new to Pro*C/C in general so can anyone give me some insite on where I might be going wrong?
[Quoted] This is old code that I'm trying to modify.
Thanks
int
Test ( D_REPORT_TABLE *reqInfo
)
(
EXEC SQL BEGIN DECLARE SECTION
chat reportType[4];
EXEC SQL END DECLARE SECTION; [Quoted] memset( &reporType, 0X00, sizeof ( reporType )); [Quoted] strcpy(( char * ) reporType,rTrim(reqInfo->report_code));
printf('What is in %s',reportType);
[Quoted] printf('What is in %s',reqInfo->report_code);
if ( *reportType == 'NS'){
printf('I have an NS report ');
};
);
[Quoted] Why do I get no output on my 1st printf statemnet, but on the
2nd printf I do get the result set I'm looking for? It should print the
value 'NS'.
Also why doesn't my if statment work?
Thanks Patrick Received on Sat Oct 23 2004 - 00:15:23 CEST