Focal Point Banner


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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Column Title
 Login/Join
 
<We_Focus>
posted
Hi All

DEFINE SALESWORK
MYYEAR/YYTM=DATEADD(DATEVAL,'M', 2);
END

I Want the Value of MYYEAR in My Column Title

TABLE FILE EMPDS
SUM
MY1VAL AS ' MYYEAR '
BY
WID
END

=============================
We_Focus
 
Report This Post
Platinum Member
posted Hide Post
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

Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Expert
posted Hide Post
would SUM MY1VAL ACROSS MYYEAR AS ''
work for you?
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<We_Focus>
posted
Hi
K Lane and Susannah
My Problem have been Sovled by K.Lane,s Method
Thanks for Both of your help
=========================================
We_Focus
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders