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.
As it stands, you won't be able to do this. Technically speaking, you'd have to code it with a fieldname in the AS.
However, it doesn't work this way. Without knowing the nature of DATEVAL and MYYEAR, it's hard to say.
If MYYEAR will end up being a single distinct value, then you could do this:
TABLE FILE SALESWORK SUM MAX.MYYEAR ON TABLE SAVE AS MYYEAR END -RUN -SET &MYYEAR.A20. -READ MYYEAR &MYYEAR
TABLE FILE EMPDS SUM MY1VAL AS '&MYYEAR' BY WID END
...Of course, the -SET &MYYEAR.A20. would depend on the actual length of the field being saved. If you run ran the request up to the -RUN (before the &MYYEAR), you should see the actual length of the SAVE file. It is this value that you would use in the -SET.
However, that being said, it depends on whether MYYEAR (from the define) will be a distinct value. If not, then you would probably want to do an ACROSS MYYEAR such as:
TABLE FILE EMPDS SUM MY1VAL BY WID ACROSS MYYEAR END