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.
You can first read the values into a amper variable and use that as Lidholm suggested. Something like
TABLE FILE TABLENAME
PRINT
COMPUTE PREV.MED/A14 = MED|MONTH.PR|PREV.YR;
ON TABLE SAVE AS FIL1
END
-RUN
-READ FIL1, &COLNAME
TABLE FILE TABLENAME
PRINT
COMPUTE PREV.MED.TOT AS &COLNAME
END
Thanks Sashanka
WF 7.7.03/Windows/HTML,PDF,EXL POC/local Dev Studio 7.7.03 & 7.6.11
Thank you for your reply. Your thought worked with a slight addition to it.
I followed: Before saving the SAVE file I used -SET &PREV = ' ';
Then I stored it in a SAVE file. After this: -RUN -READ FIL1 &PREV TABLE FILE MYHOLD WRITE PREV.MED.TOT AS &PREV BY FIELD1 ON TABLE HOLD AS HOLDDONE END
It worked smoothly.
Thank you Lidholm and Sashanka.
Note: peroid was not accepting: I have changed -SET &PREV.MED to -SET &PMED to get the desired results.
FOCUS 7.6.11 Windows, Excel, LOTUS, ALPHA
Posts: 14 | Location: New Delhi | Registered: September 20, 2011
I would strongly suggest that you do not use a period as a name part separator, as this is used by WebFOCUS to separate Masters and Segmetns and file names, as well as functions like MAX, MIN, FST, LST and TOT.