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.
I have a report that is ran monthly. In each version of the report I have multiple sets of columns (1 for the previous month and one for the month prior to the previous month in each set). For example Cost 5/13 and Cost 6/13. Is there a way to dynamically set variables to declare the column titles in the AS 'Cost "date"' syntax?
Dan, Could you be a bit more specific? How are you generating your columns? with an ACROSS? do you have in fact 3 fields (this month, last month, the one before last)?
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
I was able to resolve my issue with just setting variables as the month/year that I wanted and then appending to to the end of my existing AS declarations.
I'll assume you have three separate fields (COSTA,B,C).
You can compute the column titles in dialog manager variables, and insert them into the AS phrase, as shown below.
The parameter &ASOF is a yyyymmdd (or just yyyymm) value. The -DEFAULT line makes the run date the default value, but allows it to be overridden (to produce back-issues of the report). EDIT is used to isolate the year and month portion of the date; AYM to obtain those of the prior two months; the remaining edits insert the slash, and drop leading zero where applicable.
-DEFAULT &ASOF = &YYMD.EVAL;
-SET &YYM0 = EDIT(&ASOF,'999999');
-SET &YYM1 = AYM(&YYM0,-1,'I6');
-SET &YYM2 = AYM(&YYM0,-2,'I6');
-SET &MY0 = EDIT(&YYM0,'$$$$99/') | EDIT(&YYM0,'$$99') ;
-SET &MY1 = EDIT(&YYM1,'$$$$99/') | EDIT(&YYM1,'$$99') ;
-SET &MY2 = EDIT(&YYM2,'$$$$99/') | EDIT(&YYM2,'$$99') ;
-SET &Current = IF EDIT(&MY0,'9') EQ '0' THEN EDIT(&MY0,'$9999') ELSE &MY0 ;
-SET &Penult = IF EDIT(&MY1,'9') EQ '0' THEN EDIT(&MY1,'$9999') ELSE &MY1 ;
-SET &Antepenult = IF EDIT(&MY2,'9') EQ '0' THEN EDIT(&MY2,'$9999') ELSE &MY2 ;
TABLE
. . .
COSTC AS 'Cost &Antepenult'
COSTB AS 'Cost &Penult'
COSTA AS 'Cost &Current'
. . .
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005