Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Problem using &vars in html report heading

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Problem using &vars in html report heading
 Login/Join
 
Master
posted
Per the code posted below, I'm trying to use &values in my report heading ...

quote:

-SET &T2DAY = &YYMD;
-SET &NWDAY = CHGDAT('YYMD','MDTYY',&T2DAY,'A17');
-SET &TNWDAY = TRUNCATE(NWDAY);

-SET &HAGE = AYMD(&YYMD,-&AGEX.EVAL,'I8YYMD');
-SET &SRDAY = CHGDAT('YYMD','MDTYY',&HAGE,'A17');
-SET &TSRDAY = TRUNCATE(SRDAY);

TABLE FILE MMDB1
PRINT
DYMD AS 'RCVD,DATE'
COMPUTE TNUM/A11V = TRIMV('T',NUMBER,11,'',1,TNUM); NOPRINT
COMPUTE TSTRT/A25V = TRIMV('T',STREET,25,'',1,TSTRT); NOPRINT
COMPUTE ADDRESS/A37V = TNUM || (' ' | TSTRT);
COMPUTE WDCX/A34 = WDC || (' ' | WORKDESC); AS 'WORK DESCRIPTION'
ASSIGNEE
STATUS NOPRINT
BY HIGHEST DIFF AS '#DAYS,OPEN' NOPRINT
BY WO

WHERE ASSIGNEE EQ '&ASGX';

WHERE STATUS EQ 'O';
WHERE DYYMD GE AGEDIF;

IF RECORDLIMIT EQ 80
-*
HEADING
" LIST OF OPEN ORDERS "
" ORDERS FROM &TSRDAY TO &TNWDAY "
" ORDERS ASSIGNED TO &ASGX "
" DATE OF REPORT: &TNWDAY "
" "
-*
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOPAGE
ON TABLE NOTOTAL
-*
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,GRID=OFF, SIZE=10, FONT=TIMES NEW ROMAN,$
TYPE=DATA, COLOR=BLACK, SIZE=9, BACKCOLOR=( 'RED' RGB(100 149 237 ) ),$
TYPE=HEADING, JUSTIFY=CENTER,$
TYPE=HEADING, SIZE=12,$
TYPE=HEADING, LINE=1, STYLE=BOLD,$
TYPE=HEADING, SIZE=12,$
TYPE=HEADING, LINE=2, STYLE=ITALIC,$
TYPE=TITLE, SIZE=10, STYLE=BOLD,$

ENDSTYLE
-XZEBRA
END
-RUN

-EXIT


Instead of seeing this:

quote:

LIST OF OPEN WORK ORDERS
ORDERS FROM AUG 05 2012 TO SEP 04 2012
DATE OF REPORT: SEP 04 2012


I am seeing this result:

quote:

LIST OF OPEN ORDERS
ORDERS FROM SRDAY TO NWDAY
DATE OF REPORT: NWDAY


I am working w 7.7.03, and I have not ever seen this any other release of WF. Frowner

Has anyone else experienced this problem?

Thanks!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
The clue is in this line:

-SET &TNWDAY = TRUNCATE(NWDAY);


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
-SET &TNWDAY = TRUNCATE(NWDAY);


How about coding:
  
-SET &TNWDAY = TRUNCATE(&NWDAY);


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
Thanks. I coded this on a mainframe first before retyping it on the WF server.


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Problem using &vars in html report heading

Copyright © 1996-2020 Information Builders