Beispiel #1
0
// Call Market Watch Frame 1
void CMarketWatchDB::DoMarketWatchFrame1(const TMarketWatchFrame1Input *pIn,
		TMarketWatchFrame1Output *pOut)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	cout << pid << " <<< MWF1" << endl;
	cout << pid << " - Market Watch Frame 1 (input)" << endl <<
			pid << " -- acct_id: " << pIn->acct_id << endl <<
			pid << " -- cust_id: " << pIn->c_id << endl <<
			pid << " -- ending_co_id: " << pIn->ending_co_id << endl <<
			pid << " -- industry_name: " << pIn->industry_name <<
					" (5% used)" << endl <<
			pid << " -- starting_co_id: " << pIn->starting_co_id <<
					" (used only when industry_name is used)" << endl;
#endif // DEBUG
#ifdef DB_PGSQL
	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
#endif
	execute(pIn, pOut);

	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Market Watch Frame 1 (output)" << endl <<
			pid << " -- pct_change: " << pOut->pct_change << endl;
	cout << pid << " >>> MWF1" << endl;
#endif // DEBUG
}
// Call Data Maintenance Frame 1
void CDataMaintenanceDB::DoDataMaintenanceFrame1(
		const TDataMaintenanceFrame1Input *pIn)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	cout << pid << " <<< DMF1" << endl;
	cout << pid << " - Data Maintenance Frame 1 (input)" << endl <<
			pid << " -- c_id: " << pIn->c_id << endl <<
			pid << " -- co_id: " << pIn->co_id << endl <<
			pid << " -- day_of_month: " << pIn->day_of_month << endl <<
			pid << " -- symbol: " << pIn->symbol << endl <<
			pid << " -- table_name: " << pIn->table_name << endl <<
			pid << " -- tx_id name: " << pIn->tx_id << endl <<
			pid << " -- vol_incr: " << pIn->vol_incr << endl;
#endif // DEBUG
#ifdef DB_PGSQL
	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
#endif
	execute(pIn);
	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Data Maintenance Frame 1 (output)" << endl;
	cout << pid << " >>> DMF1" << endl;
#endif // DEBUG
}
Beispiel #3
0
// Call Broker Volume Frame 1
void CBrokerVolumeDB::DoBrokerVolumeFrame1(const TBrokerVolumeFrame1Input *pIn,
		TBrokerVolumeFrame1Output *pOut)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	int i;
	cout << pid << " <<< BVF1" << endl;
	cout << pid << " - Broker Volume Frame 1 (input)" << endl;
	for (i = 0; i < max_broker_list_len; i++)
		cout << pid << " -- broker_list[" << i << "]: " <<
				pIn->broker_list[i] << endl;
	cout << pid << " -- sector name: " << pIn->sector_name << endl;
#endif // DEBUG

#ifdef DB_PGSQL
	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
#endif
	execute(pIn, pOut);
	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Broker Volume Frame 1 (output)" << endl <<
			pid << " -- list_len: " << pOut->list_len << endl;
	for (i = 0; i < pOut->list_len; i ++) {
		cout << pid << " -- broker_name[" << i << "]: " <<
						pOut->broker_name[i] << endl <<
				pid << " -- volume[" << i << "]: " << pOut->volume[i] << endl;
	}
	cout << pid << " >>> BVF1" << endl;
#endif // DEBUG
}
// Call Customer Position Frame 1
void CCustomerPositionDB::DoCustomerPositionFrame1(
		const TCustomerPositionFrame1Input *pIn,
		TCustomerPositionFrame1Output *pOut)
{
#ifdef DEBUG
	m_coutLock.lock();
	cout << "<<< CPF1" << endl;
	cout << "*** " << osCall.str() << endl;
	cout << "- Customer Position Frame 1 (input)" << endl <<
			"-- cust_id: " << pIn->cust_id << endl <<
			"-- tax_id: " << pIn->tax_id << endl;
	m_coutLock.unlock();
#endif // DEBUG

	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
	execute(pIn, pOut);

#ifdef DEBUG
	m_coutLock.lock();
	cout << "- Customer Position Frame 1 (output)" << endl <<
			"-- cust_id: " << pOut->cust_id << endl <<
			"-- acct_len: " << pOut->acct_len << endl;
	for (int i = 0; i < pOut->acct_len; i++) {
		cout << "-- acct_id[" << i << "]: " << pOut->acct_id[i] << endl <<
				"-- cash_bal[" << i << "]: " << pOut->cash_bal[i] << endl <<
				"-- asset_total[" << i << "]: " << pOut->asset_total[i] << endl;
	}
	cout << "-- c_st_id: " << pOut->c_st_id << endl <<
			"-- c_l_name: " << pOut->c_l_name << endl <<
			"-- c_f_name: " << pOut->c_f_name << endl <<
			"-- c_m_name: " << pOut->c_m_name << endl <<
			"-- c_gndr: " << pOut->c_gndr << endl <<
			"-- c_tier: " << pOut->c_tier << endl <<
			"-- c_dob: " << pOut->c_dob.year << "-" << pOut->c_dob.month <<
					"-" << pOut->c_dob.day << " " << pOut->c_dob.hour <<
					":" << pOut->c_dob.minute << ":" << pOut->c_dob.second <<
					endl <<
			"-- c_ad_id: " << pOut->c_ad_id << endl <<
			"-- c_ctry_1: " << pOut->c_ctry_1 << endl <<
			"-- c_area_1: " << pOut->c_area_1 << endl <<
			"-- c_local_1: " << pOut->c_local_1 << endl <<
			"-- c_ext_1: " << pOut->c_ext_1 << endl <<
			"-- c_ctry_2: " << pOut->c_ctry_2 << endl <<
			"-- c_area_2: " << pOut->c_area_2 << endl <<
			"-- c_local_2: " << pOut->c_local_2 << endl <<
			"-- c_ext_2: " << pOut->c_ext_2 << endl <<
			"-- c_ctry_3: " << pOut->c_ctry_3 << endl <<
			"-- c_area_3: " << pOut->c_area_3 << endl <<
			"-- c_local_3: " << pOut->c_local_3 << endl <<
			"-- c_ext_3: " << pOut->c_ext_3 << endl <<
			"-- c_email_1: " << pOut->c_email_1 << endl <<
			"-- c_email_2: " << pOut->c_email_2 << endl;
	cout << ">>> CPF1" << endl;
	m_coutLock.unlock();
#endif // DEBUG
}
Beispiel #5
0
// Call Trade Status Frame 1
void CTradeStatusDB::DoTradeStatusFrame1(const TTradeStatusFrame1Input *pIn,
		TTradeStatusFrame1Output *pOut)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	cout << pid << " <<< TSF1" << endl;
	cout << pid << " - Trade Status Frame 1 (input)" << endl <<
			pid << " -- acct_id: " << pIn->acct_id << endl;
#endif // DEBUG

	startTransaction();
#ifdef DB_PGSQL
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
#endif
	execute(pIn, pOut);
	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Trade Status Frame 1 (output)" << endl <<
			pid << " -- cust_l_name: " << pOut->cust_l_name << endl <<
			pid << " -- cust_f_name: " << pOut->cust_f_name << endl <<
			pid << " -- broker_name: " << pOut->broker_name << endl;
	for (int i = 0; i < max_trade_status_len; i++) {
		cout << pid << " -- charge[" << i << "]: " << pOut->charge[i] << endl <<
				pid << " -- exec_name[" << i << "]: " << pOut->exec_name[i] <<
						endl <<
				pid << " -- ex_name[" << i << "]: " << pOut->ex_name[i] <<
						endl <<
				pid << " -- s_name[" << i << "]: " << pOut->s_name[i] << endl <<
				pid << " -- status_name[" << i << "]: " <<
						pOut->status_name[i] << endl <<
				pid << " -- symbol[" << i << "]: " << pOut->symbol[i] << endl <<
				pid << " -- trade_dts[" << i << "]: " <<
						pOut->trade_dts[i].year << "-" <<
						pOut->trade_dts[i].month << "-" <<
						pOut->trade_dts[i].day << " " <<
						pOut->trade_dts[i].hour << ":" <<
						pOut->trade_dts[i].minute << ":" <<
						pOut->trade_dts[i].second << endl <<
				pid << " -- trade_id[" << i << "]: " << pOut->trade_id[i] <<
						endl <<
				pid << " -- trade_qty[" << i << "]: " << pOut->trade_qty[i] <<
						endl <<
				pid << " -- type_name[" << i << "]: " << pOut->type_name[i] <<
						endl;
	}
	cout << pid << " >>> TSF1" << endl;
#endif // DEBUG
}
Beispiel #6
0
// Call Trade Lookup Frame 4
void CTradeLookupDB::DoTradeLookupFrame4(const TTradeLookupFrame4Input *pIn,
		TTradeLookupFrame4Output *pOut)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	cout << pid << " <<< TLF4" << endl;
	cout << pid << " - Trade Lookup Frame 4 (input)" << endl <<
			pid << " -- acct_id: " << pIn->acct_id << endl <<
			pid << " -- trade_dts: " << pIn->trade_dts.year << "-" <<
					pIn->trade_dts.month << "-" << pIn->trade_dts.day <<
					" " << pIn->trade_dts.hour << ":" <<
					pIn->trade_dts.minute << ":" <<
					pIn->trade_dts.second << endl;
#endif //DEBUG

	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
	execute(pIn, pOut);
	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Trade Lookup Frame 4 (output)" << endl <<
			pid << " -- holding_history_id[0]: " <<
					pOut->trade_info[0].holding_history_id << endl <<
			pid << " -- holding_history_trade_id[0]: " <<
					pOut->trade_info[0].holding_history_trade_id << endl <<
			pid << " -- quantity_before[0]: " <<
					pOut->trade_info[0].quantity_before << endl <<
			pid << " -- quantity_after[0]: " <<
					pOut->trade_info[0].quantity_after << endl <<
			pid << " -- num_found: " << pOut->num_found << endl <<
			pid << " -- trade_id: " << pOut->trade_id << endl;
	cout << pid << " >>> TLF4" << endl;
#endif //DEBUG
}
Beispiel #7
0
// Call Trade Lookup Frame 3
void CTradeLookupDB::DoTradeLookupFrame3(const TTradeLookupFrame3Input *pIn,
		TTradeLookupFrame3Output *pOut)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	cout << pid << " <<< TLF3" << endl;
	cout << pid << " - Trade Lookup Frame 3 (input)" << endl <<
			pid << " -- max_acct_id: " << pIn->max_acct_id << endl <<
			pid << " -- max_trades: " << pIn->max_trades << endl <<
			pid << " -- trade_dts: " << pIn->end_trade_dts.year << "-" <<
					pIn->end_trade_dts.month << "-" <<
					pIn->end_trade_dts.day << " " <<
					pIn->end_trade_dts.hour << ":" <<
					pIn->end_trade_dts.minute << ":" <<
					pIn->end_trade_dts.second << endl <<
			pid << " -- symbol: " << pIn->symbol << endl;
#endif // DEBUG

	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
	execute(pIn, pOut);
	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Trade Lookup Frame 3 (output)" << endl <<
			pid << " -- num_found: " << pOut->num_found << endl;
	for (int i = 0; i < pOut->num_found; i++) {
		cout << pid << " -- acct_id[" << i << ": " <<
						pOut->trade_info[i].acct_id << endl <<
				pid << " -- cash_transaction_amount[" << i << "]: " <<
						pOut->trade_info[i].cash_transaction_amount << endl <<
				pid << " -- cash_transaction_dts[" << i << "]: " <<
						pOut->trade_info[i].cash_transaction_dts.year << "-" <<
						pOut->trade_info[i].cash_transaction_dts.month << "-" <<
						pOut->trade_info[i].cash_transaction_dts.day << " " <<
						pOut->trade_info[i].cash_transaction_dts.hour << ":" <<
						pOut->trade_info[i].cash_transaction_dts.minute <<
						":" <<
						pOut->trade_info[i].cash_transaction_dts.second <<
						endl <<
				pid << " -- cash_transaction_name[" << i << "]: " <<
						pOut->trade_info[i].cash_transaction_name << endl <<
				pid << " -- exec_name[" << i << "]: " <<
						pOut->trade_info[i].exec_name << endl <<
				pid << " -- is_cash[" << i << "]: " <<
						pOut->trade_info[i].is_cash << endl <<
				pid << " -- price[" << i << "]: " <<
						pOut->trade_info[i].price << endl <<
				pid << " -- quantity[" << i << "]: " <<
						pOut->trade_info[i].quantity << endl <<
				pid << " -- settlement_amount[" << i << "]: " <<
						pOut->trade_info[i].settlement_amount << endl <<
				pid << " -- settlement_cash_due_date[" << i << "]: " <<
						pOut->trade_info[i].settlement_cash_due_date.year <<
						"-" <<
						pOut->trade_info[i].settlement_cash_due_date.month <<
						"-" <<
						pOut->trade_info[i].settlement_cash_due_date.day <<
						" " <<
						pOut->trade_info[i].settlement_cash_due_date.hour <<
						":" <<
						pOut->trade_info[i].settlement_cash_due_date.minute <<
						":" <<
						pOut->trade_info[i].settlement_cash_due_date.second <<
						endl <<
				pid << " -- settlement_cash_type[" << i << "]: " <<
						pOut->trade_info[i].settlement_cash_type << endl <<
				pid << " -- cash_transaction_dts[" << i << "]: " <<
						pOut->trade_info[i].trade_dts.year << "-" <<
						pOut->trade_info[i].trade_dts.month << "-" <<
						pOut->trade_info[i].trade_dts.day << " "<<
						pOut->trade_info[i].trade_dts.hour << ":" <<
						pOut->trade_info[i].trade_dts.minute << ":" <<
						pOut->trade_info[i].trade_dts.second << endl <<
				pid << " -- trade_history_dts[" << i << "][i]: " <<
						pOut->trade_info[i].trade_history_dts[i].year << "-" <<
						pOut->trade_info[i].trade_history_dts[i].month << "-" <<
						pOut->trade_info[i].trade_history_dts[i].day << " " <<
						pOut->trade_info[i].trade_history_dts[i].hour << ":" <<
						pOut->trade_info[i].trade_history_dts[i].minute <<
						":" <<
						pOut->trade_info[i].trade_history_dts[i].second <<
						endl <<
				pid << " -- trade_history_status_id[" << i << "][i]: " <<
						pOut->trade_info[i].trade_history_status_id[i] <<
						endl <<
				pid << " -- trade_history_dts[" << i << "][1]: " <<
						pOut->trade_info[i].trade_history_dts[1].year << "-" <<
						pOut->trade_info[i].trade_history_dts[1].month << "-" <<
						pOut->trade_info[i].trade_history_dts[1].day << " " <<
						pOut->trade_info[i].trade_history_dts[1].hour << ":" <<
						pOut->trade_info[i].trade_history_dts[1].minute <<
						":" <<
						pOut->trade_info[i].trade_history_dts[1].second <<
						endl <<
				pid << " -- trade_history_status_id[" << i << "][1]: " <<
						pOut->trade_info[i].trade_history_status_id[1] <<
						endl <<
				pid << " -- trade_history_dts[" << i << "][2]: " <<
						pOut->trade_info[i].trade_history_dts[2].year << "-" <<
						pOut->trade_info[i].trade_history_dts[2].month << "-" <<
						pOut->trade_info[i].trade_history_dts[2].day << " " <<
						pOut->trade_info[i].trade_history_dts[2].hour << ":" <<
						pOut->trade_info[i].trade_history_dts[2].minute <<
						":" <<
						pOut->trade_info[i].trade_history_dts[2].second <<
						endl <<
				pid << " -- trade_history_status_id[" << i << "][2]: " <<
						pOut->trade_info[i].trade_history_status_id[2] <<
						endl <<
				pid << " -- trade_id[" << i << "]: " <<
						pOut->trade_info[i].trade_id << endl <<
				pid << " -- trade_list[" << i << "]: " <<
						pOut->trade_info[i].trade_id << endl <<
				pid << " -- trade_type[" << i << "]: " <<
						pOut->trade_info[i].trade_type << endl;
	}
	cout << ">>> TLF3" << endl;
#endif //DEBUG
}
// Call Security Detail Frame 1
void CSecurityDetailDB::DoSecurityDetailFrame1(
		const TSecurityDetailFrame1Input *pIn,
		TSecurityDetailFrame1Output *pOut)
{
#ifdef DEBUG
	pthread_t pid = pthread_self();
	cout << pid << " <<< SDF1" << endl;
	cout << pid << " - Security Detail Frame 1 (input)" << endl <<
			pid << " -- access_lob_flag: " << pIn->access_lob_flag << endl <<
			pid << " -- start_day: " << pIn->start_day.year << "-" <<
					pIn->start_day.month << "-" << pIn->start_day.day << " " <<
					pIn->start_day.hour << ":" << pIn->start_day.minute <<
					":" << pIn->start_day.second << endl <<
			pid << " -- max_rows_to_return: " << pIn->max_rows_to_return <<
					endl <<
			pid << " -- symbol: "<<pIn->symbol<<endl;
#endif // DEBUG
#ifdef DB_PGSQL
	startTransaction();
	// Isolation level required by Clause 7.4.1.3
	setReadCommitted();
#endif
	execute(pIn, pOut);
	commitTransaction();

#ifdef DEBUG
	cout << pid << " - Security Detail Frame 1 (output)" << endl <<
			pid << " -- fin_len: " << pOut->fin_len << endl <<
			pid << " -- day_len: " << pOut->day_len << endl <<
			pid << " -- news_len: " << pOut->news_len << endl;
	int i;
	for (i = 0; i < 3; i++) {
		cout << pid << " -- cp_co_name[" << i << "]: " <<
						pOut->cp_co_name[i] << endl <<
				pid << " -- cp_in_name[" << i << "]: " << pOut->cp_in_name[i] <<
						endl;
	}
	for (i = 0; i < pOut->fin_len; i++) {
		cout << pid << " -- fin[" << i << "].year: " << pOut->fin[i].year <<
						endl <<
				pid << " -- fin[" << i << "].qtr: " << pOut->fin[i].qtr <<
						endl <<
				pid << " -- fin[" << i << "].start_date: " <<
						pOut->fin[i].start_date.year << "-" <<
						pOut->fin[i].start_date.month << "-" <<
						pOut->fin[i].start_date.day << endl <<
				pid << " -- fin[" << i << "].rev: "<<pOut->fin[i].rev << endl <<
				pid << " -- fin[" << i << "].net_earn: " <<
						pOut->fin[i].net_earn << endl <<
				pid << " -- fin[" << i << "].basic_eps: " <<
						pOut->fin[i].basic_eps << endl <<
				pid << " -- fin[" << i << "].dilut_eps: " <<
						pOut->fin[i].dilut_eps << endl <<
				pid << " -- fin[" << i << "].margin: " <<
						pOut->fin[i].margin << endl <<
				pid << " -- fin[" << i << "].invent: " <<
						pOut->fin[i].invent << endl <<
				pid << " -- fin[" << i << "].assets: " <<
						pOut->fin[i].assets << endl <<
				pid << " -- fin[" << i << "].liab: " << pOut->fin[i].liab <<
						endl <<
				pid << " -- fin[" << i << "].out_basic: " <<
						pOut->fin[i].out_basic << endl <<
				pid << " -- fin[" << i << "].out_dilut: " <<
						pOut->fin[i].out_dilut << endl;
	}
	for (i = 0; i < pOut->day_len; i++) {
		cout << pid << " -- day[" << i << "].date: " <<
					pOut->day[i].date.year << "-" <<
					pOut->day[i].date.month << "-" <<
					pOut->day[i].date.day << endl <<
			pid << " -- day[" << i << "].close: " << pOut->day[i].close <<
					endl <<
			pid << " -- day[" << i << "].high: " << pOut->day[i].high << endl <<
			pid << " -- day[" << i << "].low: " << pOut->day[i].low << endl <<
			pid << " -- day[" << i << "].vol: " << pOut->day[i].vol << endl;
	}
	for (i = 0; i < pOut->news_len; i++) {
		cout << pid << " -- news[" << i << "].item: " << pOut->news[i].item <<
						endl <<
				pid << " -- news[" << i << "].dts: " <<
						pOut->news[i].dts.year << "-" <<
						pOut->news[i].dts.month << "-" <<
						pOut->news[i].dts.day << " " <<
						pOut->news[i].dts.hour << ":" <<
						pOut->news[i].dts.minute << ":" <<
						pOut->news[i].dts.second << endl <<
				pid << " -- news[" << i << "].src: " << pOut->news[i].src <<
						endl <<
				pid << " -- news[" << i << "].auth: " << pOut->news[i].auth <<
						endl <<
				pid << " -- news[" << i << "].headline: " <<
						pOut->news[i].headline << endl <<
				pid << " -- news[" << i << "].summary: " <<
						pOut->news[i].summary << endl;
	}
	cout << pid << " -- last_price: " << pOut->last_price << endl <<
			pid << " -- last_open: " << pOut->last_open << endl <<
			pid << " -- last_vol: " << pOut->last_vol << endl <<
			pid << " -- s_name: " << pOut->s_name << endl <<
			pid << " -- co_name: " << pOut->co_name << endl <<
			pid << " -- sp_rate: " << pOut->sp_rate << endl <<
			pid << " -- ceo_name: " << pOut->ceo_name << endl <<
			pid << " -- co_desc: " << pOut->co_desc << endl <<
			pid << " -- open_date: " << pOut->open_date.year << "-" <<
					pOut->open_date.month << "-" <<
					pOut->open_date.day << " " <<
					pOut->open_date.hour << ":" <<
					pOut->open_date.minute << ":" <<
					pOut->open_date.second << endl <<
			pid << " -- co_st_id: " << pOut->co_st_id << endl <<
			pid << " -- co_ad_line1: " << pOut->co_ad_line1 << endl <<
			pid << " -- co_ad_line2: " << pOut->co_ad_line2 << endl <<
			pid << " -- co_ad_town: " << pOut->co_ad_town << endl <<
			pid << " -- co_ad_div: " << pOut->co_ad_div << endl <<
			pid << " -- co_ad_zip: " << pOut->co_ad_zip << endl <<
			pid << " -- co_ad_cty: " << pOut->co_ad_cty << endl <<
			pid << " -- num_out: " << pOut->num_out << endl <<
			pid << " -- start_date: " << pOut->start_date.year << "-" <<
					pOut->start_date.month << "-" <<
					pOut->start_date.day << " " <<
					pOut->start_date.hour << ":" <<
					pOut->start_date.minute << ":" <<
					pOut->start_date.second << endl <<
			pid << " -- ex_date: " << pOut->ex_date.year << "-" <<
					pOut->ex_date.month << "-" <<
					pOut->ex_date.day << " " << pOut->ex_date.hour <<
					":" << pOut->ex_date.minute << ":" <<
					pOut->ex_date.second << endl <<
			pid << " -- pe_ratio: " << pOut->pe_ratio << endl <<
			pid << " -- s52_wk_high: " << pOut->s52_wk_high << endl <<
			pid << " -- s52_wk_high_date: " << pOut->s52_wk_high_date.year <<
					"-" << pOut->s52_wk_high_date.month << "-" <<
					pOut->s52_wk_high_date.day << " " <<
					pOut->s52_wk_high_date.hour << ":" <<
					pOut->s52_wk_high_date.minute << ":" <<
					pOut->s52_wk_high_date.second << endl <<
			pid << " -- s52_wk_low: " << pOut->s52_wk_low << endl <<
			pid << " -- s52_wk_low_date: " << pOut->s52_wk_low_date.year <<
					"-" << pOut->s52_wk_low_date.month << "-" <<
					pOut->s52_wk_low_date.day << " " <<
					pOut->s52_wk_low_date.hour << ":" <<
					pOut->s52_wk_low_date.minute << ":" <<
					pOut->s52_wk_low_date.second << endl <<
			pid << " -- divid: " << pOut->divid << endl <<
			pid << " -- yield: " << pOut->yield << endl <<
			pid << " -- ex_ad_div: " << pOut->ex_ad_div << endl <<
			pid << " -- ex_ad_cty: " << pOut->ex_ad_cty << endl <<
			pid << " -- ex_ad_line1: " << pOut->ex_ad_line1 << endl <<
			pid << " -- ex_ad_line2: " << pOut->ex_ad_line2 << endl <<
			pid << " -- ex_ad_town: " << pOut->ex_ad_town << endl <<
			pid << " -- ex_ad_zip: " << pOut->ex_ad_zip << endl <<
			pid << " -- ex_close: " << pOut->ex_close << endl <<
			pid << " -- ex_desc: " << pOut->ex_desc << endl <<
			pid << " -- ex_name: " << pOut->ex_name << endl <<
			pid << " -- ex_num_symb: " << pOut->ex_num_symb << endl <<
			pid << " -- ex_open: " << pOut->ex_open << endl;
	cout << pid << " >>> SDF1" << endl;
#endif // DEBUG
}