Hi friends,
I have created a .pgc file. This file needs some host variables. But I want to
declare the host variables in some
other header file and I just want to use it in .pgc file. The host variables
were declared in
a file eS_IMhost.h , but again the size of the host variables are defined in
another header file
namely mail_def.h. So I am including eS_IMhost.h and mail_def.h in my .pgc
file.
These files exist in the current directory and in a path where I have kept all
header files.
The path were specified in buildpg also.
Still I am getting error saying the host variable undeclared.
I have to declare the host variables in a header file and its size in another
file,
and I have to use them in .pgc
Example:
(1)MY a.pgc has
#include<sqlca.h>
#include<mail_def.h>
#include<eS_IMhost.h>
DB_Select()
{
Select name into :h_name from mylist;
}
(2) My eS_IMhost.h is
#include<sqlca.h>
#include<mail_def.h>
#include<eS_IMhost.h>
{
EXEC SQL BEGIN DECLARE SECTION;
char h_name[ESM_NAME_LEN +1];
EXEC SQL END DECLARE SECTION;
}
(3) My mail_def.h has
int ESM_NAME_LEN ;
Please give me solution as soon as possible to the following mail id
gomathir@technauts.com
bye
gomathi
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1