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     Subtotal / Total not showing properly

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Subtotal / Total not showing properly
 Login/Join
 
Gold member
posted
Don't know why bits of code went missing. Posting it here again. The crucial parts are there now in the
...
tags. Thank you.

-SET &ECHO=ALL;
SET NODATA = ' '
SET PRINTPLUS = ON
-DEFAULT &FROM_DATE = '20070301';
-DEFAULT &TO_DATE = '20070331';
-DEFAULT &ADATE1 = '20070601';
-DEFAULT &ADATE2 = '20070630';
-DEFAULT &OUTPUT = 'HTML';
-*
-SET &REP_NAME = 'Detailed Card Production Failures Report';
-SET &RUN_DATE = &DATEMtrDYY;
-SET &RUN_TIME = EDIT(HHMMSS('A8'),'99$:99$:99');
-SET &ORIENTATION = 'LANDSCAPE';
-SET &ADATETIME1 = EDIT(&ADATE1,'9999-99-99')| ' 00:00:00';
-SET &ADATETIME2 = EDIT(&ADATE2,'9999-99-99')| ' 23:59:59';
-SET &ADATE1TEXT = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &ADATE1, 'A17'), 'A17');
-SET &ADATE2TEXT = LCWORD(17,CHGDAT('YYMD', 'MXDYY', &ADATE2, 'A17'), 'A17');
-SET &FROM_DATE  = EDIT(&ADATE1,'9999-99-99');
-SET &TO_DATE    = EDIT(&ADATE2,'9999-99-99');
-*
SET SQLENGINE=SQLORA
SQL SET SERVER DWD_DLHCM
SQL
	SELECT cf.card_type_code, sr.reason_code, oi.card_dcn, oi.oi_identifier, cs.sts, oi.oi_effective_dt, oi.oi_dl,
	       oi.item_count
    FROM  DWDH_OWNER.DWDHF_ORDER_ITEM oi
         ,DWDH_OWNER.DWDHD_STATUS_REASON sr
         ,DWDH_OWNER.DWDHD_CARDFILE_TYPE cf
         ,DWGL_OWNER.DWGLD_COMPANY c
         ,(select card_dcn, cssr.status_code sts
  		   from dwdhf_card_stock, dwdhd_status_reason cssr
		   where dwdhf_card_stock.dhd_status_reason_id = cssr.id
		   and cssr.status_code = 'DEST') cs
    WHERE oi.dhd_status_reason_id = sr.id and sr.cur_ind_flg = 'Y'
    AND  oi.dhd_cardfile_type_id = cf.id and cf.cur_ind_flg = 'Y'
    AND  oi.gld_company_id = c.id and c.cur_ind_flg = 'Y'
    AND  sr.STATUS_CODE = 'PROD_F'
    AND  sr.REASON_CODE IN ('CARD_DAMAGED', 'DATA_QUALITY', 'SIGNATURE_QUALITY', 'IMAGE_QUALITY', 'INC_DATA')
    AND  TO_CHAR( oi.oi_effective_dt, 'YYYY-MM-DD') BETWEEN '&FROM_DATE' AND '&TO_DATE'
    and oi.card_dcn = cs.card_dcn (+)
    ORDER BY 1,4,6
;
TABLE ON TABLE HOLD AS DR2V4
END
-RUN
-*? HOLD DR2V4
-*0DEFINITION OF HOLD FILE: DR2V4
-* 0FIELDNAME                         ALIAS         FORMAT
-* CARD_TYPE_CODE                    E01           A30
-* REASON_CODE                       E02           A30
-* CARD_DCN                          E03           A100        MISSING = ON
-* OI_IDENTIFIER                     E04           A100
-* STS                               E05           A30         MISSING = ON
-* OI_EFFECTIVE_DT                   E06           HYYMDS
-* OI_DL                             E07           A17         MISSING = ON
-* ITEM_COUNT                        E08           P2
TABLE FILE DR2V4
SUM ITEM_COUNT/D20
BY CARD_TYPE_CODE
PRINT
     CARD_TYPE_CODE  AS 'Card Type'
     REASON_CODE     AS 'Reason Code'
     CARD_DCN        AS 'DCN'
     OI_IDENTIFIER   AS 'Order ID'
	 STS             AS 'Card Stock,Status'
     OI_EFFECTIVE_DT AS 'Timestamp'
     OI_DL           AS 'DL'
BY
     CARD_TYPE_CODE NOPRINT
BY
     OI_IDENTIFIER NOPRINT
BY
     OI_EFFECTIVE_DT NOPRINT
ON CARD_TYPE_CODE SUBFOOT
"Total <CARD_TYPE_CODE Production Failures : <ST.ITEM_COUNT "
HEADING
"DL Card and Health Card Contract Management"
"Detailed Card Production Failures Report"
"From: &ADATE1TEXT.EVAL To: &ADATE2TEXT.EVAL "
" "
-*FOOTING
ON TABLE SUBFOOT
"Total Card Production Failures : <TOT.ITEM_COUNT "
"Report ID: DR2V4 / Date: &RUN_DATE / Time: &RUN_TIME / <+34> Page <TABPAGENO of <TABLASTPAGE <90"
ON TABLE SET PAGE-NUM OFF
ON TABLE PCHOLD FORMAT '&OUTPUT'
ON TABLE SET CSSURL '/approot/mtomis/report.css'
ON TABLE SET STYLE *
-*
-GOTO STY_&OUTPUT.EVAL
-*
-STY_HTML
-STY_EXL2K
-MRNOEDIT -INCLUDE STYLE011
-GOTO STY_END
-*
-STY_PDF
-MRNOEDIT -INCLUDE STYLE021
-*
-STY_EXCEL
-STY_END
ENDSTYLE
END
-RUN
-*
-IF &LINES GT 0 GOTO REPORT_END;
-*
-NO_DATA
-MRNOEDIT -INCLUDE MISI200
-*
-REPORT_END


Output:

DL Card and Health Card Contract Management
Detailed Card Production Failures Report
From: June 01 2007 To: June 30 2007

Card Type
Reason Code
DCN
Order ID Card Stock
Status
Timestamp
DL
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl1 2007/06/07 11:00:00 D1234-56789-00001
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl1 2007/06/08 11:00:00 D1234-56789-00001
DLCARD_V1 CARD_DAMAGED DL0000001 release4orderitemidentifierdl1 DEST 2007/06/10 11:00:00 D1234-56789-00001
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl10 2007/06/07 11:09:00 D1234-56789-00010
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl10 2007/06/08 11:09:00 D1234-56789-00010
DLCARD_V1 CARD_DAMAGED DL0000004 release4orderitemidentifierdl10 DEST 2007/06/10 11:09:00 D1234-56789-00010
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl11 2007/06/07 11:10:00 D1234-56789-00011
DLCARD_V1 IMAGE_QUALITY DL0001175 release4orderitemidentifierdl1180 2007/06/04 12:19:00 D1234-56789-01180
DLCARD_V1 SIGNATURE_QUALITY DL0001175 release4orderitemidentifierdl1180 2007/06/04 12:29:00 D1234-56789-01180
DLCARD_V1 IMAGE_QUALITY DL0001175 release4orderitemidentifierdl1180 2007/06/04 12:39:00 D1234-56789-01180
DLCARD_V1 IMAGE_QUALITY DL0001176 release4orderitemidentifierdl1181 2007/06/05 12:00:00 D1234-56789-01181
DLCARD_V1 SIGNATURE_QUALITY DL0001176 release4orderitemidentifierdl1181 2007/06/05 12:29:00 D1234-56789-01181
DLCARD_V1 IMAGE_QUALITY DL0001176 release4orderitemidentifierdl1181 2007/06/05 12:39:00 D1234-56789-01181
DLCARD_V1 IMAGE_QUALITY DL0001177 release4orderitemidentifierdl1182 2007/06/05 12:01:00 D1234-56789-01182
DLCARD_V1 IMAGE_QUALITY DL0001178 release4orderitemidentifierdl1183 2007/06/05 12:02:00 D1234-56789-01183
DLCARD_V1 CARD_DAMAGED DL0001179 release4orderitemidentifierdl1184 DEST 2007/06/05 13:13:00 D1234-56789-01184
DLCARD_V1 CARD_DAMAGED DL0001216 release4orderitemidentifierdl1184 DEST 2007/06/05 13:33:00 D1234-56789-01184
DLCARD_V1 CARD_DAMAGED DL0001217 release4orderitemidentifierdl1184 DEST 2007/06/05 13:53:00 D1234-56789-01184
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl12 2007/06/07 11:11:00 D1234-56789-00012
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl13 2007/06/07 11:12:00 D1234-56789-00013
DLCARD_V1 INC_DATA release4orderitemidentifierdl14 2007/06/07 11:13:00 D1234-56789-00014
DLCARD_V1 INC_DATA release4orderitemidentifierdl14 2007/06/08 11:13:00 D1234-56789-00014
DLCARD_V1 CARD_DAMAGED DL0000005 release4orderitemidentifierdl14 DEST 2007/06/10 11:13:00 D1234-56789-00014
DLCARD_V1 INC_DATA release4orderitemidentifierdl15 2007/06/07 11:14:00 D1234-56789-00015
DLCARD_V1 INC_DATA release4orderitemidentifierdl15 2007/06/08 11:14:00 D1234-56789-00015
DLCARD_V1 CARD_DAMAGED DL0000006 release4orderitemidentifierdl15 DEST 2007/06/10 11:14:00 D1234-56789-00015
DLCARD_V1 INC_DATA release4orderitemidentifierdl16 2007/06/07 11:15:00 D1234-56789-00016
DLCARD_V1 INC_DATA release4orderitemidentifierdl16 2007/06/08 11:15:00 D1234-56789-00016
DLCARD_V1 INC_DATA release4orderitemidentifierdl17 2007/06/07 11:16:00 D1234-56789-00017
DLCARD_V1 INC_DATA release4orderitemidentifierdl17 2007/06/08 11:16:00 D1234-56789-00017
DLCARD_V1 INC_DATA release4orderitemidentifierdl18 2007/06/07 11:17:00 D1234-56789-00018
DLCARD_V1 INC_DATA release4orderitemidentifierdl18 2007/06/08 11:17:00 D1234-56789-00018
DLCARD_V1 INC_DATA release4orderitemidentifierdl19 2007/06/07 11:18:00 D1234-56789-00019
DLCARD_V1 INC_DATA release4orderitemidentifierdl19 2007/06/08 11:18:00 D1234-56789-00019
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl2 2007/06/07 11:01:00 D1234-56789-00002
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl2 2007/06/08 11:01:00 D1234-56789-00002
DLCARD_V1 CARD_DAMAGED DL0000002 release4orderitemidentifierdl2 DEST 2007/06/10 11:01:00 D1234-56789-00002
DLCARD_V1 INC_DATA release4orderitemidentifierdl20 2007/06/07 11:19:00 D1234-56789-00020
DLCARD_V1 INC_DATA release4orderitemidentifierdl20 2007/06/08 11:19:00 D1234-56789-00020
DLCARD_V1 CARD_DAMAGED DL0000007 release4orderitemidentifierdl20 DEST 2007/06/10 11:19:00 D1234-56789-00020
DLCARD_V1 INC_DATA release4orderitemidentifierdl21 2007/06/07 11:20:00 D1234-56789-00021
DLCARD_V1 INC_DATA release4orderitemidentifierdl22 2007/06/07 11:21:00 D1234-56789-00022
DLCARD_V1 INC_DATA release4orderitemidentifierdl22 2007/06/08 11:21:00 D1234-56789-00022
DLCARD_V1 INC_DATA release4orderitemidentifierdl23 2007/06/07 11:22:00 D1234-56789-00023
DLCARD_V1 INC_DATA release4orderitemidentifierdl23 2007/06/08 11:22:00 D1234-56789-00023
DLCARD_V1 INC_DATA release4orderitemidentifierdl24 2007/06/07 11:23:00 D1234-56789-00024
DLCARD_V1 INC_DATA release4orderitemidentifierdl24 2007/06/08 11:23:00 D1234-56789-00024
DLCARD_V1 INC_DATA release4orderitemidentifierdl25 2007/06/07 11:24:00 D1234-56789-00025
DLCARD_V1 INC_DATA release4orderitemidentifierdl26 2007/06/07 11:25:00 D1234-56789-00026
DL Card and Health Card Contract Management
Detailed Card Production Failures Report
From: June 01 2007 To: June 30 2007

Card Type
Reason Code
DCN
Order ID Card Stock
Status
Timestamp
DL

DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl27 2007/06/07 11:26:00 D1234-56789-00027
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl27 2007/06/08 11:26:00 D1234-56789-00027
DLCARD_V1 CARD_DAMAGED DL0000008 release4orderitemidentifierdl27 DEST 2007/06/10 11:26:00 D1234-56789-00027
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl28 2007/06/07 11:27:00 D1234-56789-00028
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl28 2007/06/08 11:27:00 D1234-56789-00028
DLCARD_V1 CARD_DAMAGED DL0000009 release4orderitemidentifierdl28 DEST 2007/06/10 11:27:00 D1234-56789-00028
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl29 2007/06/07 11:28:00 D1234-56789-00029
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl29 2007/06/08 11:28:00 D1234-56789-00029
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl3 2007/06/07 11:02:00 D1234-56789-00003
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl3 2007/06/08 11:02:00 D1234-56789-00003
DLCARD_V1 CARD_DAMAGED DL0000003 release4orderitemidentifierdl3 DEST 2007/06/10 11:02:00 D1234-56789-00003
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl30 2007/06/07 11:29:00 D1234-56789-00030
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl31 2007/06/07 11:30:00 D1234-56789-00031
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl31 2007/06/08 11:30:00 D1234-56789-00031
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl32 2007/06/07 11:31:00 D1234-56789-00032
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl32 2007/06/08 11:31:00 D1234-56789-00032
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl33 2007/06/07 11:32:00 D1234-56789-00033
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl33 2007/06/08 11:32:00 D1234-56789-00033
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl34 2007/06/07 11:33:00 D1234-56789-00034
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl35 2007/06/07 11:34:00 D1234-56789-00035
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl36 2007/06/07 11:35:00 D1234-56789-00036
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl37 2007/06/07 11:36:00 D1234-56789-00037
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl38 2007/06/07 11:37:00 D1234-56789-00038
DLCARD_V1 SIGNATURE_QUALITY NULL release4orderitemidentifierdl39 2007/06/07 11:38:00 D1234-56789-00039
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl4 2007/06/07 11:03:00 D1234-56789-00004
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl4 2007/06/08 11:03:00 D1234-56789-00004
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl40 2007/06/07 11:39:00 D1234-56789-00040
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl41 2007/06/07 11:40:00 D1234-56789-00041
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl41 2007/06/08 11:40:00 D1234-56789-00041
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl42 2007/06/07 11:41:00 D1234-56789-00042
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl42 2007/06/08 11:41:00 D1234-56789-00042
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl43 2007/06/07 11:42:00 D1234-56789-00043
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl43 2007/06/08 11:42:00 D1234-56789-00043
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl44 2007/06/07 11:43:00 D1234-56789-00044
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl44 2007/06/08 11:43:00 D1234-56789-00044
DLCARD_V1 CARD_DAMAGED DL0000010 release4orderitemidentifierdl44 DEST 2007/06/10 11:43:00 D1234-56789-00044
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl45 2007/06/07 11:44:00 D1234-56789-00045
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl45 2007/06/08 11:44:00 D1234-56789-00045
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl46 2007/06/07 11:45:00 D1234-56789-00046
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl47 2007/06/07 11:46:00 D1234-56789-00047
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl48 2007/06/07 11:47:00 D1234-56789-00048
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl49 2007/06/07 11:48:00 D1234-56789-00049
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl5 2007/06/07 11:04:00 D1234-56789-00005
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl5 2007/06/08 11:04:00 D1234-56789-00005
DLCARD_V1 DATA_QUALITY NULL release4orderitemidentifierdl50 2007/06/07 11:49:00 D1234-56789-00050
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl6 2007/06/07 11:05:00 D1234-56789-00006
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl6 2007/06/08 11:05:00 D1234-56789-00006
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl7 2007/06/07 11:06:00 D1234-56789-00007
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl7 2007/06/08 11:06:00 D1234-56789-00007

DL Card and Health Card Contract Management
Detailed Card Production Failures Report
From: June 01 2007 To: June 30 2007

Card Type
Reason Code
DCN
Order ID Card Stock
Status
Timestamp
DL

DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl8 2007/06/07 11:07:00 D1234-56789-00008
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl8 2007/06/08 11:07:00 D1234-56789-00008
DLCARD_V1 IMAGE_QUALITY NULL release4orderitemidentifierdl9 2007/06/07 11:08:00 D1234-56789-00009
Total DLCARD_V1 Production Failures : **

HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc1 2007/06/08 11:00:00
HCARD_V1 CARD_DAMAGED HC0000001 release4orderitemidentifierhc10 DEST 2007/06/08 11:09:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc11 2007/06/08 11:10:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc12 2007/06/08 11:11:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc13 2007/06/08 11:12:00
HCARD_V1 INC_DATA release4orderitemidentifierhc14 2007/06/08 11:13:00
HCARD_V1 INC_DATA release4orderitemidentifierhc15 2007/06/08 11:14:00
HCARD_V1 INC_DATA release4orderitemidentifierhc16 2007/06/08 11:15:00
HCARD_V1 INC_DATA release4orderitemidentifierhc17 2007/06/08 11:16:00
HCARD_V1 INC_DATA release4orderitemidentifierhc18 2007/06/08 11:17:00
HCARD_V1 INC_DATA release4orderitemidentifierhc19 2007/06/08 11:18:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc2 2007/06/08 11:01:00
HCARD_V1 CARD_DAMAGED HC0000002 release4orderitemidentifierhc20 DEST 2007/06/08 11:19:00
HCARD_V1 INC_DATA release4orderitemidentifierhc21 2007/06/08 11:20:00
HCARD_V1 INC_DATA release4orderitemidentifierhc22 2007/06/08 11:21:00
HCARD_V1 INC_DATA release4orderitemidentifierhc23 2007/06/08 11:22:00
HCARD_V1 INC_DATA release4orderitemidentifierhc24 2007/06/08 11:23:00
HCARD_V1 INC_DATA release4orderitemidentifierhc25 2007/06/08 11:24:00
HCARD_V1 INC_DATA release4orderitemidentifierhc26 2007/06/08 11:25:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc27 2007/06/08 11:26:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc28 2007/06/08 11:27:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc29 2007/06/08 11:28:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc3 2007/06/08 11:02:00
HCARD_V1 CARD_DAMAGED HC0000003 release4orderitemidentifierhc30 DEST 2007/06/08 11:29:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc31 2007/06/08 11:30:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc32 2007/06/08 11:31:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc33 2007/06/08 11:32:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc34 2007/06/08 11:33:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc35 2007/06/08 11:34:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc36 2007/06/08 11:35:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc37 2007/06/08 11:36:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc38 2007/06/08 11:37:00
HCARD_V1 SIGNATURE_QUALITY release4orderitemidentifierhc39 2007/06/08 11:38:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc4 2007/06/08 11:03:00
HCARD_V1 CARD_DAMAGED HC0000004 release4orderitemidentifierhc40 DEST 2007/06/08 11:39:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc41 2007/06/08 11:40:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc42 2007/06/08 11:41:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc43 2007/06/08 11:42:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc44 2007/06/08 11:43:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc45 2007/06/08 11:44:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc46 2007/06/08 11:45:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc47 2007/06/08 11:46:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc48 2007/06/08 11:47:00
HCARD_V1 DATA_QUALITY release4orderitemidentifierhc49 2007/06/08 11:48:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc5 2007/06/08 11:04:00

DL Card and Health Card Contract Management
Detailed Card Production Failures Report
From: June 01 2007 To: June 30 2007

Card Type
Reason Code
DCN
Order ID Card Stock
Status
Timestamp
DL

HCARD_V1 CARD_DAMAGED HC0000005 release4orderitemidentifierhc50 DEST 2007/06/08 11:49:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc6 2007/06/08 11:05:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc7 2007/06/08 11:06:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc8 2007/06/08 11:07:00
HCARD_V1 IMAGE_QUALITY release4orderitemidentifierhc9 2007/06/08 11:08:00
Total HCARD_V1 Production Failures : 50

Total Card Production Failures : **

Report ID: DR2V4 / Date: October 23, 2007 / Time: 11:44:40 / Page 4 of 4

This message has been edited. Last edited by: Adrian Wong,


WF V7.7.03
Platform: AIX 6.1 64-bit, WinXP, IE 8.0
Output Formats: Html, Pdf, Excel
 
Posts: 71 | Registered: October 16, 2006Report This Post
Virtuoso
posted Hide Post
*** on the total means your field is not big enough to handle the total..


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Gold member
posted Hide Post
Unforunately that didn't work whether I tried D4, D6, I7, P2 etc in the SUM ITEM_COUNT/D4 line.
Did try all these already before I posted the message. :-(


WF V7.7.03
Platform: AIX 6.1 64-bit, WinXP, IE 8.0
Output Formats: Html, Pdf, Excel
 
Posts: 71 | Registered: October 16, 2006Report This Post
Gold member
posted Hide Post
You're probably still not going large enough. Keep in mind that these are display formats, not internal formats.

D4 will only display up to 9999. For your count field, try I11.



Windows: WF 7.6.2: SQL Server 2008 R2
 
Posts: 86 | Location: Chicago | Registered: August 03, 2007Report This Post
Gold member
posted Hide Post
No, I11 did not work.
I tried I12 and it gave me this message:
(FOC035) ERROR IN THE FORMAT OF THE COMPUTED FIELD DEFINITION: ITEM_COUNT/I12

I tried D20 it didn't work either.
But there are only 101 records of the first type and 50 of the second type. The grand total is only 150 records.


WF V7.7.03
Platform: AIX 6.1 64-bit, WinXP, IE 8.0
Output Formats: Html, Pdf, Excel
 
Posts: 71 | Registered: October 16, 2006Report This Post
Expert
posted Hide Post
When you post code, please put it between
[code]
[/code]
tags. We cannot see the ITEM_COUNT being used in the SUBFOOT. Have you tried removing NOPRINT from
SUM ITEM_COUNT/I7 NOPRINT
to see if the value being summed is correct?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Ok I will use
...
next time.
Yes, I have removed the NOPRINT before and the sum of the item_count for each of the record type is correct at 101 and 50.
The line that tries to display the number is right after the "ON CARD_TYPE_CODE SUBFOOT" line where it shows "Total

WF V7.7.03
Platform: AIX 6.1 64-bit, WinXP, IE 8.0
Output Formats: Html, Pdf, Excel
 
Posts: 71 | Registered: October 16, 2006Report This Post
Virtuoso
posted Hide Post
Oh...and please read https://forums.informationbuilders.com/eve/forums/a/tpc/...1057331/m/8941065232


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
You have to be careful how the program is coded. The value of ITEM_COUNT in your subfoot is based on the last BY statement, not the whole report.

Run this code to see what I mean:
TABLE FILE CAR
SUM SEATS NOPRINT
BY COUNTRY NOPRINT
PRINT COUNTRY CAR MODEL WHEELBASE 
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL NOPRINT

ON COUNTRY SUBFOOT
"COUNTRY TOTAL SEATS: <SEATS"
ON TABLE SUBFOOT
"BAD TABLE TOTAL SEATS: <SEATS"
"GOOD TABLE TOTAL SEATS: <ST.SEATS"
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=8, $
ENDSTYLE
END


Result:
COUNTRY   CAR        MODEL                WHEELBASE SEATS
--------- ---------- ------------------ ----------- -----
ENGLAND   JAGUAR     V12XKE AUTO              105.0     2
ENGLAND   JAGUAR     XJ12L AUTO               112.8     5
ENGLAND   JENSEN     INTERCEPTOR III          105.0     4
ENGLAND   TRIUMPH    TR7                       85.0     2
COUNTRY TOTAL SEATS: 13

FRANCE    PEUGEOT    504 4 DOOR               108.0     5
COUNTRY TOTAL SEATS: 5

ITALY     ALFA ROMEO 2000 4 DOOR BERLINA      101.0     4
ITALY     ALFA ROMEO 2000 GT VELOCE            92.5     2
ITALY     ALFA ROMEO 2000 SPIDER VELOCE        88.6     2
ITALY     MASERATI DORA 2 DOOR                102.3     2
COUNTRY TOTAL SEATS: 10

JAPAN     DATSUN     B210 2 DOOR AUTO          92.1     4
JAPAN     TOYOTA     COROLLA 4 DOOR DIX AUTO   93.3     4
COUNTRY TOTAL SEATS: 8

W GERMANY AUDI       100 LS 2 DOOR AUTO       105.3     5
W GERMANY BMW        2002 2 DOOR               98.4     5
W GERMANY BMW        2002 2 DOOR AUTO          98.4     4
W GERMANY BMW        3.0 SI 4 DOOR            106.0     5
W GERMANY BMW        3.0 SI 4 DOOR AUTO       106.0     5
W GERMANY BMW        530I 4 DOOR              103.8     5
W GERMANY BMW        530I 4 DOOR AUTO         103.8     5
COUNTRY TOTAL SEATS: 34 
 
BAD TABLE TOTAL SEATS: 34 
GOOD TABLE TOTAL SEATS: 70


The ST.SEATS is the correct way to have a grand total in a subfoot.

I don't know if this will help solve your problem. I see that you have
ON CARD_TYPE_CODE SUBFOOT

and
ON TABLE SUBFOOT

I assume you require totals in both subfoots, so my example shows you that.

(Did you know you can edit a previous posting you made by clicking the yellow folder icon at the bottom right of your posting, then put the code tags in so we can see the complete code).


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
I think the problem is in the MFD. Your field is defined as P2. Try changing ITEM_COUNT/D20 to COMPUTE ITM_CT/D20=ITEM_COUNT; AS 'ITEM_COUNT'
and then use ST.ITM_CT in your subfoot


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Gold member
posted Hide Post
Thanks, PBrightwell. I followed your suggestion and changed it a bit as well and it worked for my report. I suspected it had something to do with that P2 definition for the data but now I know how to display it thanks to you.
Thank you to Francis as well for his suggestion.


WF V7.7.03
Platform: AIX 6.1 64-bit, WinXP, IE 8.0
Output Formats: Html, Pdf, Excel
 
Posts: 71 | Registered: October 16, 2006Report This Post
Virtuoso
posted Hide Post
The reason this happened is because you had the ITEM_COUNT field reformatted in the request.
The ST. andTOT. prefixes look at the very first instance of the field ITEM_COUNT, which is a P@ field. Whatever reformatting you specified, it would still be displayed as a P2 field.
PBrightwell's solution works fine, because it creates a new unique field.
You could also have used DEFINE to create and total this new field, or change the fieldsize in the MFD for this field.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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     Subtotal / Total not showing properly

Copyright © 1996-2020 Information Builders