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.
Hello everyone. I have researched the site for a solution to my problem and found Case: 20442045 to be somewhat helpful but can't get it to work with my report because I am placing fields 'over' other fields. Placement of my report fields is all out of wack. Here's a sample of what my report should look like.
ZONE: 11 12 TOTAL JAN 2009 ORDER 4069 2973 7042 RECVD 4050 2961 7011 DIFF 19 12 31 %RECV 99% 99% 99%
1) I'm selecting criteria from my detail table and the output is:
SUM ORDER# RECVD# DIFF# BY DELVMONTH BY DELIVMO BY ZONE ON TABLE HOLD AS SUMMARY
2) I'm doing a define on my Summary table as follows:
DEFINE FILE SUMMARY REC%/D5.1% = (RECVD#/ORDER#)*100; END
3) And my final step is: TABLE FILE SUMMARY SUM ORDER# OVER RECVD# OVER DIFF# OVER REC% BY DELVMONTH NOPRINT BY DELIVMO ACROSS ZONE HEADING "<30>PAGE<+0> "<30>" " " " ON TABLE ROW-TOTAL ON TABLE PCHOLD FORMAT PDF ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=6,COLOR='BLACK',BACKCOLOR='NONE',STYLE=NORMAL,$ END
Output looks great except for the percentage in the TOTAL column. I wasn't able to find a solution that works with 'over'. Thanks for your help! TimpyThis message has been edited. Last edited by: Kerry,
Web Focus Developer Studio Release 7.6.1 Output formats include Excel, PDF, HTML, XML.
FILEDEF MAS DISK MYMASTER.MAS
FILEDEF DATA DISK MYDATA.FTM
FILEDEF MYMASTER DISK MYDATA.FTM
-RUN
-WRITE MAS FILENAME=MYMAS, SUFFIX=FIX
-WRITE MAS SEGNAME=MYMASTER
-WRITE MAS FIELDNAME=ORDER# , FORMAT=I6, ACTUAL=A6, $
-WRITE MAS FIELDNAME=RECVD# , FORMAT=I6, ACTUAL=A6, $
-WRITE MAS FIELDNAME=DELVMONTH, FORMAT=A6, ACTUAL=A6, $
-WRITE MAS FIELDNAME=DELIVMO , FORMAT=A8, ACTUAL=A8, $
-WRITE MAS FIELDNAME=ZONE , FORMAT=A6, ACTUAL=A6, $
-WRITE DATA 4069 4050012009JAN 2009 11
-WRITE DATA 2973 2873012009JAN 2009 12
-WRITE DATA 7042 6523012009JAN 2009 13
DEFINE FILE MYMASTER
DIFF#/I6 = ORDER# - RECVD#;
END
TABLE FILE MYMASTER
SUM ORDER# RECVD# DIFF#
BY DELVMONTH
BY DELIVMO
BY ZONE
ON TABLE HOLD AS SUMMARY
END
DEFINE FILE SUMMARY
TZONE/A6 = 'TOTAL';
END
TABLE FILE SUMMARY
SUM ORDER#
RECVD#
DIFF#
COMPUTE REC%/D5.1 = (RECVD#/ORDER#)*100;
BY DELVMONTH NOPRINT
BY DELIVMO
BY TZONE AS ZONE
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS MYHOLD FORMAT ALPHA
END
FILEDEF MYHOLD DISK MYHOLD.FTM (APPEND
DEFINE FILE SUMMARY
REC%/D5.1% = (RECVD#/ORDER#)*100;
END
TABLE FILE SUMMARY
SUM ORDER#
RECVD#
DIFF#
REC%
BY DELVMONTH NOPRINT
BY DELIVMO
BY ZONE
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES ON
ON TABLE HOLD AS MYHOLD FORMAT ALPHA
END
-RUN
TABLE FILE MYHOLD
SUM ORDER#
OVER RECVD#
OVER DIFF#
OVER REC%
BY DELIVMO
ACROSS ZONE
HEADING
"<30><80>PAGE<+0> "
"<30><80><90>"
" "
-*ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=6,COLOR='BLACK',BACKCOLOR='NONE',STYLE=NORMAL,$
END
Please note that this will only work right if the field ZONE has the exact same format as the TZONE field. If that's the case (as it is in the above code) it will give you the correct output, I think.
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007