How do you write a deterministic clause?

How do you write / code a deterministic clause? I was told to use it instead of Target buckets
Thanks,

This is my target_bucket function. I have been trying to create a rewrite enabled materialized view and I have been able to do that. I was told to use a deterministic clause to be able to make the code into a re-write enable materialized view.
THIS IS THE TARGET BUCKET CODE / FUNCTION.
GRP_OR_BCKT_IN CHAR, -- 'G' or 'B'
PTD_OR_RESV_IN CHAR, -- 'P' or 'R'
CLM_KIND_IN CHAR,
CODE_IN CHAR,
PTD_1 NUMBER,
PTD_2 NUMBER,
PTD_3 NUMBER,
PTD_4 NUMBER,
PTD_5 NUMBER,
PTD_6 NUMBER,
PTD_7 NUMBER,
PTD_8 NUMBER,
PTD_9 NUMBER)
RETURN NUMBER IS
TEMP NUMBER := 0;
BEGIN
SELECT /*+ INDEX(INDICATOR_SUM IDX_INDICATOR_SUM_GRP)*/
SUM(DECODE(INDICATOR_SUM.INDICATOR,
1, PTD_1,
2, PTD_2,
3, PTD_3,
4, PTD_4,
5, PTD_5,
6, PTD_6,
7, PTD_7,
8, PTD_8,
9, PTD_9,
0)) INTO TEMP
FROM INDICATOR_SUM WHERE
INDICATOR_SUM.GRP_OR_BCKT = GRP_OR_BCKT_IN AND
INDICATOR_SUM.PTD_OR_RESV = PTD_OR_RESV_IN AND
INDICATOR_SUM.CLM_KIND = CLM_KIND_IN AND
INDICATOR_SUM.CODE = CODE_IN;
RETURN NVL(TEMP,0);
EXCEPTION
WHEN OTHERS THEN
RETURN 0;
END;
This is what I've been trying to do with no LUCK AT ALL.
CREATE MATERIALIZED VIEW M_reserve
TABLESPACE mviews_TS
BUILD IMMEDIATE
Enable query rewrite
AS
SELECT
Reserve.clm_seq_id_fk as clm_seq_id,
PID.PID_NBR AS PARENT_ID,
PID.PID_NAME AS PID_NAME,
ACCT.ACCT_NBR AS ACCOUNT_NBR,
ACCT.ACCT_NAME AS ACCOUNT_NAME,
CLAIM_1.CLM_NBR AS CLAIM_NBR,
CLAIM_1.CLM_SUFFIX AS CLAIM_SUFFIX,
ACCT_LOI.LOI AS LOI,
CLAIM_1.CLM_KIND AS CLAIM_KIND,
CLAIM_1.ST_CLM_NBR AS STATE_CLAIM_NBR,
ACCT_LOI.RISK_NBR AS RISK_NBR,
ACCT_LEVEL1.LEVEL_1 AS LOCATION_1,
ACCT_LEVEL1.LEVEL_NAME AS LOCATION_1_NAME,
ACCT_LEVEL2.LEVEL_2 AS LOCATION_2,
ACCT_LEVEL2.LEVEL_NAME AS LOCATION_2_NAME,
ACCT_LEVEL3.LEVEL_3 AS LOCATION_3,
ACCT_LEVEL3.LEVEL_NAME AS LOCATION_3_NAME,
ACCT_LEVEL4.LEVEL_4 AS LOCATION_4,
ACCT_LEVEL4.LEVEL_NAME AS LOCATION_4_NAME,
ACCT_LEVEL5.LEVEL_5 AS LOCATION_5,
ACCT_LEVEL5.LEVEL_NAME AS LOCATION_5_NAME,
SERV_OFC.SERV_OFC AS SERV_OFC,
SERV_OFC.SERV_OFC_NAME AS SERV_OFC_NAME,
CLAIM_1.BEN_ST AS BENEFIT_ST,
CLAIM_1.CLM_TYPE AS CLAIM_TYPE,
CLAIM_1.OPN_CLSD AS OPEN_CLOSED,
SUBSTR(CLAIM_1.CLM_STAT,1,5) AS CLAIM_STATUS,
CLAIM_1.CLMT_LST_NAME AS CLMNT_LAST_NAME,
CLAIM_1.CLMT_FIRST_NAME AS CLMNT_FIRST_NAME,
CLAIM_1.CLMT_MID_INIT AS CLMNT_MIDDLE_INITIAL,
CLAIM_2.CLMT_ADDR1 AS CLMNT_ADDR1,
CLAIM_2.CLMT_ADDR2 AS CLMNT_ADDR2,
CLAIM_2.CLMT_CITY AS CLMNT_CITY,
CLAIM_2.CLMT_ST AS CLMNT_ST,
CLAIM_2.CLMT_ZIP_CD AS CLMNT_ZIP_CD,
CLAIM_2.CLMT_CNTRY AS CLMNT_CNTRY,
CLAIM_1.CLMT_SSN AS CLMNT_SSN,
CLAIM_1.DT_INJ AS DATE_OF_INJURY,
CLAIM_1.DT_RPT_EMPLR AS DATE_RPT_TO_EMPLOYER,
CLAIM_1.DT_RECV AS DATE_RCVD_BY_GMCD,
CLAIM_1.DT_INPT AS DATE_CLAIM_ENTERED,
CLAIM_1.DT_CLSD AS DATE_CLAIM_CLOSED,
CLAIM_1.DT_LST_ACTVY AS DATE_OF_LAST_ACTIVITY,
CLAIM_1.DT_REOPN AS DATE_REOPENED,
CLAIM_1.INJ_CAUSE AS INJ_CAUSE_CD,
IJCA_DESC.TBL_DESC AS INJ_CAUSE_DESC,
CLAIM_1.PART_OF_BODY AS POB_CD,
IJPB_DESC.TBL_DESC AS POB_DESC,
CLAIM_1.NATR AS INJ_NATURE_CD,
IJNT_DESC.TBL_DESC AS INJ_NATURE_DESC,
CLAIM_1.AGCY AS AGENCY_CD,
AGAL_DESC.TBL_DESC AS AGENCY_DESC,
CLAIM_1.MANL_CLSR_REQR AS MANUAL_CLASS_NBR,
CLAIM_1.REC_ONLY AS RECORD_ONLY_FLAG,
CLAIM_1.SEX AS SEX,
NVL(DECODE(CLAIM_1.AGE,0,NULL,CLAIM_1.AGE),
TRUNC((CLAIM_1.DT_INJ - CLAIM_1.DT_BIRTH) / 365.25))
AS AGE,
CLAIM_1.TIME_EMPLD AS TIME_EMPLOYED,
CLAIM_1.DT_MED_TO_INDM AS DATE_MED_CHG_TO_IND,
CLAIM_1.DT_INDM_TO_MED AS DATE_IND_CHG_TO_MED,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'200',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_MEDICAL,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'201',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_INDEMNITY,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'202',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_EXPENSES,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'203',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_RECOVERABLE,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'204',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_PROPERTY_DAMAGE,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'205',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_BODILY_INJURY,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'206',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_OTHER,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'207',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_CONTENTS,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'208',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_STRUCTURES,
TARGET_BUCKET('G','R',
DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
'209',
RESERVE.RESV_1,
RESERVE.RESV_2,
RESERVE.RESV_3,
RESERVE.RESV_4,
RESERVE.RESV_5,
RESERVE.RESV_6,
RESERVE.RESV_7,
RESERVE.RESV_8,
RESERVE.RESV_9) AS RESV_RECOVERY,
CLAIM_1.DT_DEATH AS DATE_OF_DEATH,
CLAIM_1.INJ_CLASS_CD AS INJ_CLASS_CD,
ICLA_DESC.TBL_DESC AS INJ_CLASS_DESC,
CLAIM_1.OCCUP_CD AS OCCUPATION_CD,
CLAIM_1.OCCUP AS OCCUPATION_DESC,
CLAIM_1.NATR_OF_INJ AS INJ_NATURE,
CLAIM_1.ACCD_DESC AS ACCIDENT_DESC,
RESERVE.DT_INPT AS DATE_RESERVE_ENTERED,
RESERVE.TIME_INPT AS TIME_RESERVE_ENTERED,
RESERVE.RESV_OTH_DESC AS RESV_OTH_DESC,
ASSOCIATE.HP_LOGON AS FIELD_OFFICE,
ASSOCIATE.USER_LST_NAME AS EXAMINER_LAST_NAME,
ASSOCIATE.USER_FIRST_NAME AS EXAMINER_FIRST_NAME,
ASSOCIATE.SUPV AS EXAMINERS_SUPERVISER,
ASSOCIATE.MGR AS EXAMINERS_MANAGER,
CLAIM_1.BUS_UNIT AS BUSINESS_UNIT,
CLAIM_1.CLM_CLASS AS CLAIM_CLASS,
CLAIM_1.NURSE_RESP AS NURSE_RESPONSIBLE,
CLAIM_2.EMPL_NBR AS EMPL_NBR
FROM
ACCT,
ACCT_LOI,
PID,
INCIDENT,
CLAIM_1,
CLAIM_2,
ACCT_LEVEL1,
ACCT_LEVEL2,
ACCT_LEVEL3,
ACCT_LEVEL4,
ACCT_LEVEL5,
RESERVE,
SERV_OFC,
ASSOCIATE,
AGAL_DESC,
IJCA_DESC,
ICLA_DESC,
IJNT_DESC,
IJPB_DESC
WHERE
CLAIM_1.OPN_CLSD <> 'Z' AND
PID.PID_SEQ_ID = ACCT.PID_SEQ_ID_FK AND
ACCT.ACCT_SEQ_ID = ACCT_LOI.ACCT_SEQ_ID_FK AND
INCIDENT.ACCT_LOI_SEQ_ID_FK(+) = ACCT_LOI.ACCT_LOI_SEQ_ID AND
CLAIM_1.INC_SEQ_ID_FK(+) = INCIDENT.INC_SEQ_ID AND
CLAIM_2.CLM_SEQ_ID_FK = CLAIM_1.CLM_SEQ_ID AND
RESERVE.CLM_SEQ_ID_FK(+) = CLAIM_1.CLM_SEQ_ID AND
SERV_OFC.SERV_OFC_SEQ_ID = CLAIM_1.SERV_OFC_SEQ_ID_FK AND
ACCT_LEVEL1.LEVEL1_SEQ_ID(+) = CLAIM_1.LEVEL1_SEQ_ID_FK AND
ACCT_LEVEL2.LEVEL2_SEQ_ID(+) = CLAIM_1.LEVEL2_SEQ_ID_FK AND
ACCT_LEVEL3.LEVEL3_SEQ_ID(+) = CLAIM_1.LEVEL3_SEQ_ID_FK AND
ACCT_LEVEL4.LEVEL4_SEQ_ID(+) = CLAIM_1.LEVEL4_SEQ_ID_FK AND
ACCT_LEVEL5.LEVEL5_SEQ_ID(+) = CLAIM_1.LEVEL5_SEQ_ID_FK AND
ASSOCIATE.PROCS_UN(+) = CLAIM_1.EXAMR_RESP AND
ASSOCIATE.SERV_OFC_SEQ_ID_FK(+) = CLAIM_1.SERV_OFC_SEQ_ID_FK AND
(AGAL_DESC.TBL_TYPE = ACCT_LOI.AGCY_CD_TBL OR
AGAL_DESC.TBL_TYPE IS NULL) AND
AGAL_DESC.TBL_CD(+) = CLAIM_1.AGCY AND
ICLA_DESC.TBL_CD (+) = CLAIM_1.INJ_CLASS_CD AND
IJCA_DESC.TBL_CD (+) = CLAIM_1.INJ_CAUSE AND
IJNT_DESC.TBL_CD (+) = CLAIM_1.NATR AND
IJPB_DESC.TBL_CD (+) = CLAIM_1.PART_OF_BODY ;

Similar Messages

  • How do you create a deterministic clause

    How can I change the target bucket commands to deterministic clauses? I'm never used deterministic.. HELP.. Thanks..
    CREATE Materialized view m_claim
    tablespace mviews_ts
    on demand
    enable query rewrite
    as
    SELECT
    PID.PID_NBR AS PARENT_ID,
    ACCT.ACCT_NBR AS ACCOUNT_NBR,
    CLAIM_1.CLM_NBR AS CLAIM_NBR,
    CLAIM_1.CLM_KIND AS CLAIM_KIND,
    CLAIM_1.CLM_TYPE AS CLAIM_TYPE,
    SUBSTR(CLAIM_1.CLM_STAT,1,5) AS CLAIM_STATUS,
    CLAIM_1.OPN_CLSD AS OPEN_CLOSED,
    CLAIM_1.CLMT_LST_NAME AS CLMNT_LAST_NAME,
    CLAIM_1.CLMT_FIRST_NAME AS CLMNT_FIRST_NAME,
    CLAIM_2.CLMT_ADDR1 AS CLMNT_ADDR1,
    CLAIM_2.CLMT_ADDR2 AS CLMNT_ADDR2,
    CLAIM_2.CLMT_CITY AS CLMNT_CITY,
    CLAIM_2.CLMT_ST AS CLMNT_ST,
    CLAIM_2.CLMT_ZIP_CD AS CLMNT_ZIP_CD,
    CLAIM_2.CLMT_CNTRY AS CLMNT_CNTRY,
    CLAIM_1.DT_INJ AS DATE_OF_INJURY,
    CLAIM_1.DT_RPT_EMPLR AS DATE_RPT_TO_EMPLOYER,
    CLAIM_1.DT_RECV AS DATE_RCVD_BY_GMCD,
    CLAIM_1.DT_INPT AS DATE_CLAIM_ENTERED,
    CLAIM_1.DT_LST_ACTVY AS DATE_OF_LAST_ACTIVITY,
    CLAIM_1.DT_REOPN AS DATE_REOPENED,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_MEDICAL,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_INDEMNITY,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_EXPENSES,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_RECOVERABLE,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_PROPERTY_DAMAGE,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_BODILY_INJURY,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_OTHER,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_CONTENTS,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_STRUCTURES,
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9) AS PTD_RECOVERY,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_MEDICAL,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_INDEMNITY,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_EXPENSES,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_RECOVERABLE,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_PROPERTY_DAMAGE,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_BODILY_INJURY,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_OTHER,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_CONTENTS,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_STRUCTURES,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9) AS RESV_RECOVERY,
    RESERVE.DT_INPT AS DATE_RESERVE_ENTERED,
    CLAIM_1.DT_DEATH AS DATE_OF_DEATH,
    CLAIM_1.INJ_CLASS_CD AS INJ_CLASS_CD,
    ICLA_DESC.TBL_DESC AS INJ_CLASS_DESC,
    CLAIM_1.OCCUP_CD AS OCCUPATION_CD,
    CLAIM_1.OCCUP AS OCCUPATION_DESC,
    CLAIM_1.DT_HIRE AS DATE_OF_HIRE,
    CLAIM_2.TAIL_CLM_IND AS TAIL_CLAIM_INDICATOR,
    CLAIM_2.DT_RETN_REACH AS DATE_RETENTION_REACHED,
    CLAIM_2.DT_UP_LIM_REACH AS DATE_UP_LIMIT_REACH,
    CLAIM_1.CLM_CLASS AS CLAIM_CLASS,
    CLAIM_1.BUS_UNIT AS BUSINESS_UNIT,
    CLAIM_1.ORG_CD AS ORGANIZATION_CODE,
    CLAIM_1.LOC_CD AS LOCATION_CODE,
    CLAIM_2.MAJ_CLASS_CD AS MAJ_CLASS_CD,
    CLAIM_2.EMPL_NBR AS EMPL_NBR,
    CLAIM_2.MART_STAT AS MART_STAT,
    CLAIM_2.NBR_OF_DEPD AS NUMBER_OF_DEPD,
    CLAIM_2.SEC_INJ AS SEC_INJURY,
    CLAIM_1.DT_STRT_LIT AS DATE_START_LITIGATION,
    CLAIM_1.DT_END_LIT AS DATE_END_LITIGATION,
    ASSOCIATE.HP_LOGON AS FIELD_OFFICE,
    ASSOCIATE.USER_LST_NAME AS EXAMINER_LAST_NAME,
    ASSOCIATE.USER_FIRST_NAME AS EXAMINER_FIRST_NAME,
    ASSOCIATE.SUPV AS EXAMINERS_SUPERVISER,
    ASSOCIATE.MGR AS EXAMINERS_MANAGER,
    /* Added on 7/10/03 if bucketing changes, must also change these. */
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_MEDICAL,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_INDEMNITY,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_EXPENSES,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_RECOVERABLE,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_PROPERTY_DAMAGE,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_BODILY_INJURY,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_OTHER,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_CONTENTS,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_STRUCTURES,
    decode(CLAIM_1.OPN_CLSD,
    'C',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    'A',
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9),
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9))
    AS INC_RECOVERY,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '200',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_MEDICAL,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '201',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_INDEMNITY,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '202',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_EXPENSES,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '203',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_RECOVERABLE,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '204',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_PROPERTY_DAMAGE,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '205',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_BODILY_INJURY,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '206',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_OTHER,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '207',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_CONTENTS,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '208',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_STRUCTURES,
    decode(CLAIM_1.OPN_CLSD,
    'C',0,'A',0,
    TARGET_BUCKET('G','R',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    RESERVE.RESV_1,
    RESERVE.RESV_2,
    RESERVE.RESV_3,
    RESERVE.RESV_4,
    RESERVE.RESV_5,
    RESERVE.RESV_6,
    RESERVE.RESV_7,
    RESERVE.RESV_8,
    RESERVE.RESV_9)
    TARGET_BUCKET('G','P',
    DECODE(PID.CONV_FLAG,'Y',CLAIM_1.CLM_KIND,'WC00'),
    '209',
    CLAIM_1.PTD_1,
    CLAIM_1.PTD_2,
    CLAIM_1.PTD_3,
    CLAIM_1.PTD_4,
    CLAIM_1.PTD_5,
    CLAIM_1.PTD_6,
    CLAIM_1.PTD_7,
    CLAIM_1.PTD_8,
    CLAIM_1.PTD_9))
    AS EFC_RECOVERY
    FROM
    AGAL_DESC,
    EMST_DESC,
    ICLA_DESC,
    IJCA_DESC,
    IJNT_DESC,
    IJPB_DESC,
    RESERVE,
    CLAIM_2,
    SERV_OFC,
    ASSOCIATE,
    CLAIM_1,
    INCIDENT,
    ACCT_LEVEL5,
    ACCT_LEVEL4,
    ACCT_LEVEL3,
    ACCT_LEVEL2,
    ACCT_LEVEL1,
    ACCT_LOI,
    ACCT,
    PID
    WHERE
    ACCT.ACCT_SEQ_ID = ACCT_LOI.ACCT_SEQ_ID_FK AND
    PID.PID_SEQ_ID = ACCT.PID_SEQ_ID_FK AND
    CLAIM_1.OPN_CLSD <> 'Z' AND
    INCIDENT.ACCT_LOI_SEQ_ID_FK = ACCT_LOI.ACCT_LOI_SEQ_ID AND
    CLAIM_1.INC_SEQ_ID_FK = INCIDENT.INC_SEQ_ID AND
    RESERVE.CLM_SEQ_ID_FK(+) = CLAIM_1.CLM_SEQ_ID AND
    (to_char(reserve.dt_inpt,'YYYYMMDD')
    || reserve.time_inpt ||
    ltrim(to_char(reserve.resv_seq_id,'000000000000')) =
    (select(max(to_char(r.dt_inpt,'YYYYMMDD') || r.time_inpt ||
    ltrim(to_char(r.resv_seq_id,'000000000000'))))
    from reserve r where R.CLM_SEQ_ID_FK = CLAIM_1.CLM_SEQ_ID
    ) OR
    NOT EXISTS
    (SELECT * FROM RESERVE R
    WHERE R.CLM_SEQ_ID_FK = CLAIM_1.CLM_SEQ_ID))) AND
    CLAIM_2.CLM_SEQ_ID_FK = CLAIM_1.CLM_SEQ_ID AND
    SERV_OFC.SERV_OFC_SEQ_ID(+) = CLAIM_1.SERV_OFC_SEQ_ID_FK AND
    ACCT_LEVEL1.LEVEL1_SEQ_ID(+) = CLAIM_1.LEVEL1_SEQ_ID_FK AND
    ACCT_LEVEL2.LEVEL2_SEQ_ID(+) = CLAIM_1.LEVEL2_SEQ_ID_FK AND
    ACCT_LEVEL3.LEVEL3_SEQ_ID(+) = CLAIM_1.LEVEL3_SEQ_ID_FK AND
    ACCT_LEVEL4.LEVEL4_SEQ_ID(+) = CLAIM_1.LEVEL4_SEQ_ID_FK AND
    ACCT_LEVEL5.LEVEL5_SEQ_ID(+) = CLAIM_1.LEVEL5_SEQ_ID_FK AND
    ASSOCIATE.PROCS_UN(+) = CLAIM_1.EXAMR_RESP AND
    ASSOCIATE.SERV_OFC_SEQ_ID_FK(+) = CLAIM_1.SERV_OFC_SEQ_ID_FK AND
    (AGAL_DESC.TBL_TYPE = ACCT_LOI.AGCY_CD_TBL OR
    AGAL_DESC.TBL_TYPE IS NULL) AND
    AGAL_DESC.TBL_CD(+) = CLAIM_1.AGCY AND
    EMST_DESC.TBL_CD(+) = CLAIM_2.EMPLMT_STAT AND
    ICLA_DESC.TBL_CD(+) = CLAIM_1.INJ_CLASS_CD AND
    IJCA_DESC.TBL_CD(+) = CLAIM_1.INJ_CAUSE AND
    IJNT_DESC.TBL_CD(+) = CLAIM_1.NATR AND
    IJPB_DESC.TBL_CD(+) = CLAIM_1.PART_OF_BODY
    ;

    Sorry, It's a function it's self.
    this function is called Target_bucket
    How can I do this the way your stating?? I can create my materialized view just not rewrite enabled like I need too.
    Help?? Can you please tell me how I can go about doing what I need to do?
    thanks so much..
    This is the code for my function target_bucket.
    GRP_OR_BCKT_IN CHAR, -- 'G' or 'B'
    PTD_OR_RESV_IN CHAR, -- 'P' or 'R'
    CLM_KIND_IN CHAR,
    CODE_IN CHAR,
    PTD_1 NUMBER,
    PTD_2 NUMBER,
    PTD_3 NUMBER,
    PTD_4 NUMBER,
    PTD_5 NUMBER,
    PTD_6 NUMBER,
    PTD_7 NUMBER,
    PTD_8 NUMBER,
    PTD_9 NUMBER)
    RETURN NUMBER IS
    TEMP NUMBER := 0;
    BEGIN
    SELECT /*+ INDEX(INDICATOR_SUM IDX_INDICATOR_SUM_GRP)*/
    SUM(DECODE(INDICATOR_SUM.INDICATOR,
    1, PTD_1,
    2, PTD_2,
    3, PTD_3,
    4, PTD_4,
    5, PTD_5,
    6, PTD_6,
    7, PTD_7,
    8, PTD_8,
    9, PTD_9,
    0)) INTO TEMP
    FROM INDICATOR_SUM WHERE
    INDICATOR_SUM.GRP_OR_BCKT = GRP_OR_BCKT_IN AND
    INDICATOR_SUM.PTD_OR_RESV = PTD_OR_RESV_IN AND
    INDICATOR_SUM.CLM_KIND = CLM_KIND_IN AND
    INDICATOR_SUM.CODE = CODE_IN;
    RETURN NVL(TEMP,0);
    EXCEPTION
    WHEN OTHERS THEN
    RETURN 0;
    END;

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

  • How do you write sideways in Pages?????

    How do you write sideways in pages w/ the page upright?

    This awesome tip solved my issue; it works with graphics, too. Thanks very much!!!!!!!
    Create a text box, type what you want in it, then
    rotate it using the Inspector (Select the text box,
    go to the "metrics" tab of the inspector, and rotate
    it with the little wheel).

  • How do you write on the documents useing using work space

    how do you write on the documents using work space

    What type of documents are you trying to write on?

  • How do you write UNDO for a text item?? examples? or a REDO??

    How do you write UNDO for a text item?? examples? or a REDO??
    I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
    Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
    How do you write UNDO for a text item?? examples? or a REDO??
    I have Oracle Forms 6i...
    Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
    Now I want to UNDO the typing and get back to the previous text.
    I'd use the initial value that was populate right? How do I access that if that is correct?
    Thanks, Bill

    You can use;
    <ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
    Or you will have to write a pre-text-item trigger;
    PRE-TEXT-ITEM:
    :CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
    MENU (PL/SQL):
    :<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
    You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again.

  • How do you write ?

    hi all,
    what is your preferred way to handle statements exceptions:
    try {
      Statement stm = conn.createStatement();
      try {
        // execute statements
        conn.commit();
      } catch (SQLException sqle) {
        // handle error
        conn.rollback();
      } finally {
        stm.close();
    } catch (SQLException sqle) {
      // handle error again ?
    }or ...
    Statement stm = null;
    try {
      stm = conn.createStatement();
      // execute statements
      conn.commit();
    } catch (SQLException sqle) {
      // handle error
      try {conn.rollback();}catch(SQLException sqle){/*nothing here ?*/}
    } finally {
      if (stm!=null)
        try {stm.close();}catch(SQLException sqle){/*nothing here ?*/}
    }or something else ? ...
    thanks

    Miksi tämä sähköpostiviesti on tullut minun osoitteeseen?   Eikä tämä ole ensimmäinen kerta kun minulle tulee väärin postia.   Miltä tämä sinusta tuntuu?
          Terv. Seppo
    Date: Thu, 22 Jul 2010 10:27:47 -0600
    From: [email protected]
    To: [email protected]
    Subject: Re: how do you write
    Hi Sandy,
    Acrobat Pro 9 is an excellent tool for creating and distributing forms; however, if a form was created in Acrobat and enabled for completion, you should be able to fill it out using Adobe Reader. As not all forms are enabled in this way, you won't be able to complete all forms digitally. For more information about Acrobat Pro, please refer to the product information page:
    http://www.adobe.com/products/acrobatpro/
    If you're using Windows, you can also download a free 30-day trial of Acrobat from right here:
    http://www.adobe.com/products/acrobatpro/tryout.html
    (Unfortunately, there is no Mac trial available at this time).
    I also encourage you to stay tuned to changes taking place at Acrobat.com over the next several months; you may find that they'll be interesting to you.
    Best regards,
    Rebecca
    >

  • How do you write an image threshold to a file

    Hi, I use IMAQ threshold to threshold an RGB image. How do I write this image to a file? Whenever I use the IMAQ Write JPG or Write PNG vI and try to view the file with the windows image viewer all I see is a black image. Does anyone know how to save a binary image?

    If you cast it to an eight bit image and save it as a BMP or JPEG does it show up correctly? If so the problem probably lies in the fact that a 16-bit image in LabVIEW is signed, while third party viewers usually assume that it is unsigned. So rather than pixel values going from -32766 to 32767, they go from 0 to 65536. There are example programs on ni.com to get around this. One is called "Mapping a 16-bit Image to an 8-bit Image," another is called "Bit Shift an IMAQ Vision 12-bit Image and Resave for External Viewer." If you search for these titles on the ni.com search bar, you should be able to find them.
    Kyle V

  • How would you write a "wildcard" in a filefilter?

    How would you go about to have a wildcard instead of the "*" in the following filefilter;
              File[] files = new File("./resultat/resultat_" + "*" + "_" + index[0]).listFiles (new FileFilter () {
                    public boolean accept (File file) {
                        return ! file.isDirectory ();
              });All help appriciated
    - Karl XII

    Shouldn't "a*" accept all files that begins with "a" and ends with whatever?No. "*" in regexp is a not a wildcard match. Instead it matches one or more instances of the preceeding
    value.
    Therefore "a*" will match "a", "aa", "aaa", "aaaa" etc but will not match anything which does not end in
    an "a".
    The following might help you out. (not the most elegent expression but it will do
    import java.util.regex.*;
    public class RegExp{
      public static void main(String[] args) {
      Pattern p = Pattern.compile("a*b");     
      Matcher m = p.matcher("aaaab");     
      System.out.println(m.matches());                    
      // interesting bit here
      // match one or more occurances of any characters in the ASCII charset  (the \\p{ASCII}* bit   
      p = Pattern.compile("hello_\\p{ASCII}*_b");     
      m = p.matcher("hello_wibble_b");     
      System.out.println(m.matches());
    }

  • How can you write over the other JTablecells while putting in information

    like windows excel when you write in a cell and you get to the border everything covers the other cells... when you press enter the string is in the textfield. But with the default settings of JTable or is it the DefaultTableEditor or the DefaultTableRenderer i don't know, when you write someting in a cell and get to the border everything is pushed to the left...i don't like that...
    Can someone help me here?
    thanks in advance

    Hello Tim,
    thanks for your response. Meanwhile I found out, that in fact things work fine. I "tested" the outputfile in opening it with the Notepad editor. That was not the proper way to do it. Making a file dump, I saw that everything was alright. So if one wants to work on such a file with the editor, one should use the Writer classes.
    Regards
    Joerg

  • How do you write a file involving the changes in application engine?

    Hi Guys,
    I have a requirement in app engine.
    I have to update a table based on the changes occured in other tables.
    I have to show the user old value and new updated value in the log file how do I write a file for below fields?
    Old Value: Name:Rock|SSN:0000000|Address:675478
    New Value    Name: Roger|SSN:0000000|Address:908765
    Thanks and regards,

    Hi ,
    My Requirement is Quite different here.
    I cannot use CI.i have to implement in app engine.
    Below explained:
    I have data coming from abc table and populating into xyz table.
    So if any field in abc gets changed which is extracted and populated in the xyz table.I have to show the old field value of xyz and the new field values of abc which I am going to insert into the xyz.
    My log file should have both the values.
    how do I write both the values and update it:
    say I have value from abc.id=12 and xyz.id=12
    when we update abc.id=13 and xyz.id=14
    I have to print
    old record details:
    id=12
    New record details:
    id=13
    somerthing of above sort
    Thanks and Regards

  • How do you write a VI that receives a voltage from Labjack U12?

    I'm using LJ U12 as my DAQ, on my laptop i've plugged in two U12, and after writing one VI,  i'm able to control a voltage 1-5V to one of my U12 (say U12A), which is able to recieve it, and then i've wired the analog output AO0 to the other U12's (say U12B) AI0. Now i would like to have a separate VI for U12B that is able to recieve and display the voltage from U12A, how do you go about writing this separate VI.
    So basically i'm using one computer and forming a loop, the need of doing so is to simulate U12B as my hardware (e.g control valve) and U12A as my console (e.g computer)
    With Regards
    Wormwood
    *Note: as attached is the VI that i've written to give voltages.
    Attachments:
    Labjack AO.vi ‏17 KB

    First, if you have not already, check out the following topic from the LabJack forum about getting started with the U12 in LabVIEW:
    http://www.labjack.com/forums/index.php?showtopic=84
    The first thing you should do is run our sample application LJconfig.exe, and assign each U12 a unique local ID.  Say #2 and #3.  Then you pass a 2 or 3 for the IDNum parameter for each function to specify which U12 you are talking to.
    The attached example uses the easy functions with IDNum = -1, which means first found.  You would just replace the -1 with a 2 or 3.
    Attachments:
    e function example.vi ‏41 KB

  • How do you write to a 3D array?

    I know this is probably a very simple questions, but for some reason I can not think of how to write to a 3D array. The application that I am going to use this for is that I have multiple graphs with x and y data points, and I want to be able to write all the graphs with their data points to a 3D array instead of having a large amount of 2D arrays. My main goal is to be able to use this 3D array with a graph so that I can click through all the graphs after I have done my measurements. I appreciate anyone that can give me help on this matter.

    3D array handling is not much different from 2D, you just have another coordinate to specify - "page" (row, column, page). Create a 3D array constant and wire it to e.g. the replace function and it will automatically scale up to show you the index and length options involved...
    PS. If you have XY arrays why not just have a 1D array of XY sets (as one would use for multiplot XY graphs)?You could even write the whole array to a graph (save you the extraction operations) and then choose to see whatever combination you would like by setting the color of the plots you want to hide to transparent.
    MTO

  • How can you write TABs in a file?

    Hello everbody,
    suppose you create a simple textfile "Input.txt" in copying the following two lines:
    ABCD
    123
    The code below works fine in creating (on Windows) an ANSI file "Output.txt". Now
    remove the comment slashes in the while loop, and compile and run the program
    again. The output file this time will be a Unicode file with Devanagari
    characters, as two bytes are interpreted as one char. Can anybody tell me why,
    and how it can be prevented?
    import java.io.*;
    class Anwendung
      public static void main(String[] args)
    //    final byte TAB=9; // no difference.
        final int TAB=9;
        try
        { FileInputStream eingabe = new FileInputStream("Input.TXT");
          FileOutputStream ausgabe = new FileOutputStream("Output.TXT");
          int zeichen;
          while ((zeichen=eingabe.read()) != -1)
          { ausgabe.write(zeichen); // only the low byte is taken from the int.
         ausgabe.write(TAB);
          eingabe.close();
          ausgabe.close();
        catch(Throwable e)
        { System.out.println("Error: "+e);
    }Regards
    Joerg

    Hello Tim,
    thanks for your response. Meanwhile I found out, that in fact things work fine. I "tested" the outputfile in opening it with the Notepad editor. That was not the proper way to do it. Making a file dump, I saw that everything was alright. So if one wants to work on such a file with the editor, one should use the Writer classes.
    Regards
    Joerg

  • Please HELP ASAP! I/O Command Line, How do you write them? System.in?

    I'm trying to create a program where the user can enter a year and gets the date of Easter on that year he/she entered. So far i've implemented the Easter class which contains the methods for getting the day and month of Easter, but I'm trying to write the main class which is kind of tricky for me. The main class is supposed to be the one asking the user for the year. Except I don't even know what you have to write. I did a bit of research and eventually found something like this: " InputStreamReader cin = new InputStreamReader(System.in)" I realize that that is a constructor and that cin is actually a variable supposed to hold whatever the user inputs. Except I just want to make sure if that's kind of the guidelines on how to make it so that the user can enter something back. Also, I want the user to enter a year- so in other words an int type. Here's why:(The Implemented Class for Easter)
    public void Year()
    //Method body
    public int getEasterSundayMonth(int y)
    //Method Body
    public int getEasterSundayDay(int y)
    //Method Body
    Yea I want to make it so that the user's input is "int y" that way I can perform my methods in order to give them back the day and month Easter is on. So my 2 questions are on how to write the code so I can get a user's input, and on how to substitute the user's input into the variable "y" I just started learning Java about 3 weeks ago as a Sophmore in high school, so it's a bit difficult for me. Thanks in advance.

    You should really work on expressing yourself more succinctly.
    shadowpal2 wrote:
    I did a bit of research and eventually found something like this: " InputStreamReader cin = new InputStreamReader(System.in)" I realize that that is a constructor and that cin is actually a variable supposed to hold whatever the user inputs.You misunderstood. System.in is used to read standard input to the Java process. If you don't know what "standard input" is: basically it's stuff that you could type at the console when you're running the program, but it could be file content depending on how you invoke the program.
    InputStreamReader is a class that takes that stream of input bytes and turns it into a stream of characters. It doesn't really hold anything.
    Except I just want to make sure if that's kind of the guidelines on how to make it so that the user can enter something back.It's one way of many of getting user input. Actually it's only part of one common idiom for getting user input.
    Also, I want the user to enter a year- so in other words an int type. Just use a java.util.Scanner.
    Yea I want to make it so that the user's input is "int y" The user's input is always going to be characters. Scanner has methods to automatically turn input into other types. If you use something else (like the common idiom involving InputStreamReader) you'd need to convert the Strings you read into ints by hand, which isn't hard but why do it if Scanner does it for you?
    Read the docs for java.util.Scanner.

Maybe you are looking for

  • How many fonts are free prvoide from Adobe?

    Dear Sir/Miss:   I want to know how many fonts users can free download the fonts? Cause someone tell me, if you install Adobe reader, you can use their fonts for free !? and your system also will install these fonts?

  • ADF BC4J unable to connect to database on Application Server 10.1.3.1.0

    Hi, We had an ADF BC4J application deployed on application server 10.1.3. We recently migrated the application server to 10.1.3.1.0 (SOA Suite). The look up is made via JNDI and as far as I can tell my JNDI tree is empty. This can be checked by going

  • How to change data in decision table using excel file in operating system?

    Hello, BRF Experts I now brf + for the first time in the current project is being developed. Now, project has been facing a big problem. Develop system that was developed in the history of decision table in the operating system can be used to update

  • CallbackHandler  - username and password token

    Hi, I use a CallbackHandler and server_security_config.xml on the server to authenticate and authorize the user. I get the correct username and password token on the server and do my validation directly in: public class AuthenticationValidator implem

  • The names of OEM binaries under Linux?

    I've successfully installed the Oracle 9.2.0 Client on my Linux notebook. After installation the Enterprise Manager started automatically and I was able to launch SQL Worksheet, etc. and work happily away... But the next day I realized that I didn't