Focal Point
{Solved} sql HOLD FILE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/900101731

June 02, 2009, 03:15 PM
kfr104
{Solved} sql HOLD FILE
i have tried to create a SQL hold file and cannot seem to get it to come up Table list

ENGINE SQLMSS SET DEFAULT_CONNECTION COMPASS
SQL SQLMSS PREPARE SQLOUT FOR
select case when b.parentagencyid is not null then b.parentagencyid else b.agencyid end as agencyid,
	a.supplierid as supplierid, sum(salesPrev3) as salesPrev3, sum(salesPrev2)as salesPrev2,
	sum (salesPrev1) as salesPrev1,sum(salesCurMth) as salesCurMth, sum(salescurytd) as salescurytd,
	sum(salesTvlCurYr)as salesTvlCurYr,sum(salesOTBCurYr)as salesOTBCurYr,sum(salesOTBCurYr) as salesOTBCurYr,
	sum (salesCurMthLY) as salesCurMthLY, sum (salesYTDLY) as salesYTDLY, max(agencylastyrmth) as agencylastyrmth
from webfocus_report_sales_by_supplier a, agency_v b
where a.agencyid = b.agencyid
group by case when b.parentagencyid is not null then b.parentagencyid else b.agencyid end,
	 a.supplierid
order by case when b.parentagencyid is not null then b.parentagencyid else b.agencyid end
;
END
TABLE FILE SQLOUT
PRINT *
ON TABLE PCHOLD AS KFRR
END
-RUN  


Thanks

This message has been edited. Last edited by: kfr104,


WebFocus 7.6.4
SQL
HTML and Excel
June 02, 2009, 03:45 PM
GinnyJakes
Try HOLDing it instead of PCHOLDing it. The latter sends the file to the client.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
June 02, 2009, 03:49 PM
Francis Mariani
quote:
get it to come up Table list

I don't understand what you mean by that.

Have you tried ON TABLE HOLD instead of ON TABLE PCHOLD?

Are you getting error messages?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 02, 2009, 03:55 PM
kfr104
Thanks it worked...


WebFocus 7.6.4
SQL
HTML and Excel