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     Add field value to column heading?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Add field value to column heading?
 Login/Join
 
Master
posted
I want to add a field's value to a column heading.
I'm trying to treat it as if it were a heading, and that's just returning a blank.

BY D_PL AS '
but, if I set it as
HEADING
"
Any ideas?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
In Field Titles you can put amper variables, but not an actual field value. You will have to do a SUBHEAD and line it up.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
jason, remember to put code tags around your snippets, especially if they contain any brackets that this board will consider to be html tags.
As Prarie suggests, one way is to first extract that value as an &var.
TABLE FILE thing
PRINT D_PL ..
ON TABLE SAVE
END
-RUN
-READ SAVE &D_PL.A8 (how however long it is)
-TYPE &D_PL
and then see what sort of editing you need to do to the field to get it in shape
TABLE FILE thing
... BY D_PL AS " &D_PL "




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
Thanks for the tip susannah.

Any idea why the data would be showing up as
000007October when I use the -READ method? Is there a way around this?

thanks!

This message has been edited. Last edited by: Jason K.,


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
Yes, your D_PKL field is a VarChar field. When holding it, the way this is done is to first put the number of bytes actually accopied followed by the actual characters.
So 000007 is the length of the field, the value is October.
Do a -READ &x.6 &D_PL.8 (or whatever the real length may be), skipping the first 6 (=length of the field) bytes.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
yeah, the leading zero thing with alpha versions of numbers...you have to then do a bit of cleanup edit..
I'ld probably use the TRIM function.
(Look up the text string functions section in manual #4 Using Functions.)
When you SAVE or even HOLD FORMAT ALPHA
the numeric values are automatially saved as ALPHA and leading zeros pack out the front of any numeric field. TRIM will remove either leading or trailing instances of a specified character, in this case a 0.
Prarie's way uses the numeric field right out of the data..no leading zero prob..you can tinker with lining up the SUBHEAD, if you wanted to go that route.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Master
posted Hide Post
ended up using
quote:
-READ &x.6 &D_PL.8


Thanks guys!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
If the first 6 characters tell you the lenght of the actual field it would be interesting if you can say

-READ SAVEFILE &LENGTH.A6. &ACTUAL.A&LENGHT.

I never tried this, but maybe....




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 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     Add field value to column heading?

Copyright © 1996-2020 Information Builders