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.
Leah's solution is correct, but only if your database holds only one person per country per position. If you have more than one, you will only one of them.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
That way column headers will come in a different way (read across field) But i need at same level...
nway, i have done in this way...
TABLE FILE B_SQL_PROJECTS
PRINT
DST.NAME AS 'PNAME'
DST.NUMBER AS 'PNUMBER'
DST.TYPEOFBUILDING AS 'CYEAR'
DST.TYPEOFCONSTRUCTION AS 'CMONTH'
COMPUTE ENAME/A70 = FIRSTNAME || '' || LASTNAME; AS 'ENAME'
-* COMPUTE DESG/A20= IF DEFGROUPID EQ '134' THEN 'PM' ELSE IF DEFGROUPID EQ '139' THEN 'OSR' ELSE IF DEFGROUPID EQ '124' THEN 'DM' ELSE IF DEFGROUPID EQ '125' THEN 'REM' ELSE IF DEFGROUPID EQ '136' THEN 'DPM' ELSE 'OTHER'; AS 'DESG'
DEFGROUPID
WHERE NUMBER EQ 'T212091' OR 'T211871' OR 'T212173' OR 'T202590';
-*WHERE READLIMIT EQ 1000
ON TABLE HOLD AS PCD1
END
-RUN
DEFINE FILE PCD1
PM/A70=IF DEFGROUPID EQ 134 THEN ENAME;
OSR/A70=IF DEFGROUPID EQ 139 THEN ENAME;
DM/A70=IF DEFGROUPID EQ 124 THEN ENAME;
REM/A70=IF DEFGROUPID EQ 125 THEN ENAME;
DPM/A70=IF DEFGROUPID EQ 136 THEN ENAME;
END
TABLE FILE PCD1
-* ENAME
SUM
PM
OSR
DM
REM
DPM
BY PNAME AS 'Project Name'
BY PNUMBER AS 'Project Number'
BY CYEAR AS 'Cycle Year'
BY CMONTH AS 'Cycle,Month'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
END
SamThis message has been edited. Last edited by: focuzsambit,
What is PRINT DST.NAME supposed to do? Using DISTINCT with PRINT is redundant since PRINT uses the lowest level of detail. DST is only valid with SUM.
Also agree that this is really the LONG SCENIC route.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
I am not looking at displaying the data...hence across is not the solution...i want to change the dimensions of the data...i want columns (PM OSR DM REM DPM)...
i think the define is not bringing data into one level...but sum/by is taking care of that in last print ??