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.
Not sure if this is feasible but I have a report where one of the columns is set to text with some numbers in it.
So
1 6 8 Full 9 Full
I have some formatting where it checks to see if there is a value in this column 'GE 8'
Im hitting an error saying it cant do it (makes sense) since its a text type field. I also of course cant perform max, min or average for this column since its text.
I was wondering, if i were to convert this column into an ALPHA format would I then be able to manipulate the numbers in the column?
Thanks in advance WF gurusThis message has been edited. Last edited by: Rodney Chan,
How big can your data be in that particular field?
If its around <= 4096 characters, you can just add a new field in your masterfile aliasing the same database field. Make it an "A4096 " data type and treat it as you would any alphanumeric field.
You can now use MYTEXT_ALPHA as you would with any regular alpha field.
That does not solve your problem about the "8" value. Does the original field contain only "8" as its entire value, or is "8" just one piece among many others that make up the value of that field in a particular record? I ask because TEXT fields by nature are "huge" fields (CLOB's) with any content in them (including LF/CR, etc.) so you may still need to parse this alpha field, extract the value somehow (you know your data patterns) and then use/compare as you need.
Using Text Fields in DEFINE and COMPUTE Text fields can be assigned to alphanumeric fields and receive assignment from alphanumeric fields. If an alphanumeric field is assigned the value of a text field that is too long for the alphanumeric field, the value is truncated before being assigned to the alphanumeric field.
Just my thoughts here (imho), aside from your original post. You shouldn't use the same value for ALIAS multiple times. This may cause problems now or later, for you or who ever maintains this code. Also, keep in mind the rules for "shortest unique truncations" when names fields and aliases in MFDs.
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
I was wondering, if i were to convert this column into an ALPHA format would I then be able to manipulate the numbers in the column?
No, you would need a numeric field for that, not an ALPHA field.
Make sure you have some idea what 'Full' (and possibly other text strings) would mean in a numeric context - is that similar to MISSING or is it perhaps closer to 'infinity'?
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :
Doug, ALIAS= refers to the physical name of the column in the database, so it can't be changed.
I had a similar confusion years ago when I thought FIELDNAME= referred to the physical field and ALIAS= was just "my" chosen name for the field in the WebFOCUS world but it's actually the opposite. The attribute naming used in the MFD makes this confusing but there's not much we can do about that.
Assign a value to ALIAS in the following way for the following types of data sources:
Relational data sources. ALIAS describes the field original column name as defined in the relational table
Sequential data sources. ALIAS describes a synonym, or alternative name, that you can use in a request to identify the field. You can assign any name as the alias .. (more stuff)
FOCUS data sources. ALIAS describes a synonym, or alternative name, that you can use in a request to identify the field ... ( more stuff)
So, ALIAS is indeed a field "alias" when dealing with FOCUS or sequential data sources, but it refers to the original column name in the database (Oracle, SQL Server, etc.) which is the way I regularly use it.
I just assumed Rodney was using a DBMS as he needed to deal with a TEXT field which I usually associate with DBMS-based tables.
Perhaps he could tell us exactly what he's using and how?
Anyway, this was a good refresh of foundation concepts for me
I was wondering, if i were to convert this column into an ALPHA format would I then be able to manipulate the numbers in the column?
No, you would need a numeric field for that, not an ALPHA field.
Make sure you have some idea what 'Full' (and possibly other text strings) would mean in a numeric context - is that similar to MISSING or is it perhaps closer to 'infinity'?
Ugh this is what i was wanting to confirm.
I will speak to the end user and just try to convince them to use a numeric error code (such as 9999) rather then display text as its really causing a lot of problems with formatting and calculations and such.