SET ASNAMES = ON SQL DB2 EX SYSPROC.Q9WEBSP('&FROM_DATE','&TO_DATE')@ ; TABLE FILE SQLOUT ON TABLE SUBHEAD " STOP PAYMENT COUNT BY CHANNEL" SUM CNT.STOP_PYMT_CHANNEL AS COUNT_STOP_PYMT BY STOP_PYMT_CHANNEL ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL -*ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ TYPE=TABHEADING, LINE=1, OBJECT=TEXT, ITEM=1, SIZE=9, COLOR='NAVY', BACKCOLOR='WHITE', STYLE=BOLD, $ ENDSTYLE ENDThis message has been edited. Last edited by: User1,
WebFOCUS 8 Windows, All Outputs
September 15, 2015, 03:04 AM
Waz
Do you mean freezing the headers ?
You could try HFREEZE
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
September 15, 2015, 05:33 AM
User1
Hi,
Where do I use HFREEZE
Yes and need to freeze the column names as well
Thanks, User1
WebFOCUS 8 Windows, All Outputs
September 15, 2015, 07:05 AM
MartinY
Log to Knowledge Base and search for HFREEZE.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 15, 2015, 08:25 AM
User1
Hi,
I tried the below code, but its not working.
ENGINE DB2 SET DEFAULT_CONNECTION ADC1DB2D -SET ECHO = ALL; SET ASNAMES = ON -DEFAULT &FDATE1='2015/07/21' -DEFAULT &TDATE1='2015/08/21' -DEFAULT &ACC_NO='371056897009000';
SET ASNAMES = ON SQL DB2 EX SYSPROC.Q9WEBSP('&FDATE1','&TDATE1')@ ; TABLE FILE SQLOUT ON TABLE SUBHEAD "STOP PAYMENT DETAILS" PRINT CUST_ACCT_NO AS 'ACCOUNT NUMBER' PYMT_SRCE_DS AS 'PAYMENT INITIATION CHANNEL' PYMT_TRANS_PRCS_LOC_TS AS 'PAYMENT INITIATION TS' LOB STOP_PYMT_TS AS 'PAYMENT STOPPED TS' STOP_PYMT_CHANNEL AS 'PAYMENT STOPPED CHANNEL' INIT_PYMT_AM AS AMOUNT COMPUTE COUNTER/I6=1; NOPRINT BY CUST_ACCT_NO NOPRINT WHERE CUST_ACCT_NO='&ACC_NO' ON CUST_ACCT_NO SUBFOOT "TOTAL NO OF STOP PAYMENTS ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL -*ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ -*TYPE=REPORT, SQUEEZE=1, WRAP=OFF,$ TYPE=REPORT, HFREEZE=ON,$
Thanks, User1This message has been edited. Last edited by: User1,
WebFOCUS 8 Windows, All Outputs
September 15, 2015, 08:55 AM
MartinY
Difficult to help without the error.....
But, at least, I can say that you have a double quote at the beginning of the line where it shouldn't or you're missing one somewhere:
quote:
"TOTAL NO OF STOP PAYMENTS ON TABLE SET PAGE-NUM NOLEAD
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 15, 2015, 09:06 AM
Msondra
Why do you have this line commented out? -*ON TABLE PCHOLD FORMAT HTML
WebFOCUS 8.1.05 Windows, All Outputs
September 15, 2015, 09:28 AM
MartinY
quote:
Why do you have this line commented out?-*ON TABLE PCHOLD FORMAT HTML
It don't really matter because HTML is the default output format if not specified.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 15, 2015, 09:54 AM
User1
Hi,
By mistake I marked that as commented.
But not getting any output even if I un commented that part.
Thanks, User1
WebFOCUS 8 Windows, All Outputs
September 15, 2015, 10:07 AM
MartinY
User1,
Read and look at my post from 8:55AM
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 15, 2015, 10:16 AM
User1
Hi,
I am not getting any error but that HFREEZE=ON its not working.
When I am moving the scroll bar the column names are also moving.
Check the below code, ENGINE DB2 SET DEFAULT_CONNECTION CNAME -SET ECHO = ALL; SET ASNAMES = ON -DEFAULT &FDATE1='2015/07/21' -DEFAULT &TDATE1='2015/08/21' -DEFAULT &ACC_NO='371056897009000';
SET ASNAMES = ON SQL DB2 EX SYSPROC.Q9WEBSP('&FDATE1','&TDATE1')@ ; TABLE FILE SQLOUT ON TABLE SUBHEAD "STOP PAYMENT DETAILS" PRINT CUST_ACCT_NO AS 'ACCOUNT NUMBER' PYMT_SRCE_DS AS 'PAYMENT INITIATION CHANNEL' PYMT_TRANS_PRCS_LOC_TS AS 'PAYMENT INITIATION TS' LOB STOP_PYMT_TS AS 'PAYMENT STOPPED TS' STOP_PYMT_CHANNEL AS 'PAYMENT STOPPED CHANNEL' INIT_PYMT_AM AS AMOUNT COMPUTE COUNTER/I6=1; NOPRINT BY CUST_ACCT_NO NOPRINT WHERE CUST_ACCT_NO='&ACC_NO' ON CUST_ACCT_NO SUBFOOT "TOTAL NO OF STOP PAYMENTS ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = IBFS:/EDA/STP/_EDAHOME/ETC/endeflt.sty, $ -*TYPE=REPORT, SQUEEZE=1, WRAP=OFF,$ TYPE=REPORT,HFREEZE=ON, $
But still... you have an error as I specified. You must fix it, maybe it's only that. Sometime Focus generates report even with a small error as this but without applying code following the error : here your styling.
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
BY CAR
BY MODEL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT,
HFREEZE = ON,
$
ENDSTYLE
END
-RUN
This message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 16, 2015, 12:48 PM
User1
Hi,
Thanks for this..!!!
It worked.
Thanks, User1
WebFOCUS 8 Windows, All Outputs
September 16, 2015, 01:42 PM
MartinY
Edit your first post and add [SOLVED] at the beginning of the subject
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007