-
Notifications
You must be signed in to change notification settings - Fork 0
/
swfile.h
579 lines (465 loc) · 16 KB
/
swfile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
#define LINE_LENGTH 100
#define TOTAL_LINES 50
#define SIZE_NAME 30
#define SIZE_ADDRESS 30
#define SIZE_DATIME 8
#define SIZE_JOIC 2
#define SIZE_RUN 2
#define SIZE_UID 16
#define PRIM_RECORD_SIZE (sizeof fileio.record)
#define SERV_RECORD_SIZE (sizeof servio.record)
#define DEFAULT_FILE_NAME ".dat"
#define CLASSKEYLEN 16
#define PARTKEYLEN 13
struct XABKEY lstfrwd_key,lstrev_key,joic_key,run_key,name_key;
void PrimaryFileInit(char *);
/*
struct timebuff
{
uint32 b1,b2;
};
*/
struct primary_rec {
char name[SIZE_NAME+1];
char address[SIZE_ADDRESS+1];
char shire[20];
uint16 joic_no;
uint16 run;
char suburb[20];
char state[4];
char postcode[5];
char p_address1[31];
char p_address2[31];
char b_phone[11];
char trucacc[4];
char head[3];
char h_phone[11];
char model[11];
char contpan[11];
char blowmake[15];
char blowno[10];
char pumpmake[15];
char pumpno[10];
char pumphead[3];
char famof[3];
struct timebuff inst_date;
int16 reclen;
};
struct iorec
{
struct primary_rec record;
char lines[TOTAL_LINES][LINE_LENGTH];
}fileio;
struct filestruct PrimFile;
#ifdef INC_INITS
void PrimaryFileInit(fn) char *fn;
{
PrimFile.fab = cc$rms_fab;
PrimFile.fab.fab$b_bks = 16;
PrimFile.fab.fab$l_dna = DEFAULT_FILE_NAME;
PrimFile.fab.fab$b_dns = sizeof DEFAULT_FILE_NAME -1;
PrimFile.fab.fab$b_fac = FAB$M_DEL | FAB$M_GET | FAB$M_PUT | FAB$M_UPD;
PrimFile.fab.fab$l_fna = fn;
PrimFile.fab.fab$b_fns = strlen(fn);
PrimFile.fab.fab$l_fop = FAB$M_CIF;
PrimFile.fab.fab$w_mrs = 0; /*RECORD_SIZE; */
PrimFile.fab.fab$b_org = FAB$C_IDX;
PrimFile.fab.fab$b_rat = FAB$M_CR;
PrimFile.fab.fab$b_rfm = FAB$C_VAR; /*FAB$C_FIX; */
PrimFile.fab.fab$b_shr = FAB$V_SHRDEL | FAB$V_SHRGET | FAB$V_SHRPUT | FAB$V_SHRUPD; /*FAB$M_NIL; */
PrimFile.fab.fab$l_xab = &joic_key;
PrimFile.rab = cc$rms_rab;
PrimFile.rab.rab$l_fab = &PrimFile.fab;
joic_key = cc$rms_xabkey;
joic_key.xab$b_dtp = XAB$C_BN2;
joic_key.xab$b_flg = 0;
joic_key.xab$w_pos0 = ((char *) &fileio.record.joic_no - (char *)&fileio.record) ;
joic_key.xab$b_siz0 = SIZE_JOIC;
joic_key.xab$b_ref = 0;
joic_key.xab$l_nxt = &lstfrwd_key;
lstfrwd_key = cc$rms_xabkey;
lstfrwd_key.xab$b_dtp = XAB$C_STG;
lstfrwd_key.xab$b_flg = XAB$M_DUP| XAB$M_CHG;
lstfrwd_key.xab$w_pos0 = ((char *) &fileio.record.name - (char *) &fileio.record) ;
lstfrwd_key.xab$b_siz0 = SIZE_NAME;
lstfrwd_key.xab$w_pos1 = ((char *) &fileio.record.joic_no - (char *)&fileio.record) ;
lstfrwd_key.xab$b_siz1 = SIZE_JOIC;
lstfrwd_key.xab$b_ref = 1;
lstfrwd_key.xab$l_nxt = &lstrev_key;
lstrev_key = cc$rms_xabkey;
lstrev_key.xab$b_dtp = XAB$C_DSTG;
lstrev_key.xab$b_flg = XAB$M_DUP | XAB$M_CHG;
lstrev_key.xab$w_pos0 = ((char *) &fileio.record.name - (char *) &fileio.record) ;
lstrev_key.xab$b_siz0 = SIZE_NAME;
lstrev_key.xab$w_pos1 = ((char *) &fileio.record.joic_no - (char *)&fileio.record) ;
lstrev_key.xab$b_siz1 = SIZE_JOIC;
lstrev_key.xab$b_ref = 2;
lstrev_key.xab$l_nxt = &run_key;
run_key = cc$rms_xabkey;
run_key.xab$b_dtp = XAB$C_BN2;
run_key.xab$b_flg = XAB$M_DUP | XAB$M_CHG;
run_key.xab$w_pos0 = ((char *)&fileio.record.run - (char *)&fileio.record);
run_key.xab$b_siz0 = SIZE_RUN;
run_key.xab$b_ref = 3;
run_key.xab$l_nxt = &name_key;
name_key = cc$rms_xabkey;
name_key.xab$b_dtp = XAB$C_STG;
name_key.xab$b_flg = XAB$M_DUP | XAB$M_CHG;
name_key.xab$w_pos0 = ((char *) &fileio.record.name - (char *) &fileio.record) ;
name_key.xab$b_siz0 = SIZE_NAME;
name_key.xab$b_ref = 4;
}
#endif
struct service_rec {
uint16 joic_no;
struct timebuff service_datetime;
char ascdate[SIZE_UID+1];
char tech[21];
char clar1[3];
char clar2[3];
char ph1[4];
char ph2[4];
char aersludg[3];
char sedsludg[3];
char do1[4];
char do2[4];
char sed[2];
char rcl[4];
char tanksludg[4];
char chlorexi[4];
char chlotrep[4];
char blowsoun[9];
char blowfilt[2];
char odour[7];
char pump[2];
char watermet[7];
char fec[6];
char settle[6];
char sv[6];
char ss[4];
char sr[4];
char scum_rem[4];
int16 reclen;
};
struct serviorec
{
struct service_rec record;
char lines[TOTAL_LINES][LINE_LENGTH];
}servio;
struct filestruct ServFile;
struct XABKEY srvfrwd_key,srvrev_key,srvjoic_key;
#ifdef INC_INITS
void ServiceFileInit(fn) char *fn;
{
ServFile.fab = cc$rms_fab;
ServFile.fab.fab$b_bks = 16;
ServFile.fab.fab$l_dna = DEFAULT_FILE_NAME;
ServFile.fab.fab$b_dns = sizeof DEFAULT_FILE_NAME -1;
ServFile.fab.fab$b_fac = FAB$M_DEL | FAB$M_GET | FAB$M_PUT | FAB$M_UPD;
ServFile.fab.fab$l_fna = fn;
ServFile.fab.fab$b_fns = strlen(fn);
ServFile.fab.fab$l_fop = FAB$M_CIF;
ServFile.fab.fab$w_mrs = 0; /*RECORD_SIZE; */
ServFile.fab.fab$b_org = FAB$C_IDX;
ServFile.fab.fab$b_rat = FAB$M_CR;
ServFile.fab.fab$b_rfm = FAB$C_VAR; /*FAB$C_FIX; */
ServFile.fab.fab$b_shr = FAB$V_SHRDEL | FAB$V_SHRGET | FAB$V_SHRPUT | FAB$V_SHRUPD; /*FAB$M_NIL; */
ServFile.fab.fab$l_xab = &srvjoic_key;
ServFile.rab = cc$rms_rab;
ServFile.rab.rab$l_fab = &ServFile.fab;
srvjoic_key = cc$rms_xabkey;
srvjoic_key.xab$b_dtp = XAB$C_BN2;
srvjoic_key.xab$b_flg = XAB$M_DUP; /* 0; */
srvjoic_key.xab$w_pos0 = ((char *) &servio.record.joic_no - (char *)&servio.record) ;
srvjoic_key.xab$b_siz0 = SIZE_JOIC;
srvjoic_key.xab$b_ref = 0;
srvjoic_key.xab$l_nxt = &srvfrwd_key;
srvfrwd_key = cc$rms_xabkey;
srvfrwd_key.xab$b_dtp = XAB$C_STG;
srvfrwd_key.xab$b_flg = XAB$M_CHG;
srvfrwd_key.xab$w_pos0 = ((char *) &servio.record.joic_no - (char *)&servio.record) ;
srvfrwd_key.xab$b_siz0 = SIZE_JOIC;
srvfrwd_key.xab$w_pos1 = ((char *) &servio.record.ascdate - (char *) &servio.record) ;
srvfrwd_key.xab$b_siz1 = SIZE_UID;
srvfrwd_key.xab$b_ref = 1;
srvfrwd_key.xab$l_nxt = &srvrev_key;
srvrev_key = cc$rms_xabkey;
srvrev_key.xab$b_dtp = XAB$C_DSTG;
srvrev_key.xab$b_flg = XAB$M_CHG;
srvrev_key.xab$w_pos0 = ((char *) &servio.record.joic_no - (char *)&servio.record) ;
srvrev_key.xab$b_siz0 = SIZE_JOIC;
srvrev_key.xab$w_pos1 = ((char *) &servio.record.ascdate - (char *) &servio.record) ;
srvrev_key.xab$b_siz1 = SIZE_UID;
srvrev_key.xab$b_ref = 2;
}
#endif
struct inventory_rec {
char part_code[PARTKEYLEN+1];
char class[CLASSKEYLEN+1];
char part_no[16];
char description[31];
char units[6];
float price;
struct timebuff purchase_dt1;
char company1[51];
char salesman1[31];
float price1;
struct timebuff purchase_dt2;
char company2[51];
char salesman2[31];
float price2;
struct timebuff update_dt[5];
float update_fact[5];
};
struct inventory_key0_rec {
char part_code[PARTKEYLEN];
};
struct filestruct inventory_file;
struct inventory_rec inventory_buff;
struct inventory_key0_rec inventory_listkey;
struct XABKEY invfrwd_key,invrev_key,invclass_key;
#ifdef INC_INITS
void InventoryFileInit(fn) char *fn;
{
inventory_file.fab = cc$rms_fab;
inventory_file.fab.fab$b_bks = 8;
inventory_file.fab.fab$l_dna = DEFAULT_FILE_NAME;
inventory_file.fab.fab$b_dns = sizeof DEFAULT_FILE_NAME -1;
inventory_file.fab.fab$b_fac = FAB$M_DEL | FAB$M_GET | FAB$M_PUT | FAB$M_UPD;
inventory_file.fab.fab$l_fna = fn;
inventory_file.fab.fab$b_fns = strlen(fn);
inventory_file.fab.fab$l_fop = FAB$M_CIF;
inventory_file.fab.fab$w_mrs = sizeof inventory_buff; /* RECORD_SIZE;*/
inventory_file.fab.fab$b_org = FAB$C_IDX;
inventory_file.fab.fab$b_rat = FAB$M_CR;
inventory_file.fab.fab$b_rfm = FAB$C_FIX;
inventory_file.fab.fab$b_shr = FAB$V_SHRDEL | FAB$V_SHRGET | FAB$V_SHRPUT | FAB$V_SHRUPD; /*FAB$M_NIL; */
inventory_file.fab.fab$l_xab = &invfrwd_key;
inventory_file.rab = cc$rms_rab;
inventory_file.rab.rab$l_fab = &inventory_file.fab;
invfrwd_key = cc$rms_xabkey;
invfrwd_key.xab$b_dtp = XAB$C_STG;
invfrwd_key.xab$b_flg = 0;
invfrwd_key.xab$w_pos0 = ((char *) &inventory_buff.part_code - (char *)&inventory_buff) ;
invfrwd_key.xab$b_siz0 = PARTKEYLEN;
invfrwd_key.xab$b_ref = 0;
invfrwd_key.xab$l_nxt = &invclass_key;
invclass_key = cc$rms_xabkey;
invclass_key.xab$b_dtp = XAB$C_STG;
invclass_key.xab$b_flg = XAB$M_CHG|XAB$M_DUP;
invclass_key.xab$w_pos0 = ((char *) &inventory_buff.class - (char *)&inventory_buff) ;
invclass_key.xab$b_siz0 = CLASSKEYLEN;
invclass_key.xab$b_ref = 1;
invclass_key.xab$l_nxt = &invrev_key;
invrev_key = cc$rms_xabkey;
invrev_key.xab$b_dtp = XAB$C_DSTG;
invrev_key.xab$b_flg = XAB$M_CHG;
invrev_key.xab$w_pos0 = ((char *) &inventory_buff.part_code - (char *)&inventory_buff) ;
invrev_key.xab$b_siz0 = PARTKEYLEN;
invrev_key.xab$b_ref = 2;
}
#endif
struct kit_rec {
char kit_code[PARTKEYLEN+1];
char description[31];
float per_foot;
int16 reclen;
};
struct kit_part_rec {
char part_code[PARTKEYLEN+1];
char description[31];
char units[6];
float number;
char ext_description[25];
};
struct kit_key0_rec {
char kit_code[PARTKEYLEN];
};
struct filestruct kit_file;
struct kit_rec kit_buff;
struct kit_key0_rec kit_listkey;
char *kit_diskio_buff;
struct XABKEY kitfrwd_key,kitrev_key;
#ifdef INC_INITS
void KitFileInit(fn) char *fn;
{
kit_file.fab = cc$rms_fab;
kit_file.fab.fab$b_bks = 4;
kit_file.fab.fab$l_dna = DEFAULT_FILE_NAME;
kit_file.fab.fab$b_dns = sizeof DEFAULT_FILE_NAME -1;
kit_file.fab.fab$b_fac = FAB$M_DEL | FAB$M_GET | FAB$M_PUT | FAB$M_UPD;
kit_file.fab.fab$l_fna = fn;
kit_file.fab.fab$b_fns = strlen(fn);
kit_file.fab.fab$l_fop = FAB$M_CIF;
kit_file.fab.fab$w_mrs = 0; /*RECORD_SIZE; */
kit_file.fab.fab$b_org = FAB$C_IDX;
kit_file.fab.fab$b_rat = FAB$M_CR;
kit_file.fab.fab$b_rfm = FAB$C_VAR; /*FAB$C_FIX; */
kit_file.fab.fab$b_shr = FAB$V_SHRDEL | FAB$V_SHRGET | FAB$V_SHRPUT | FAB$V_SHRUPD; /*FAB$M_NIL; */
kit_file.fab.fab$l_xab = &kitfrwd_key;
kit_file.rab = cc$rms_rab;
kit_file.rab.rab$l_fab = &kit_file.fab;
kitfrwd_key = cc$rms_xabkey;
kitfrwd_key.xab$b_dtp = XAB$C_STG;
kitfrwd_key.xab$b_flg = 0; /* XAB$M_CHG; */
kitfrwd_key.xab$w_pos0 = ((char *) &kit_buff.kit_code - (char *)&kit_buff) ;
kitfrwd_key.xab$b_siz0 = PARTKEYLEN;
kitfrwd_key.xab$b_ref = 0;
kitfrwd_key.xab$l_nxt = &kitrev_key;
kitrev_key = cc$rms_xabkey;
kitrev_key.xab$b_dtp = XAB$C_DSTG;
kitrev_key.xab$b_flg = XAB$M_CHG;
kitrev_key.xab$w_pos0 = ((char *) &kit_buff.kit_code - (char *)&kit_buff) ;
kitrev_key.xab$b_siz0 = PARTKEYLEN;
kitrev_key.xab$b_ref = 1;
}
#endif
struct master_rec {
float retail_markup;
float wholesale_markup;
float sales_tax[5];
int quote_no;
int job_no;
int invoice_no;
char d_flag_w;
char d_flag_r;
char d_flag_c;
int labels_pl;
int labels_wdth;
int labels_lnth;
struct timebuff statement_date;
};
struct filestruct master_file;
struct master_rec master_buff;
#ifdef INC_INITS
void MasterFileInit(fn) char *fn;
{
master_file.fab = cc$rms_fab;
master_file.fab.fab$b_bks = 4;
master_file.fab.fab$l_dna = DEFAULT_FILE_NAME;
master_file.fab.fab$b_dns = sizeof DEFAULT_FILE_NAME -1;
master_file.fab.fab$b_fac = FAB$M_DEL | FAB$M_GET | FAB$M_PUT | FAB$M_UPD;
master_file.fab.fab$l_fna = fn;
master_file.fab.fab$b_fns = strlen(fn);
master_file.fab.fab$l_fop = FAB$M_CIF;
master_file.fab.fab$w_mrs = sizeof master_buff; /* RECORD_SIZE;*/
master_file.fab.fab$b_org = FAB$C_REL; /* C_IDX; */
master_file.fab.fab$b_rat = FAB$M_CR;
master_file.fab.fab$b_rfm = FAB$C_FIX;
master_file.fab.fab$b_shr = FAB$V_SHRDEL | FAB$V_SHRGET | FAB$V_SHRPUT | FAB$V_SHRUPD; /*FAB$M_NIL; */
master_file.rab = cc$rms_rab;
master_file.rab.rab$l_fab = &master_file.fab;
}
#endif
struct quote_rec {
uint16 cust_no;
char ascdate[SIZE_UID+1];
uint16 quote_no;
uint16 job_no;
uint16 invoice_no;
struct timebuff date;
char cust_code[7];
char class[16];
char quote_for[31];
float length;
float discount;
char comment1[70];
char comment2[80];
char comment3[80];
struct timebuff quote_date;
struct timebuff job_date;
struct timebuff invoice_date;
char order_num[11];
char tax_code;
char tax_num[11];
uint16 reclen;
};
struct quote_part_rec {
char kit_part_code[PARTKEYLEN];
char description[31];
char units[6];
float number;
float cost_price;
float wholesale;
float retail;
int kit;
char tax_code;
};
struct quote_key0_rec {
uint16 cust_no;
char ascdate[SIZE_UID];
};
struct filestruct quote_file;
struct quote_rec quote_buff;
struct quote_key0_rec quote_listkey;
char *quote_diskio_buff;
struct XABKEY quotefrwd_key,quoterev_key; /* ,quotejoic_key; */
struct XABKEY quotequo_key,quotejob_key,quoteinv_key;
#ifdef INC_INITS
void QuoteFileInit(fn) char *fn;
{
quote_file.fab = cc$rms_fab;
quote_file.fab.fab$b_bks = 16;
quote_file.fab.fab$l_dna = DEFAULT_FILE_NAME;
quote_file.fab.fab$b_dns = sizeof DEFAULT_FILE_NAME -1;
quote_file.fab.fab$b_fac = FAB$M_DEL | FAB$M_GET | FAB$M_PUT | FAB$M_UPD;
quote_file.fab.fab$l_fna = fn;
quote_file.fab.fab$b_fns = strlen(fn);
quote_file.fab.fab$l_fop = FAB$M_CIF;
quote_file.fab.fab$w_mrs = 0; /*RECORD_SIZE; */
quote_file.fab.fab$b_org = FAB$C_IDX;
quote_file.fab.fab$b_rat = FAB$M_CR;
quote_file.fab.fab$b_rfm = FAB$C_VAR; /*FAB$C_FIX; */
quote_file.fab.fab$b_shr = FAB$V_SHRDEL | FAB$V_SHRGET | FAB$V_SHRPUT | FAB$V_SHRUPD; /*FAB$M_NIL; */
quote_file.fab.fab$l_xab = "efrwd_key;
quote_file.rab = cc$rms_rab;
quote_file.rab.rab$l_fab = "e_file.fab;
/*
quotejoic_key = cc$rms_xabkey;
quotejoic_key.xab$b_dtp = XAB$C_BN2;
quotejoic_key.xab$b_flg = XAB$M_DUP;
quotejoic_key.xab$w_pos0 = ((char *) "e_buff.cust_no - (char *)"e_buff) ;
quotejoic_key.xab$b_siz0 = SIZE_JOIC;
quotejoic_key.xab$b_ref = 0;
quotejoic_key.xab$l_nxt = "efrwd_key;
*/
quotefrwd_key = cc$rms_xabkey;
quotefrwd_key.xab$b_dtp = XAB$C_STG;
quotefrwd_key.xab$b_flg = 0; /* XAB$M_DUP; */
quotefrwd_key.xab$w_pos0 = ((char *) "e_buff.cust_no - (char *)"e_buff) ;
quotefrwd_key.xab$b_siz0 = SIZE_JOIC;
quotefrwd_key.xab$w_pos1 = ((char *) "e_buff.ascdate - (char *) "e_buff) ;
quotefrwd_key.xab$b_siz1 = SIZE_UID;
quotefrwd_key.xab$b_ref = 0;
quotefrwd_key.xab$l_nxt = "erev_key;
quoterev_key = cc$rms_xabkey;
quoterev_key.xab$b_dtp = XAB$C_DSTG;
quoterev_key.xab$b_flg = 0; /*XAB$M_DUP; */
quoterev_key.xab$w_pos0 = ((char *) "e_buff.cust_no - (char *)"e_buff) ;
quoterev_key.xab$b_siz0 = SIZE_JOIC;
quoterev_key.xab$w_pos1 = ((char *) "e_buff.ascdate - (char *) "e_buff) ;
quoterev_key.xab$b_siz1 = SIZE_UID;
quoterev_key.xab$b_ref = 1;
quoterev_key.xab$l_nxt = "equo_key;
quotequo_key = cc$rms_xabkey;
quotequo_key.xab$b_dtp = XAB$C_BN2;
quotequo_key.xab$b_flg = 0;
quotequo_key.xab$w_pos0 = ((char *) "e_buff.quote_no - (char *)"e_buff) ;
quotequo_key.xab$b_siz0 = SIZE_JOIC;
quotequo_key.xab$b_ref = 2;
quotequo_key.xab$l_nxt = "einv_key;
quoteinv_key = cc$rms_xabkey;
quoteinv_key.xab$b_dtp = XAB$C_BN2;
quoteinv_key.xab$b_flg = XAB$M_DUP|XAB$M_CHG;
quoteinv_key.xab$w_pos0 = ((char *) "e_buff.invoice_no - (char *)"e_buff) ;
quoteinv_key.xab$b_siz0 = SIZE_JOIC;
quoteinv_key.xab$b_ref = 3;
quoteinv_key.xab$l_nxt = "ejob_key;
quotejob_key = cc$rms_xabkey;
quotejob_key.xab$b_dtp = XAB$C_BN2;
quotejob_key.xab$b_flg = XAB$M_DUP|XAB$M_CHG;
quotejob_key.xab$w_pos0 = ((char *) "e_buff.job_no - (char *)"e_buff) ;
quotejob_key.xab$b_siz0 = SIZE_JOIC;
quotejob_key.xab$b_ref = 4;
}
#endif