3 static char *
_Cn1 =
"sensorcursor";
static _SQCURSOR *
_SQ1 = 0;
4 #line 1 "get_sensor_list.ec"
9 #line 2 "get_sensor_list.ec"
10 #line 1 "/usr/informix/incl/esql/sqlca.h"
84 #define SQLNOTFOUND 100
87 #line 3 "get_sensor_list.ec"
98 #line 10 "get_sensor_list.ec"
101 extern struct eens_rec
136 #line 46 "get_sensor_list.ec"
148 #line 54 "get_sensor_list.ec"
150 #line 54 "get_sensor_list.ec"
151 static struct sqlvar_struct _sqibind[] =
153 { 100, 50, 0, 0, 0, 0, 0, 0, 0 },
154 #line 54 "get_sensor_list.ec"
156 static struct sqlda _SD0 = { 1, _sqibind, 0, 1, 0 };
157 #line 54 "get_sensor_list.ec"
159 #line 54 "get_sensor_list.ec"
161 #line 54 "get_sensor_list.ec"
162 _iqdcopen(
_SQ1, &_SD0, (
char *)0, (
char *)0, 1);
163 #line 54 "get_sensor_list.ec"
175 #line 62 "get_sensor_list.ec"
177 #line 62 "get_sensor_list.ec"
178 static struct sqlvar_struct _sqobind[] =
180 { 100, 6, 0, 0, 0, 0, 0, 0, 0 },
181 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
182 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
183 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
184 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
185 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
186 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
187 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
188 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
189 { 100, 51, 0, 0, 0, 0, 0, 0, 0 },
190 { 100, 41, 0, 0, 0, 0, 0, 0, 0 },
191 { 102,
sizeof((bens_rec).post), 0, 0, 0, 0, 0, 0, 0 },
192 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
193 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
194 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
195 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
196 { 102,
sizeof((bens_rec).obstime), 0, 0, 0, 0, 0, 0, 0 },
197 { 100, 10, 0, 0, 0, 0, 0, 0, 0 },
198 { 100, 10, 0, 0, 0, 0, 0, 0, 0 },
199 { 100, 7, 0, 0, 0, 0, 0, 0, 0 },
200 { 100, 4, 0, 0, 0, 0, 0, 0, 0 },
201 { 100, 2, 0, 0, 0, 0, 0, 0, 0 },
202 { 100, 8, 0, 0, 0, 0, 0, 0, 0 },
203 { 100, 7, 0, 0, 0, 0, 0, 0, 0 },
204 { 100, 4, 0, 0, 0, 0, 0, 0, 0 },
205 { 100, 7, 0, 0, 0, 0, 0, 0, 0 },
206 { 100, 4, 0, 0, 0, 0, 0, 0, 0 },
207 { 100, 9, 0, 0, 0, 0, 0, 0, 0 },
208 { 100, 4, 0, 0, 0, 0, 0, 0, 0 },
209 #line 62 "get_sensor_list.ec"
211 static struct sqlda _SD0 = { 29, _sqobind, 0, 29, 0 };
212 static _FetchSpec _FS1 = { 0, 1, 0 };
213 #line 62 "get_sensor_list.ec"
214 _sqobind[0].sqldata = (bens_rec).
id;
215 #line 62 "get_sensor_list.ec"
216 _sqobind[1].sqldata = (bens_rec).pe1;
217 #line 62 "get_sensor_list.ec"
218 _sqobind[2].sqldata = (bens_rec).pe2;
219 #line 62 "get_sensor_list.ec"
220 _sqobind[3].sqldata = (bens_rec).dur;
221 #line 62 "get_sensor_list.ec"
222 _sqobind[4].sqldata = (bens_rec).t;
223 #line 62 "get_sensor_list.ec"
224 _sqobind[5].sqldata = (bens_rec).s;
225 #line 62 "get_sensor_list.ec"
226 _sqobind[6].sqldata = (bens_rec).e;
227 #line 62 "get_sensor_list.ec"
228 _sqobind[7].sqldata = (bens_rec).p;
229 #line 62 "get_sensor_list.ec"
230 _sqobind[8].sqldata = (bens_rec).type;
231 #line 62 "get_sensor_list.ec"
232 _sqobind[9].sqldata = (bens_rec).des;
233 #line 62 "get_sensor_list.ec"
234 _sqobind[10].sqldata = (bens_rec).det;
235 #line 62 "get_sensor_list.ec"
236 _sqobind[11].sqldata = (
char *) &(bens_rec).post;
237 #line 62 "get_sensor_list.ec"
238 _sqobind[12].sqldata = (bens_rec).new_report;
239 #line 62 "get_sensor_list.ec"
240 _sqobind[13].sqldata = (bens_rec).active;
241 #line 62 "get_sensor_list.ec"
242 _sqobind[14].sqldata = (bens_rec).ok;
243 #line 62 "get_sensor_list.ec"
244 _sqobind[15].sqldata = (bens_rec).
rfs;
245 #line 62 "get_sensor_list.ec"
246 _sqobind[16].sqldata = (
char *) &(bens_rec).obstime;
247 #line 62 "get_sensor_list.ec"
248 _sqobind[17].sqldata = (bens_rec).prod;
249 #line 62 "get_sensor_list.ec"
250 _sqobind[18].sqldata = (bens_rec).prod2ary;
251 #line 62 "get_sensor_list.ec"
252 _sqobind[19].sqldata = (bens_rec).obsag;
253 #line 62 "get_sensor_list.ec"
254 _sqobind[20].sqldata = (bens_rec).obsloc;
255 #line 62 "get_sensor_list.ec"
256 _sqobind[21].sqldata = (bens_rec).prov_avail;
257 #line 62 "get_sensor_list.ec"
258 _sqobind[22].sqldata = (bens_rec).final_avail;
259 #line 62 "get_sensor_list.ec"
260 _sqobind[23].sqldata = (bens_rec).ownag;
261 #line 62 "get_sensor_list.ec"
262 _sqobind[24].sqldata = (bens_rec).ownloc;
263 #line 62 "get_sensor_list.ec"
264 _sqobind[25].sqldata = (bens_rec).maintag;
265 #line 62 "get_sensor_list.ec"
266 _sqobind[26].sqldata = (bens_rec).maintloc;
267 #line 62 "get_sensor_list.ec"
268 _sqobind[27].sqldata = (bens_rec).init;
269 #line 62 "get_sensor_list.ec"
270 _sqobind[28].sqldata = (bens_rec).dbsource;
271 #line 62 "get_sensor_list.ec"
273 #line 62 "get_sensor_list.ec"
274 _iqcftch(
_SQ1, (
struct sqlda *)0, &_SD0, (
char *)0, &_FS1);
275 #line 62 "get_sensor_list.ec"
297 memcpy(&sens_record[
j],&bens_rec,
sizeof(
struct eens_rec));
305 #line 88 "get_sensor_list.ec"
307 #line 88 "get_sensor_list.ec"
308 #line 88 "get_sensor_list.ec"
310 #line 88 "get_sensor_list.ec"
312 #line 88 "get_sensor_list.ec"
int get_sensor_list(char *hb5, struct sens_rec *sens_record)
struct sqlca_s::sqlcaw_s sqlwarn