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.
FOCCACHE is not functioning. I am unable to do a compute then read the results to. It's also not showing up when "? PATH" command is used.
Hold files are containing the correct data but when read it's not retrieving the correct information.
Here's a sample...
TABLE FILE CAR
PRINT
COMPUTE NEWMODEL/A8 = EDIT(MODEL,'99999999');
WHERE MODEL CONTAINS 'COROLLA'
ON TABLE HOLD AS BEGINMODEL FORMAT DFIX DELIMITER ,
END
-RUN
-READ BEGINMODEL, &NEWMODEL
-TYPE &NEWMODEL
This still returns the whole string.
This was functioning in our 8007 environment but since upgrading its not functioning correctly.This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8.0.07 and 8.2.01M UNIX, WINDOWS, ORACLE PDF, CSV, Excel, TXT, XML, HTML
Posts: 65 | Location: Maryland | Registered: January 17, 2012
FOCCACHE is in PATH by default, so no need to add it.
With -READ you need to add the field format. If you don't want to bother, use READFILE. Also, I don't understand why you HOLD as a DFIX format. If it's just to put the value in a variable you don't need it.
Below two options: with READ and with READFILE. The dashes that I put in the TYPE surrounding &NEWMODEL are there just to show the starting and ending point of the variable length.
TABLE FILE CAR
PRINT COMPUTE NEWMODEL/A8 = EDIT(MODEL,'99999999');
WHERE MODEL CONTAINS 'COROLLA'
ON TABLE HOLD AS BEGINMODEL
END
-RUN
-* OPTION 1
-READ BEGINMODEL &NEWMODEL.A8.
-* OPTION 2
-*-DEFAULTH &NEWMODEL = ''
-*-READFILE BEGINMODEL
-TYPE -&NEWMODEL-
This message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Using DFIX to have multiple variables shouldn't be a reason. As per below, I have multiple variables and they all been assigned. You can also rename the variable using the AS name feature or keep it as is from the master file.
SET ASNAMES = ON
TABLE FILE SALHIST
PRINT PIN
EFFECTDATE
COMPUTE NDATE /MDYY = EFFECTDATE;
OLDSALARY AS 'SALARY'
WHERE READLIMIT EQ 1;
WHERE RECORDLIMIT EQ 1;
ON TABLE HOLD AS TMP
END
-RUN
-DEFAULTH &PIN = ''
-DEFAULTH &EFFECTDATE = ''
-DEFAULTH &NDATE = ''
-DEFAULTH &SALARY = ''
-READFILE TMP
-RUN
-TYPE PIN: -&PIN- EFFECTDATE: -&EFFECTDATE- NDATE: -&NDATE- SALARY: -&SALARY-
As per the HYYMDS format, it may be related to master file definition or function used. Difficult to say and reproduced since no IB sample file has that format. Also, what is exactly the issue with that ?
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
I understand what you're saying about DFIX not being needed.
I'm not the one who implemented this code and I'm not interested in finding/updating 100's of procedures.
The questions still remain... Why is FOCCACHE not existent in the ? PATH...and Why is the DFIX appearing to add a column to the beginning of the hold table.
WebFOCUS 8.0.07 and 8.2.01M UNIX, WINDOWS, ORACLE PDF, CSV, Excel, TXT, XML, HTML
Posts: 65 | Location: Maryland | Registered: January 17, 2012