13.07.2015 Views

IBM Flex System x240 w

IBM Flex System x240 w

IBM Flex System x240 w

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

#define A_C_LAST 255#define A_C_ID 1023#define A_OL_I_ID 8191/***************************************************************************//* Transaction Type Identifiers *//***************************************************************************/#define CLIENT_SQL 0#define NEWORD_SQL 1#define PAYMENT_SQL 2#define ORDSTAT_SQL 3#define DELIVERY_SQL 4#define STOCKLEV_SQL 5/* *********************************************************************** *//* Whenever changing these structures, you MUST update the char[] array *//* size in the varchar hostvars, the xx->len values in Src.Cli/???c.sqc *//* and the utils/cat.ddl and utils/uncat.ddl scripts. *//* *//* In all cases, the proper value to use is: *//* *//* sizeof(struct xxx) - SPGENERAL_ADJUST *//* *//* SPGENERAL_PAD is the number of int16_ts required to pad the structures *//* so that the data is aligned the same as if the len/pad elements were *//* not present. *//* *//* NOTE: It is almost guaranteed that this will break when using clients *//* that use a different byte ordering and/or compiler padding. *//* *********************************************************************** */#define SPGENERAL_PAD 3#define SPGENERAL_ADJUST sizeof(int16_t)struct in_neword_struct {int16_t len;int16_t pad[SPGENERAL_PAD];struct in_items_struct {int32_t s_OL_I_ID;int32_t s_OL_SUPPLY_W_ID;int16_t s_OL_QUANTITY;int16_t pad1[3];} in_item[15];int32_t s_C_ID;int32_t s_W_ID;int16_t s_D_ID;int16_t s_O_OL_CNT; /* init by SUT */int16_t s_all_local;int16_t duplicate_items;};struct out_neword_struct {int16_t len;int16_t pad[SPGENERAL_PAD];struct items_struct {float s_I_PRICE;float s_OL_AMOUNT;int16_t s_S_QUANTITY;int16_t pad2;char s_I_NAME[25];char s_brand_generic;} item[15];float s_W_TAX;float s_D_TAX;float s_C_DISCOUNT;float s_total_amount;int32_t s_O_ID;int16_t s_O_OL_CNT;int16_t s_transtatus;int16_t deadlocks;char s_C_LAST[17];char s_C_CREDIT[3];char s_O_ENTRY_D_time[27];};struct in_payment_struct {int16_t len;int16_t pad[SPGENERAL_PAD];float s_H_AMOUNT;int32_t s_W_ID;int32_t s_C_W_ID;int32_t s_C_ID;int16_t s_C_D_ID;int16_t s_D_ID;char s_C_LAST[17];};struct out_payment_struct {int16_t len;int16_t pad[SPGENERAL_PAD];double s_C_CREDIT_LIM;double s_C_BALANCE;float s_C_DISCOUNT;int32_t s_C_ID;int16_t s_transtatus;int16_t deadlocks;char s_W_STREET_1[21];char s_W_STREET_2[21];char s_W_CITY[21];char s_W_STATE[3];char s_W_ZIP[10];char s_D_STREET_1[21];char s_D_STREET_2[21];char s_D_CITY[21];char s_D_STATE[3];char s_D_ZIP[10];char s_C_FIRST[17];char s_C_MIDDLE[3];char s_C_LAST[17];char s_C_STREET_1[21];char s_C_STREET_2[21];char s_C_CITY[21];char s_C_STATE[3];char s_C_ZIP[10];char s_C_PHONE[17];char s_C_CREDIT[3];char s_C_DATA[201];char s_H_DATE_time[27];char s_C_SINCE_time[27];};struct in_ordstat_struct {int16_t len;int16_t pad[SPGENERAL_PAD];int32_t s_C_ID;int32_t s_W_ID;int16_t s_D_ID;int16_t pad1[3];char s_C_LAST[17];};struct out_ordstat_struct {int16_t len;int16_t pad[SPGENERAL_PAD];double s_C_BALANCE;int32_t s_C_ID;int32_t s_O_ID;int16_t s_O_CARRIER_ID;int16_t s_ol_cnt;int16_t pad1[2];struct oitems_struct {double s_OL_AMOUNT;int32_t s_OL_I_ID;int32_t s_OL_SUPPLY_W_ID;int16_t s_OL_QUANTITY;int16_t pad2;char s_OL_DELIVERY_D_time[27];} item[15];int16_t s_transtatus;int16_t deadlocks;char s_C_FIRST[17];char s_C_MIDDLE[3];char s_C_LAST[17];char s_O_ENTRY_D_time[27];int16_t pad3[2];};struct in_delivery_struct {int16_t len;int16_t pad[SPGENERAL_PAD];int32_t s_W_ID;int16_t s_O_CARRIER_ID;};struct out_delivery_struct {int16_t len;int16_t pad[SPGENERAL_PAD];int32_t s_O_ID[10];int16_t s_transtatus;int16_t deadlocks;};struct in_stocklev_struct {int16_t len;int16_t pad[SPGENERAL_PAD];int32_t s_threshold;int32_t s_W_ID;int16_t s_D_ID;};struct out_stocklev_struct {int16_t len;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!