Francis et. al.,
After I got the embedded SQL to work once, the next day it stopped working again. I don't think I changed anything and I have verified I can hit each of the tables individually. Right now it just returns NO HTML OUTPUT. At some point it also said EDA no data. Please take a look. Hopefully it is just syntax???
SET SQLENGINE = SQLORA
-*SET DEFAULT_CONNECTION OOIFAS
SQL SET SERVER OOIFAS
-RUN
-*SQL SQLORA PREPARE SQLOUT FOR
SQL SQLORA
Select Description, Beginning_balance,Realized,unRealized_pl, UNRELAIZED_OCI,
purchases,issuances,sales,Settlements,activity,
transfer_in,transfer_out, net_transfers,
ending_balance
from (
select d.Description, c.disclosure_group_seq_id,c.disclosure_line_seq_id,d.sortby_order,
Sum(Beginning_balance) Beginning_balance,Sum(Realized) Realized,Sum(unRealized_pl) unRealized_pl,
Sum( UNRELAIZED_OCI) UNRELAIZED_OCI, sum(purchases) purchases, sum(issuances) issuances,sum(sales)
sales,sum(Settlements) Settlements,sum(activity) activity, sum(transfer_in)
transfer_in,sum(transfer_out) transfer_out,sum(transfer_in)+sum(transfer_out) net_transfers,
sum(ending_balance) ending_balance
from FAS157.bkt_category_disclose_xref a,
FAS157.rollforward_output b,
FAS157.disclosure_item_xref c,
FAS157.disclosure_line d,
FAS157.disclosure_table e
Where a.master_bucket_seq_id = b.master_bucket_seq_id
and a.master_portfolio_seQ_id = b.master_portfolio_seq_id
and a.master_category_seq_id = b.master_category_seq_id
and b.enterprise_system_seq_id = 2
and a.bkt_cat_pfolio_xref_Seq_id = c.bkt_cat_pfolio_xref_seq_id
and c.disclosure_line_seq_id = d.disclosure_line_seq_id
and c.disclosure_table_seq_id = e.disclosure_table_Seq_id
and e.table_name like '2.1%'
group by d.Description, c.disclosure_group_seq_id,c.disclosure_line_seq_id,d.sortby_order) a
order by sortby_order;
TABLE ON TABLE HOLD AS HOLD01 FORMAT ALPHA
END
-RUN
TABLE FILE HOLD01
PRINT *
END
-RUN
Mike Anderson