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.
WP format is a very limited format way back from the Mainframe. Stylesheets do not apply and many of the new SET commands will not have any effect.
The underlines cannot be removed with a command, so if this is a must you will have to do it yourself.
I played around a bit with the problem and this is what I have arrived at. I suppose you will be getting other solutions.
-* File Piscian1.fex
-SET &ECHO=ALL;
-* create the WP file.
-* note: one cannot leave the beginnig of the lines as spaces because when using DM later
-* it will squeeze the blanks out... (somebody knows why?)
TABLE FILE CAR
SUM CAR MODEL SALES
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL NOPRINT
ON COUNTRY PAGE-BREAK
HEADING CENTER
"Report for Country:<COUNTRY "
ON TABLE HOLD AS PISCIAN FORMAT WP
END
-*!COPY PISCIAN.WP C:\TEMP
-* for the final output the lines in the WP file must have equal length
-* so use DM to copy the WP file line by line and complete to the desired length, in this example 133 chars
FILEDEF WPISCIAN DISK WPISCIAN.WP
-RUN
-#NEXT
-READ PISCIAN,&WPLINE
-IF &IORETURN GOTO #END;
-SET &WPLINE=SUBSTR(&WPLINE.LENGTH, &WPLINE, 1, &WPLINE.LENGTH, 133, 'A133');
-WRITE WPISCIAN &WPLINE
-GOTO #NEXT
-#END
-*!COPY WPISCIAN.WP C:\TEMP
-RUN
-* create a MASTER file for the fixed length WP file
EX -LINES 4 EDAPUT MASTER,WPISCIAN,C,MEM
FILENAME=WPISCIAN, SUFFIX=FIX
SEGNAME=WPISCIAN, SEGTYPE=S0
FIELDNAME=WPLINE, ALIAS=WPLINE, FORMAT=A133 ,ACTUAL=A133, $
-RUN
-* create a new WP file in which the --- have been removed
TABLE FILE WPISCIAN
PRINT WPLINE AS ''
IF WPLINE OMITS '---'
ON TABLE SET PAGE NOPAGE
ON TABLE HOLD AS FINAL FORMAT WP
END
-*!COPY FINAL.WP C:\TEMP
-* the copy commands were used for debugging. i left them in
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, 2006
I haven't used WP in years, but it might be easier for you to create your titles as a heading line.
TABLE FILE CAR SUM CAR AS '' IN 5 MODEL AS '' IN 20 SALES AS '' IN 40 BY COUNTRY NOPRINT BY CAR NOPRINT BY MODEL NOPRINT ON COUNTRY PAGE-BREAK HEADING CENTER "Report for Country:"<5 CAR <20 MODEL <40 SALES" ON TABLE PCHOLD AS PISCIAN FORMAT WP END
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
Someone forgot to put their code inside the code makers - always gets you when you're trying to display fields embedded in a heading.
As Daniel says, styling and WP format do not go together. You get one or the other. If you must have WP format, I would go with Pat's suggestion to remove column headings and put them in a page heading line.
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, 2007