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.
BY OS_USERNAME BY LOGON_DATE BY USERNAME WHERE MASTER_SESSION EQ 1 -* &strSCHEMA.EVAL <- from selection Screen &strMONTH.EVAL &strYEAR.EVAL ON TABLE HOLD AS USR_DATA END
ON GRAPH SET LOOKGRAPH LINE -* -GOTO STYLEFLD; -* -SKIPBY -* SUM MAX.LCOUNTER AS 'Concurrent Users' BY USERNAME AS ' '
-*ACROSS MONTH COLUMNS JAN AND FEB AND MAR AND APR AND MAY AND JUN AND JUL AND AUG AND SEP AND OCT AND NOV AND DEC AND JAN AND FEB AND MAR AND APR AND MAY AND JUN AND JUL AND AUG AND SEP AND OCT AND NOV AND DEC ACROSS LOGIN_YEAR NOPRINT -* ON GRAPH SET LOOKGRAPH LINE END
The issue I'm having is that is the months between 2007 and 2008 are coming in as 1 thru 12 only. So, the display will come out as Jan Feb Feb Mar Mar....if there are no values for the months, it will not display. So really the issue I am having is that 2008 is being read as 1 thru 12 rather then 13 thru 24. How can I fix this?
Thanks in advance.This message has been edited. Last edited by: Kerry,
Since you have 'by year', you apparently want to report the 12 months of 2008, and below that the months of 2009.
Define the year_and_month, and its year and month components, as 'smart dates'. Then you can use numeric values 1 to 12 in the COLUMNS phrase to force all 12 months to display by name, as below.
-* get specimen data from 1/2008 thru 12/2009, -* with some gaps. DEFINE FILE GGSALES START/MYY='DEC 2007'; YYM/YYM=START+SEQ; END TABLE FILE GGSALES SUM UNITS BY SEQ BY YYM IF SEQ FROM 1 TO 24 IF SEQ NE 9 OR 14 OR 21 ON TABLE HOLD END -RUN
-* report by year across month, forcing all 12 months to appear
DEFINE FILE HOLD
YEAR/YY=YYM;
MONTH/MT=YYM;
END
TABLE FILE HOLD
SUM UNITS
BY YEAR
ACROSS MONTH COLUMNS 1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 8 AND 9 AND 10 AND 11 AND 12
END
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
SUM DST_OS_USERNAME AS 'Unique Users' BY USERNAME AS 'User Names' ACROSS MONTHS COLUMNS 'JAN 07' AND 'FEB 07' AND 'MAR 07' AND 'APR 07' AND 'MAY 07' AND 'JUN 07' AND 'JUL 07' AND 'AUG 07' AND 'SEP 07' AND 'OCT 07' AND 'NOV 07' AND 'DEC 07' AND 'JAN 08' AND 'FEB 08' AND 'MAR 08' AND 'APR 08' AND 'MAY 08' AND 'JUN 08' AND 'JUL 08' AND 'AUG 08' AND 'SEP 08' AND 'OCT 08' AND 'NOV 08' AND 'DEC 08' -*ACROSS LOGIN_YEAR NOPRINT ON GRAPH SET LOOKGRAPH LINE END
Originally posted by j.gross: Since you have 'by year', you apparently want to report the 12 months of 2008, and below that the months of 2009.
Define the year_and_month, and its year and month components, as 'smart dates'. Then you can use numeric values 1 to 12 in the COLUMNS phrase to force all 12 months to display by name, as below.
-* get specimen data from 1/2008 thru 12/2009, -* with some gaps. DEFINE FILE GGSALES START/MYY='DEC 2007'; YYM/YYM=START+SEQ; END TABLE FILE GGSALES SUM UNITS BY SEQ BY YYM IF SEQ FROM 1 TO 24 IF SEQ NE 9 OR 14 OR 21 ON TABLE HOLD END -RUN
-* report by year across month, forcing all 12 months to appear
DEFINE FILE HOLD
YEAR/YY=YYM;
MONTH/MT=YYM;
END
TABLE FILE HOLD
SUM UNITS
BY YEAR
ACROSS MONTH COLUMNS 1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 8 AND 9 AND 10 AND 11 AND 12
END
OMG this is wonderful! A one-line fix to something I've been fighting all morning. I must admit I'm not quite sure how exactly it works, but I'll take it! Thanks!