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     Missing line in SUBHEAD

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Missing line in SUBHEAD
 Login/Join
 
Platinum Member
posted
I'm using WebFOCUS 7.6.4.

I have a query that I am using a 5 line header at the top of the report, but declaring the values on that header elsewhere. For some reason, the final report only includes lines 1, 2 ,3, & 5 (4 is missing).

Does anyone know why this would happen?

My Code:

SET ASNAMES = ON

-SET &TODAY = DATECVT(&YYMD, 'I8YYMD', 'YYMD');

-SET &BACK30DAYS = &TODAY-30;

-SET &HEAD1 = '"'|'Proprietary Information'|'"';
-SET &HEAD2 = '"'|'Cycle Time Report'|'"';
-SET &HEAD3 = '"'|'Report Start Date: ' | EDIT (DATECVT ( &BACK30DAYS, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );
-SET &HEAD4 = '"'|'Report End Date: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );
-SET &HEAD5 = '"'|'Date Prepared: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );

-*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

TABLE FILE BASELINE
PRINT
BASELINE.FIELD1
BASELINE.FIELD2
BASELINE.FIELD3
BASELINE.FIELD4

BY BASELINE.FIELD1 NOPRINT

ON TABLE SUBHEAD
&HEAD1.EVAL
&HEAD2.EVAL
&HEAD3.EVAL
&HEAD4.EVAL
&HEAD5.EVAL

ON TABLE SET STYLE *
TYPE=TITLE, COLOR=NAVY, STYLE=BOLD+UNDERLINE, $
TYPE=REPORT, TITLETEXT= 'CYCLE TIME', $
TYPE=TABHEADING,STYLE=BOLD,$
TYPE=SUBHEAD,STYLE=BOLD,$
TYPE=SUBFOOT,STYLE=BOLD,$
TYPE=TABFOOTING,STYLE=BOLD,$
ENDSTYLE

ON TABLE PCHOLD FORMAT EXL2K
END

Any help would be appreciated.

-CWM


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Expert
posted Hide Post
CWM,

quote:

-SET &HEAD1 = '"'|'Proprietary Information'|'"';
-SET &HEAD2 = '"'|'Cycle Time Report'|'"';
-SET &HEAD3 = '"'|'Report Start Date: ' | EDIT (DATECVT ( &BACK30DAYS, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );
-SET &HEAD4 = '"'|'Report End Date: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );
-SET &HEAD5 = '"'|'Date Prepared: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );


S/B

-SET &HEAD1 = '"'|'Proprietary Information'|'"';
-SET &HEAD2 = '"'|'Cycle Time Report'|'"';
-SET &HEAD3 = '"'|'Report Start Date: ' | EDIT (DATECVT ( &BACK30DAYS, 'YYMD' , 'I8MDYY' ) , '99/99/9999' ) | '"';
-SET &HEAD4 = '"'|'Report End Date: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' ) | '"';
-SET &HEAD5 = '"'|'Date Prepared: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' ) | '"';


At the top of your program add

-SET &ECHO=ALL;

and you will get error messages, if any...


Edit: Had the wrong code copied in and didn't see the missing double quotes at the end...
Tom

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
That worked!

Thank you.


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
My method (which is completely user preference) is to always use the double quotes for headings, footing, etc. and form the &var strings accordingly. - Helps me recognize my text lines because they always have the " marks.

So I would
-SET &HEAD1 = 'Proprietary Information';
-SET &HEAD2 = 'Cycle Time Report';
-SET &HEAD3 = 'Report Start Date: ' | EDIT (DATECVT ( &BACK30DAYS, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );
-SET &HEAD4 = 'Report End Date: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );
-SET &HEAD5 = 'Date Prepared: ' | EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' );

and then

ON TABLE SUBHEAD
"&HEAD1.EVAL"
"&HEAD2.EVAL"
"&HEAD3.EVAL"
"&HEAD4.EVAL"
"&HEAD5.EVAL"

This works best for me but when the heading/footing is always of fixed number of lines. However if the subhead can have variable lines based on some parameter, then I do include the " in the parameter string.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
Darin

100% agree, but, sometimes I let automony take over...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Virtuoso
posted Hide Post
CWM,

Instead of:
EDIT (DATECVT ( &TODAY, 'YYMD' , 'I8MDYY' ) , '99/99/9999' )
why no use:
&DATEMDYY?

Also, since your &HEADs do not contain DM commands, you don't need the .EVAL suffix.


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
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Missing line in SUBHEAD

Copyright © 1996-2020 Information Builders