33
Unit B: Analysing data validity, Report & Expressions 主主主主主主主主 : KPMG ACL 主主主主主主 PriceWaterHouseCooper ACL 主主主主主主 ACL Training Materia ls

ACL Training Materials

  • Upload
    kylee

  • View
    34

  • Download
    0

Embed Size (px)

DESCRIPTION

ACL Training Materials. Unit B: Analysing data validity , Report & Expressions 主要參考資料來源 : KPMG ACL 課程講義資料 PriceWaterHouseCooper ACL 課程講義資料. 第四章 驗證資料檔案. Verify 驗證資料 Count 計算筆數 Total 加總數值欄位 Statistics 統計數值 Profile 剖析資料 ( 被包含於 Statistics) Sequence 順序測試 Duplicates 重號測試 - PowerPoint PPT Presentation

Citation preview

Page 1: ACL Training Materials

Unit B: Analysing data validity,Report & Expressions

主要參考資料來源 : KPMG ACL 課程講義資料PriceWaterHouseCooper ACL 課程講義資料

ACL Training Materials

Page 2: ACL Training Materials

2

第四章 驗證資料檔案

Verify 驗證資料 Count 計算筆數 Total 加總數值欄位 Statistics 統計數值 Profile 剖析資料 ( 被包含

於 Statistics) Sequence 順序測試 Duplicates 重號測試 Gaps 缺號測試

Page 3: ACL Training Materials

3

Sec. 4-1 驗證資料 (Verifying Data)

• 目的 : 確保資料內容與指定欄位型態相符

• 選取 IFD, 並開啟 Default View

• 執行 [Analyze] / [Verify]

• 選取要驗證的欄位項目 [Sequence on]

• 選取要顯示的欄位項目 [List Fields]

• 註 : 要選取多個欄位時 , 先按住 (Ctrl), 再點選

Page 4: ACL Training Materials

4

Analysing data validity

• Sequence

• Gaps

• Duplicates

• Verify

Page 5: ACL Training Materials

5

Verify

Verify

• Returns all fields with invalid data - ie the data in the field does not match the data type defined in the Input File Definition;

• The presence of data validity errors may suggest poor data entry rules, poor database validity controls, or data corruption;

Page 6: ACL Training Materials

6

Analysing data validity

Verify

• In a large data file, in order to be sure all errors are noted, the Error Limit should be set to a larger number than ACL’s default setting of 10.

Page 7: ACL Training Materials

7

Analysing data validity

Page 8: ACL Training Materials

8

Sequence, Gaps, Duplicates

• Sequence - 可偵測資料 Sort 之錯誤

• Gaps - 係測試資料是否缺號,可選擇以區間表達或單筆列示 ,

且僅可執行數值欄位 Ex:A12345 與 B12346 沒缺號

• Duplicates - 係測試資料是否重覆

• The file should be sorted on the desired field before these commands are run.

• The Sequence command is capable of performing all three commands simultaneously if the appropriate boxes are checked;

The Gaps can be returned as individual missing values or as a range of missing values

Page 9: ACL Training Materials

9

Sequence, Gaps, Duplicates

•查核應用:可以用來檢核銷貨發票號碼是否有重覆或缺號之情形。

Page 10: ACL Training Materials

10

第五章 資料瀏覽與報表製作 (View & Report)

Page 11: ACL Training Materials

11

Accessing ACL Commands

•Report : 產出報表 - 設定符合的條件值。 - 設定產出的格式。

Page 12: ACL Training Materials

12

• Main 主頁

Report

1. 可設定產出報表的“頁首 / 頁尾”

2. 定義欲 output 的資料條件。

Page 13: ACL Training Materials

13

Report

•輸出的方式:

-Screen

-Graph

-File(.Text 或 .Html 檔案 )

-Print

Page 14: ACL Training Materials

14

• The Data Menu contains commands used to manipulate data by changing data within the current Input File or extracting data to create a new Input File

Accessing ACL Commands

將資料匯到 ACL 的另一個資料視窗Data View window

將資料匯出 ACL( 亦可選擇匯出的格式 (ex : .txt 或 .xls)

Page 15: ACL Training Materials

15

第六章 定義計算公式 (Expression & Filter)

Page 16: ACL Training Materials

16

Using expressions

PricewaterhouseCoopers

• Expressions can be added to any ACL command, within the expression field

• Expressions can by typed in manually, or ‘built’ using the expression builder

To access the expression builder, click on the ‘If’ button

Page 17: ACL Training Materials

17

Using expressions

PricewaterhouseCoopers

Page 18: ACL Training Materials

18

Using expressions

PricewaterhouseCoopers

Page 19: ACL Training Materials

19

Using expressions

PricewaterhouseCoopers

Page 20: ACL Training Materials

20

Using expressions

PricewaterhouseCoopers

Eg Total command:

• Total all payables in a payables file

• Total all payables in a payables file with due date in next month

• Total all payables in a payables file with due date in next month, for a specific vendor only

Expressions are an important part of creating and executing a command in ACL as without them only the data set as a whole can be examined

Page 21: ACL Training Materials

21

Using expressions - 小數位數

PricewaterhouseCoopers

小數位數 :ACL 小數表達係取決於所設定之公式為小數點幾位數

範例 :1.7/3=2 2.7.000/3.00=2.3333.1.1*1.1=1.24.1.10*1.10=1.215.100,000*(0.12/365)=06.100,000*0.12/365=32.88

Page 22: ACL Training Materials

22

Using expressions

PricewaterhouseCoopers

• 數字無須加千分位符號 ,最多僅有 22 個運算位元

• ASCII : 一定要加上單引號 (‘’) 或

雙引號 (“”)• 日期1.記得加單引號 (`981231`)2. 僅能使用 `YYYYMMDD` 或

`YYMMDD` 格式

Page 23: ACL Training Materials

23

Using expressions

PricewaterhouseCoopers

• We only want included in the command those goods with a cost price over $10

• See if you can create the relevant expression

Page 24: ACL Training Materials

24

Using expressions

PricewaterhouseCoopers

We select the field over which we want to set the condition, in this case ‘cost price’

Page 25: ACL Training Materials

25

Using expressions

PricewaterhouseCoopers

We select the operator in which we are interested

Page 26: ACL Training Materials

26

Using expressions

PricewaterhouseCoopers

We enter in the appropriate value, in this case 10

Page 27: ACL Training Materials

27

Using expressions

PricewaterhouseCoopers

We select the field over which we want to set the condition, in this case ‘cost price’

We select the operator in which we are interested

We enter in the appropriate value, in this case 10

Page 28: ACL Training Materials

28

Using expressions

PricewaterhouseCoopers

Page 29: ACL Training Materials

29 PricewaterhouseCoopers

Using expressions

• Expressions in ACL fall into one of four catagories:• Numeric - uses mathematical operators such as + or -. Usually ap

plied to numeric fields;

eg (sales price - cost price) * 0.1

• Character - uses operators acting upon character fields. Mathematical operators cannot be used;

eg voucher type = ‘IN’

• Logical - uses logical operators such as < or >. Depending on the type of operators, can be used on both numeric and character fields;

eg cost price > 10

• Date - uses dates in its calculations.

eg date_billed > `20010402`

Page 30: ACL Training Materials

30 PricewaterhouseCoopers

Using expressions

• The data type of the field(s) contained within the expression determines what sort of operators (and functions) can be used in the expression

• An expression can be checked for validity before it is executed, using the Verify button

Page 31: ACL Training Materials

31 PricewaterhouseCoopers

Using expressions

• Using the AND and OR operators, an expression can have several different statements built into it:

eg cost_price > 10 AND quantity_on_hand < 4000

eg voucher_type = ‘IN’ OR value > 0

• Functions within expressions can add another level of complexity:

eg cost_price > 10 AND quantity_on_hand < 4000 AND SUBSTR(item_i

d , 1 , 2 ) = ‘80’

Page 32: ACL Training Materials

32

Workshop B-1

• 任務:– 1. 開啟 AR.fil ,並驗證資料完整性。

( 資料小計 )

– 2. 請計算 Trans_Amount 總額。

– 3. 驗證欄位〝 INVOICE_AMOUNT 〞之正確性。 ( 了解是否有負值 )

– 4. 請找出交易代碼 (Trans_Type) 為“ CN”,”IN” 之交易。

– 5. 將 4. 之執行結果以報表格式列印在螢幕上, 並請加註表首〝 Independency CO.,” ; 表尾〝 Prepared by XXXX 〞。

Page 33: ACL Training Materials

33

Workshop B-2

自 ABC 公司下載應收帳款資料 (AREC.DBF)

請於 ACL 中定義 AREC.DBF

1. 有多少筆資料帳單日期 (Invoice Date) 大於到期日 ?

2. 正數金額有幾筆 ? 總金額為何 ?

3. 負數金額有幾筆 ? 總金額為何 ?

4. 1997 年 2 月份到期,交易別 (Type) 是 IN 的筆數有多少 ?金額為何 ?

5. 1997 年 3 月及 9 月份到期,金額為負數的資料筆數有多少? 金額為何 ?