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.
The MNYY fields (i.e. JUL10) contains monetary value (i.e. $23,000) for that month, and the elements cover an entire fiscal year.
I am trying to create a report which will loop thru the data file and select the correct no. of MMYY fields to display in a report if the report is requested prior to the end of the fiscal year.
I have been trying to code a fex using the CHECK FILE command:
quote:
CHECK FILE AGEGRP_11_A HOLD -RUN
but I'm not getting far. Any ideas?
quote:
CHECK FILE AGEGRP_11_A HOLD -RUN
TABLE FILE HOLD PRINT FIELDNAME BY FIELDNAME NOPRINT WHERE SEGNO EQ 1 ON TABLE SAVE END -RUN
TABLE FILE AGEGRP_11_A SUM -READ SAVE &Fieldname.A66 -* -REPEAT :Loop WHILE &IORETURN EQ 0; -* &Fieldname -READ SAVE &Fieldname.A66
-:Loop END -RUN
Thanks!This message has been edited. Last edited by: Kerry,
Assuming the last 12 fields are needed, the financial year, then this may work.
CHECK FILE AGEGRP_11_A HOLD
-RUN
TABLE FILE HOLD
PRINT FIELDNAME
BY FLDNO NOPRINT
WHERE SEGNO EQ 1
WHERE FLDNO GE 3
ON TABLE SAVE AS FY_COLS
END
-RUN
TABLE FILE AGEGRP_11_A
SUM
-INCLUDE FY_COLS
END
-RUN
If the last 12 will not work, then you may be able to try another method, like filtering on the format, USAGE EQ 'D12.2'. You filter on the field names. FIELDNAME LIKE 'JUL%' OR ....