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.
Hi, do you want to check if this field has a value or if this field exists (in other words, if the name of the field is in the Master)?
In the first case you can use IS MISSING (when MIISSING is a possible value) or you can use FIELD EQ ''. In the second case, I don't know. But if you have Master file, you should already know if the name of the field exists.
Dynamic data.... May be in a ACROSS statement. In this example you don't know the possible values of FIELD1 and so you don't know how may fields has file X2 and the names. Is it your case?
TABLE FILE X1
SUM TOTAL1 AS ''
BY KEY
ACROSS FIELD1
ON TABLE HOLD AS 'X2'
END
By default, i want some 10 columns to be displayed in my request. So, if the across field has got only 5 values then i want only the 5 columns to be displayed with Across field value and others as blank.
Also, in my case, i want to position the coulmn according to the across field value. if the across field value is CAR8, then i want CAR8 values to be displayed in 8th column. If it is CAR3 then in 3rd column.
I tried something as follows, COMPUTE P1/A20 = HoldField1; COMPUTE P2/A20 = HoldField2;
It fails when there is no value for across field or no filed in the hold file.
WF 7.7.02 on Windows 7 Teradata HTML,PDF,EXCEL,AHTML
Have you already tried to create a file guide and then match (or join) with across file? In this way all the fields of across file will be display. I don't know other ways
MATCH FILE Z1
PRINT *
BY KEY
RUN
FILE X2
SUM *
BY KEY NOPRINT
AFTER MATCH HOLD AS 'Z2' OLD
END
ACROSS field_name COLUMNS 'CAR1' AND 'CAR2' AND 'CAR3' etc.
The advantage of doing this is that if CAR6 never appears in the data it will still appear in your report.
This has been covered many times in previous posts but you have to be non-restrictive in your search and try several different key words with similar meaning.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004