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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Finding The Fiscal Year

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Finding The Fiscal Year
 Login/Join
 
Member
posted
I need to find out what the current fiscal year is within a define, but I keep getting the following error: (FOC281) ALPHA ARGUMENTS IN PLACE WHERE NUMERIC ARE CALLED FOR

Here is my code:
.....
DAY/A4=TODAY(DAY);
MN/A4=EDIT(DAY, '99$$$$$$$$');
YR/A4=EDIT(DAY, '$$$$$$9999');
FISCAL_YR/A4=
IF MN LT '7'
THEN YR
ELSE YR + 1; -*also tried ELSE YR + '1';
END

If I take away the '+ 1', then I have no problems, but I need to instill the following logic:
if the current month is less than 7
then give me the current year
else give me the current year + 1 (ex: 2006 + 1)

Any ideas? Thanks in advance!


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
 
Posts: 18 | Registered: May 23, 2004Report This Post
Guru
posted Hide Post
Try this code:

TODAY/A8 = '&YYMD';
DAY/A4=EDIT(TODAY, '$$$$$$99');
MN/A2=EDIT(TODAY, '$$$$99$$');
YR/A4=EDIT(TODAY, '9999$$$$');
FISCAL_YR/I4=
IF MN LT '07'
THEN EDIT(YR)
ELSE EDIT(YR) + 1;
END


Glenda


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report This Post
Member
posted Hide Post
EDIT()!!!! Thank you so much! Works like a charm.


Jeff
DevStudio, 5.2.6
Please be kind....I'm new at this!
 
Posts: 18 | Registered: May 23, 2004Report This Post
Platinum Member
posted Hide Post
A smart date way:

DEFINE FILE CAR
S_TODAY/YYMD = '&YYMD';
S_DAY/D = S_TODAY;
S_MN/M = S_TODAY;
S_YR/YY = S_TODAY;
F_YR/YY = IF S_MN LT 7 THEN S_YR ELSE S_YR + 1;
END
-*
TABLE FILE CAR
PRINT
CAR
S_TODAY
S_DAY
S_MN
S_YR
F_YR
WHERE RECORDLIMIT EQ 1
END


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
 
Posts: 118 | Location: Lincoln Nebraska | Registered: May 04, 2005Report This Post
Guru
posted Hide Post
So your fiscal year ends in June?

Here's an example that shows what Fiscal year an employee was hired in if the fiscal year ends in June.

DEFINE FILE EMPDATA
HIRE_YM/YYM = HIREDATE;
FISCAL_HIRE/YYM = HIRE_YM +6;
FISCAL_YEAR/YY = FISCAL_HIRE;
END
TABLE FILE EMPDATA
PRINT PIN HIRE_YM FISCAL_HIRE FISCAL_YEAR
BY HIREDATE
END


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Finding The Fiscal Year

Copyright © 1996-2020 Information Builders