Hi,
I wanted to define a column name 'account_id' by BIL_CODE_NAME.
Here is Exact Error Message that show up when I try DEFINE 'account_id':
(FOC258) FIELDNAME OR COMPUTATIONAL ELEEMENT NOT RECOGNIZED: J004.BIL_CODE.BIL_CODE_NAME 0 NUMBER OF RECORDS IN TABLE=10 LINES=10 (IA_191101_103826-1)(IA_191191_103826-1)
and here is my code (before DEFINE 'account_id') :
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET SQUEEZE=ON
SET HTMLCSS=ON
*-HOLD_SOURCE
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE source_hy/bil_code
BY BIL_CODE.BIL_CODE.BIL_CODE_ID
WHERE BIL_CODE.BIL_CODE.BIL_TYPE_ID EQ 'Account_Fee';
ON TABLE HOLD AS bil_code_hold FORMAT BINARY
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET ASNAMES SUBST
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES SUBST
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
ENDSTYLE
END
-RUN
*-HOLD_SOURCE
-*COMPONENT=Join_J001
JOIN INNER BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIPT_SN AND BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.IMPORT_TIME IN SOURCE_HY/BIL_RECEIPT_DETAIL
TO UNIQUE BIL_RECEIPT.BIL_RECEIPT.RECEIPT_SN AND BIL_RECEIPT.BIL_RECEIPT.IMPORT_TIME IN SOURCE_HY/BIL_RECEIPT TAG J001 AS J001
END
-*COMPONENT=Join_J002
JOIN LEFT_OUTER J001.BIL_RECEIPT.DEPT_CODE IN SOURCE_HY/BIL_RECEIPT_DETAIL
TO UNIQUE PUB_ACC_DEPT.PUB_ACC_DEPT.ACC_DEPT IN SOURCE_HY/PUB_ACC_DEPT TAG J002 AS J002
END
-*COMPONENT=Join_J003
JOIN LEFT_OUTER FILE SOURCE_HY/BIL_RECEIPT_DETAIL AT BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.ACCOUNT_ID
TO UNIQUE FILE source_hy/bil_code AT BIL_CODE.BIL_CODE.BIL_CODE_ID TAG J003 AS J003
WHERE J003.BIL_CODE.BIL_TYPE_ID EQ 'Account_Fee';
END
-*COMPONENT=Join_J004
JOIN LEFT_OUTER FILE SOURCE_HY/BIL_RECEIPT_DETAIL AT J003.BIL_CODE.BIL_CODE_NAME
TO UNIQUE FILE source_hy/bil_code AT BIL_CODE.BIL_CODE.BIL_CODE_ID TAG J004 AS J004
WHERE J004.BIL_CODE.BIL_TYPE_ID EQ 'Account_Name';
END
-*COMPONENT=Define_BIL_RECEIPT_DETAIL
DEFINE FILE SOURCE_HY/BIL_RECEIPT_DETAIL
IMPORT_DATE/YYMD=BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.IMPORT_TIME ;
recieve/D12.2=BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIVE_AMT + BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.DISCOUNT_AMT ;
END
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE SOURCE_HY/BIL_RECEIPT_DETAIL
SUM recieve
BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIVE_AMT AS ('paid', BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIVE_AMT, 'paid' )
BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.DISCOUNT_AMT AS ('discount', BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.DISCOUNT_AMT, 'discount' )
BY BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIPT_SN
BY BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.IMPORT_TIME
BY J001.BIL_RECEIPT.DEPT_CODE
BY J002.PUB_ACC_DEPT.ACC_DEPT_NAME
BY J004.BIL_CODE.BIL_CODE_ID
BY J004.BIL_CODE.BIL_CODE_NAME AS ('account_id', J004.BIL_CODE.BIL_CODE_NAME, 'account_id' )
WHERE IMPORT_DATE GE &IMPORT_DATE_S.(|FORMAT=YYMD,REQUIRED=TRUE).匯入時間起:.QUOTEDSTRING AND IMPORT_DATE LE &IMPORT_DATE_E.(|FORMAT=YYMD,REQUIRED=TRUE).匯入時間迄:.QUOTEDSTRING AND J001.BIL_RECEIPT.SOURCE_ID EQ &SOURCE_ID.(|FORMAT=A1,REQUIRED=TRUE).來源OEI, type_id=50:.QUOTEDSTRING AND BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.ACCOUNT_ID EQ '50' OR '81';
ON TABLE HOLD AS union_part1 FORMAT BINARY
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET ASNAMES SUBST
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET GRWIDTH 1
ON TABLE SET ASNAMES SUBST
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
ENDSTYLE
END
-RUN
*-HOLD_SOURCE
-*COMPONENT=Join_J005
JOIN INNER BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIPT_SN AND BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.IMPORT_TIME IN SOURCE_HY/BIL_RECEIPT_DETAIL
TO UNIQUE BIL_RECEIPT.BIL_RECEIPT.RECEIPT_SN AND BIL_RECEIPT.BIL_RECEIPT.IMPORT_TIME IN SOURCE_HY/BIL_RECEIPT TAG J005 AS J005
END
-*COMPONENT=Join_J006
JOIN LEFT_OUTER J005.BIL_RECEIPT.DEPT_CODE IN SOURCE_HY/BIL_RECEIPT_DETAIL
TO UNIQUE PUB_ACC_DEPT.PUB_ACC_DEPT.ACC_DEPT IN SOURCE_HY/PUB_ACC_DEPT TAG J006 AS J006
END
-*COMPONENT=Join_J007
JOIN LEFT_OUTER FILE SOURCE_HY/BIL_RECEIPT_DETAIL AT BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.ACCOUNT_ID
TO UNIQUE FILE source_hy/pub_syscode AT PUB_SYSCODE.PUB_SYSCODE.CODE_ID TAG J007 AS J007
WHERE J007.PUB_SYSCODE.TYPE_ID EQ 41;
END
-*COMPONENT=Define_BIL_RECEIPT_DETAIL
DEFINE FILE SOURCE_HY/BIL_RECEIPT_DETAIL ADD
IMPORT_DATE/YYMD=BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.IMPORT_TIME ;
END
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
-DEFAULT &IMPORT_DATE_S = _FOC_NULL;
-DEFAULT &IMPORT_DATE_E = _FOC_NULL;
-DEFAULT &SOURCE_ID = _FOC_NULL;
TABLE FILE SOURCE_HY/BIL_RECEIPT_DETAIL
BY BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.RECEIPT_SN
BY BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.IMPORT_TIME
BY J005.BIL_RECEIPT.DEPT_CODE
BY J006.PUB_ACC_DEPT.ACC_DEPT_NAME
BY J007.PUB_SYSCODE.CODE_ID
BY J007.PUB_SYSCODE.CODE_NAME
WHERE IMPORT_DATE GE &IMPORT_DATE_S.(|FORMAT=YYMD).匯入時間起:.QUOTEDSTRING AND IMPORT_DATE LE &IMPORT_DATE_E.(|FORMAT=YYMD).匯入時間迄:.QUOTEDSTRING AND J001.BIL_RECEIPT.SOURCE_ID EQ &SOURCE_ID.(|FORMAT=A1).來源OEI, type_id=50:.QUOTEDSTRING AND BIL_RECEIPT_DETAIL.BIL_RECEIPT_DETAIL.ACCOUNT_ID EQ '50' OR '81';
ON TABLE HOLD AS union_part2 FORMAT BINARY
ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET ASNAMES SUBST
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET ASNAMES SUBST
ON TABLE SET HOLDATTRS ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
ENDSTYLE
END
-RUN
-RUN
WebFOCUS v8.2.06 , Windows