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.
table file file1
sum
emp_count
by org_name
across emp_type
across sex
across age_group
end
i have one report like this, need to display the across fileds "sex" and "age_group" horizontal,just like this. how can i make it out? thanks very much for reply!
----------------------emp_type1------------| emp_type2 ----------| -----------------sex-----------|age_group|--------sex----|age_group | ----------------male|female|<=30| >30|male|female|<=30|>30 | company 1 --120-|-80---| 110|90 |110 |90 |100 |100 | company 2 --130 |-90---| 120|100 |110 |90 |100 |100 |This message has been edited. Last edited by: swell.wang,
webfocus 7.65 windows xp sp3 excel,html ,pdf,and graph
See if you can make sense of the following code, it produces what you're looking for.
-SET &ECHO=ALL;
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
SET ASNAMES=ON
-RUN
-* Create demo data
DEFINE FILE EMPLOYEE
BIRTHDAY/YYMD = HIRE_DATE;
SEX/A10 = IF SALARY LT 15000 THEN 'Male' ELSE 'Female';
COMPANY/A30 = JOB_DESC;
EMP_COUNT/P9 = 1;
EMP_TYPE/A1 = SUBSTR(3, JOBCODE, 1, 1, 1, 'A1');
AGE/I4 = DATEDIF(BIRTHDAY, '&YYMD.EVAL', 'Y');
AGE_GROUP/A4 = IF AGE LE 30 THEN '<=30' ELSE '>30';
END
TABLE FILE EMPLOYEE
PRINT
BIRTHDAY
SEX
COMPANY
EMP_COUNT
JOBCODE
EMP_TYPE
AGE
AGE_GROUP
ON TABLE HOLD AS DEMODATA
END
-RUN
-* Prepare data - part 1
DEFINE FILE DEMODATA
SEX_AGE/A10 = SEX;
SEX_AGE_SORT/A2 = IF SEX EQ 'Female' THEN '11' ELSE '10';
END
TABLE FILE DEMODATA
SUM
EMP_COUNT
BY COMPANY
BY SEX_AGE
BY SEX_AGE_SORT
BY EMP_TYPE
ON TABLE HOLD AS H1
END
-RUN
-* Prepare data - part 1
DEFINE FILE DEMODATA
SEX_AGE/A10 = AGE_GROUP;
SEX_AGE_SORT/A2 = IF AGE_GROUP EQ '>30' THEN '21' ELSE '20';
END
TABLE FILE DEMODATA
SUM
EMP_COUNT
BY COMPANY
BY SEX_AGE
BY SEX_AGE_SORT
BY EMP_TYPE
ON TABLE HOLD AS H2
END
TABLE FILE H1
SUM
EMP_COUNT
ACROSS EMP_TYPE
ACROSS SEX_AGE_SORT NOPRINT
ACROSS SEX_AGE AS ''
BY COMPANY
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON,
FONT='ARIAL', SIZE=8,
BORDER=1, BORDER-COLOR=SILVER,
$
ENDSTYLE
MORE
FILE H2
END
-RUN