3 static const char _Cn2[] =
"segcursor";
4 static const char _Cn1[] =
"selectseg";
13 #line 1 "/opt/informix/incl/esql/sqlca.h"
87 #define SQLNOTFOUND 100
91 #define sqlca ifmxsqlca
103 extern int4 * ifx_sqlcode(
void);
104 extern struct sqlca_s * ifx_sqlca(
void);
106 #define SQLCODE (*(ifx_sqlcode()))
107 #define SQLSTATE ((char *)(ifx_sqlstate()))
108 #define sqlca (*(ifx_sqlca()))
117 #line 103 "/opt/informix/incl/esql/sqlca.h"
134 #line 11 "get_pos.ec"
149 #line 18 "get_pos.ec"
151 #line 22 "get_pos.ec"
152 sqli_prep(ESQLINTVERSION,
_Cn1,
"select segid from fgroup_seg where fgroupid matches '*_F' and segid matches ?",(ifx_literal_t *)0, (ifx_namelist_t *)0, 2, 0, 0 );
153 #line 22 "get_pos.ec"
166 #line 31 "get_pos.ec"
168 #line 31 "get_pos.ec"
169 sqli_curs_decl_dynm(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 512),
_Cn2, sqli_curs_locate(ESQLINTVERSION,
_Cn1, 513), 0, 0);
170 #line 31 "get_pos.ec"
182 #line 39 "get_pos.ec"
184 #line 39 "get_pos.ec"
185 static ifx_sqlvar_t _sqibind[] =
187 { 100, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
188 #line 39 "get_pos.ec"
190 static ifx_sqlda_t _SD0 = { 1, _sqibind, {0}, 1, 0 };
191 #line 39 "get_pos.ec"
192 _sqibind[0].sqldata = hb5i;
193 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 768), &_SD0, (
char *)0, (
struct value *)0, 1, 0);
194 #line 39 "get_pos.ec"
210 #line 51 "get_pos.ec"
212 #line 51 "get_pos.ec"
213 static ifx_sqlvar_t _sqobind[] =
215 { 100, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
216 #line 51 "get_pos.ec"
218 static ifx_sqlda_t _SD0 = { 1, _sqobind, {0}, 1, 0 };
219 static _FetchSpec _FS1 = { 0, 1, 0 };
220 #line 51 "get_pos.ec"
221 _sqobind[0].sqldata = basin;
222 sqli_curs_fetch(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 768), (ifx_sqlda_t *)0, &_SD0, (
char *)0, &_FS1);
223 #line 51 "get_pos.ec"
248 if((c[0]==
'L' && c[1]==
'H') ||
249 (c[1]==
'L' && c[0]==
'H'))
252 else if((c[0]==
'O' && c[1]==
'H') ||
253 (c[1]==
'O' && c[0]==
'H'))
256 else if((c[0]==
'H' && c[1]==
'R') ||
257 (c[1]==
'H' && c[0]==
'R'))
260 else if((c[0]==
'H' && c[1]==
'R') ||
261 (c[1]==
'H' && c[0]==
'R'))
264 else if((c[0]==
'O' && c[1]==
'L') ||
265 (c[1]==
'O' && c[0]==
'L'))
269 printf(
"could not resolve %c %c\n",c[0],c[1]);
276 #line 100 "get_pos.ec"
278 #line 100 "get_pos.ec"
279 sqli_curs_close(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION,
_Cn2, 768));
280 #line 100 "get_pos.ec"
285 strcpy(drn,&basin[5]);
289 #line 106 "get_pos.ec"
char * get_pos(char *hb5)
struct sqlca_s ifx_sqlca_t
sprintf(fbuf,"/usr/mapper/nexrad/ngrid.%02d-%02d-%02d-%02d", year, month, day, hour)
printf("fbuf is %s\n", fbuf)
struct sqlca_s::sqlcaw_s sqlwarn