Getting blank character when executing ESQL/C program [message #94414] |
Sun, 17 October 2004 01:52 |
Fahad
Messages: 8 Registered: May 2004
|
Junior Member |
|
|
Please help me with this issue.
I am executing a simple query using ESQL/C the result is blank character
please find the source below:
#include <stdio.h>
#include <string.h>
#define UNAME_LEN 20
#define PWD_LEN 40
EXEC SQL BEGIN DECLARE SECTION;
char *username = "SCOTT";
char *password = "TIGER";
char *dptname;
varchar deptname[[14]];
int deptno;
EXEC SQL END DECLARE SECTION;
EXEC SQL INCLUDE SQLCA.H;
void main()
{
int i;
deptno = 40;
dptname = " | |