ACL Training Materials

49
1 ACL Training Materials Unit A: ACL 基基基基基基基 基基基基基基基基 : KPMG ACL 基基基基基基 PriceWaterHouseCooper ACL 基基基基基基

description

ACL Training Materials. Unit A: ACL 基本觀念及操作 主要參考資料來源 : KPMG ACL 課程講義資料 PriceWaterHouseCooper ACL 課程講義資料. Getting Data from the clients Understanding data structure of imported data Structure of data within a Project Loading data into ACL. Topics. Getting data from the client. PwC. - PowerPoint PPT Presentation

Transcript of ACL Training Materials

Page 1: ACL Training Materials

11

ACL Training Materials

Unit A: ACL 基本觀念及操作

主要參考資料來源 :

KPMG ACL 課程講義資料PriceWaterHouseCooper ACL 課程講義資

Page 2: ACL Training Materials

22

Topics• Getting Data from the clients

• Understanding data structure of imported data

• Structure of data within a Project

• Loading data into ACL

Page 3: ACL Training Materials

33

Getting data from the client

Page 4: ACL Training Materials

44

資料取得之溝通 -1

• 資料格式之溝通–通用文字檔格式 (.txt)–試算表與資料庫格式 (.xls,.dbf,.mdb)–以特定符號間隔欄位之文字檔(如“ ,”,“;”,“Tab”等符號分隔 , 如 .csv則為“ ,”分隔 )

–特定應用系統格式

Page 5: ACL Training Materials

55

資料取得之溝通 -2• 資料內容之溝通

–單頭 ,單身檔–資料期間 ,截止日期與轉出日期–資料大小

• 資料關聯之溝通–如單頭 ,單身檔 ,與相關查核事項之上下游檔案

• 作業方式之溝通–連線作業 (如透過 ODBC)–自行或協同資料轉出–離線作業注意事項

Page 6: ACL Training Materials

66

Getting data from the clientData Source Character Set File Format

File on disk File on Tape ODBC File (MS Access, Oracle) External file definition (AS/400, COBOL)

ASCII (most PC’s) EBCDIC (mainframes or minicomputers)

dBase compatible file Delimited text file SAP private file format AccPac master file Other (user defined)

Page 7: ACL Training Materials

77

Getting data from the client

取得原始資料檔後,在匯入 ACL 前所應注意的事項:

1. 資料的格式、字元長度、小數位數…等。

2. 資料的定義。 (ex: 資料的來源、欄位的定義 )

3. 資料的完整性。 (ex: 總金額的核對 ) 。

Page 8: ACL Training Materials

88

Understanding the Structure of Imported Data

Page 9: ACL Training Materials

99

Sec 2.1 擷取及下載資料( Accessing and Downloading Data ) (p.9~p.11)

Data File RecordFieldData

Page 10: ACL Training Materials

1010

常見資料檔案類型

• 固定欄位檔– 欄位固定長度及固定位置– 欄位不定長度 , 以分界符號隔開 , 有一定順序

• 報表檔 (Report files) / 列印檔 (Print files)• 內建結構定義說明

– Database files– ODBC– External file definition

Page 11: ACL Training Materials

1111

ACL 可讀取的資料格式• 平面序列檔( Flat Sequential ) : 固定欄位檔

Page 12: ACL Training Materials

1212

ACL 可讀取的資料格式• 資料庫檔(dBASE)• 說明:

– 1. 與ACCESS同為PC上最普遍的小型資料庫. 但DBASE的每一個資料表格 (TABLE), 均為一個獨立的檔棠 , 副檔名為 DBF– 2. DBF file與 Flat sequential file的主要差異為 : DBF 檔案內的開頭部分 , 會記錄該表格的組成欄位及欄位型態、長度 ; Flat sequential file 則只有資料 . 資料欄位的定義 , 由程式決定 .– 3. dBase file Windows 上最普遍的程式開發工具為Visual Foxpro– 4. MS Access也可以處理dbase file (匯出 , 匯入 , 外掛獨立表格 ).

Page 13: ACL Training Materials

1313

ACL 可讀取的資料格式• 文字檔( Text )• 說明 : 內容及格式依轉出程式的寫入安排方式而定 . 可能依規則排列 ,

也可能沒有特定的規則 .

Page 14: ACL Training Materials

1414

ACL 可讀取的資料格式• 分界檔案( Delimited )• 說明 :

– 1. 是一種文字檔 – 2. 特性 : 每一列表一筆記錄 , 同一筆記錄內 , 欄位與欄位之間以逗點 ( 或其他分

隔字元如空白 ,Tab…..) 隔開 , 文字欄位前後並加上雙引號– 3. Excel 可匯入及匯出 Delimited file, 其附檔名為 CSV (Comma Separated Value)– 4. 優點是去除不必要的字元 , 可節省空間 .

Page 15: ACL Training Materials

1515

ACL 可讀取的資料格式• 列印檔( Print Files )• 說明 :

– 1. 為一種文字檔 , 主要將輸出的報表內容 , 直接轉為文字檔 . – 2. 包含非資料的表頭及表尾 , 空白行及小計行 , ACL 有能力將不需要的

非資料部分去除 .

Page 16: ACL Training Materials

1616

ACL 可讀取的資料格式• 開放資料庫連結 (ODBC)• 說明 :

– 1. ODBC 是一種資料庫與應用程式之間的界面,透過 ODBC 界面,應用程式可以很容易地和各種關連式資料庫連結並取得資料

- 2. 常見的資料庫如 Oracle, DB2, SQL Server 均有支援ODBC, 連檔案類型的資料檔如 Access (MDB), dBase ( DBF), Excel (xls) 微軟也都提供 ODBC 的連接驅動程式 .

• 磁帶( Tape )ACL 可以直接從磁帶 (Tape reels) 或卡帶 (Cartridges) 讀取未經轉換的資

料,但不可以用備份檔;讀取的磁帶種類包括 ½ inch 9-track tapes, IBM 3480 cartridges, 8mm tape, and 4mm DAT ,特別注意,使用這個方法,必須加裝適當的磁帶機在 PC 上。

Page 17: ACL Training Materials

1717

Structure of data within a Project

Page 18: ACL Training Materials

1818

Structure of data within a ProjectThe major physical components of a Project are:

• Overview window

( 全覽視窗 )

• Data View window

( 個別資料視窗 )

• Command Log

window ( 稽核軌跡 )

• Menu Bar

• Button Bar

• Status Bar

Page 19: ACL Training Materials

1919

Structure of data within a ProjectThe major physical components of a Project are:

• Overview window

( 全覽視窗 )

• Command Log

window ( 稽核軌跡 )

• Data View window

( 個別資料視窗 )

• Menu Bar

• Button Bar

• Status Bar

Page 20: ACL Training Materials

2020

Structure of data within a ProjectThe major physical components of a Project are:

• Overview window

( 全覽視窗 )

• Command Log

window ( 稽核軌跡 )

• Data View window

( 個別資料視窗 )

• Menu Bar

• Button Bar

• Status Bar

Page 21: ACL Training Materials

2121

Structure of data within a ProjectThe major physical components of a Project are:

• Overview window

( 全覽視窗 )

• Data View window

( 個別資料視窗 )

• Command Log

window ( 稽核軌跡 )

• Menu Bar

• Button Bar

• Status Bar

Page 22: ACL Training Materials

2222

Structure of data within a ProjectThe major physical components of a Project are:

• Overview window

( 全覽視窗 )

• Data View window

( 個別資料視窗 )

• Command Log

window ( 稽核軌跡 )

• Menu Bar

• Button Bar

• Status Bar

Page 23: ACL Training Materials

2323

Structure of data within a ProjectThe major physical components of a Project are:

• Overview window

( 全覽視窗 )

• Data View window

( 個別資料視窗 )

• Command Log

window ( 稽核軌跡 )

• Menu Bar

• Button Bar

• Status Bar

Page 24: ACL Training Materials

2424

第二章 ACL 基本架構觀念 Sec 2.4 ACL 系統作業架構

Page 25: ACL Training Materials

2525

Index file 可加快排序及搜尋

速度

同一個 data file 可以對照至多個

input file definition

同一個 IFD 亦可對照至多個 Data

file

ACL 提供批次命令撰寫 , 類似 Excel 巨集

稽核軌跡記錄 : 記錄執行的

命令、參數及執行結果

Page 26: ACL Training Materials

2626

Structure of data within a Project

• The major logical components of a Project are:

• Batches

•Input files

• Views

• Indexes

Page 27: ACL Training Materials

2727

檔案結構

Project Files (.ACL)

Output Data Files (.FIL) Log Files (.LOG) Index Files (.INX)

Structure of data within a Project

Page 28: ACL Training Materials

2828

Workshop A-1

• 任務:– 1. 開啟 Workbook.acl

– 2. 開啟 ap_trans

– 3. 複製 ap_trans

– 4. 將新複製 ap_trans2 更 名為 Case_1

– 5. 開啟 Case_1

– 6. 將欄位 Invoice Amount 及 Unit Cost 格

式更改 每千元以逗號〝,〞 區隔之格式

– 7. 將日期型欄位 ( 如 Invoice Date) 原格式 更改為 YYYY, MMM DD 格式

– 8. 刪除欄位 Quantity– 9. 新增欄位 Quantity– 10. 將欄位

Product Number 更名 為 Prod_No

– 11. 列印報告至螢幕 ( 可自 行於表首、表尾

加註 )

Page 29: ACL Training Materials

2929

Loading data into ACL

Page 30: ACL Training Materials

3030

Loading data into ACL

• Data files need to be translated into a format that ACL can read and work with. This is done using an Input File Definition:

An Input File Definition (IFD) is a format used to describe the structure and content of a data file and to specify where the data file can be found

• IFD’s are defined by the user within ACL and then used by ACL to create an input file derived from the original data source.

Page 31: ACL Training Materials

3131

Loading data into ACL

• There are a number of steps involved in creating an IFD.

• At the end of the process, an input file will have been created, linked to the source data file using the IFD, and loaded into ACL.

The source data file location and characteristics are input into ACL and the input file is created

Using the record definition obtained from the client, the record fields are defined and named

The input file is loaded into the open ACL Project

Page 32: ACL Training Materials

3232

•Activity 1 - Loading data into ACL – 固定欄位檔

•Activity 2 - Loading data into ACL – 報表檔

Loading data into ACL

Page 33: ACL Training Materials

3333

Loading data into ACL- Activity 1

步驟 1 :點選 File/New

Project from the

Menu Bar

步驟 2 :出現 Select

Input File

Definition 後,點選 New

Page 34: ACL Training Materials

3434

Loading data into ACL- Activity 1

• ACL makes the process of defining an IFD fairly simple using a built in Data Definition Wizard

Page 35: ACL Training Materials

3535

Loading data into ACL- Activity 1

步驟 3 :

選擇欲匯入之資料檔的來源。

Page 36: ACL Training Materials

3636

Loading data into ACL- Activity 1

步驟 4 :

選取最適合剖析匯入資料的檔案類型。

Page 37: ACL Training Materials

3737

Loading data into ACL- Activity 1

步驟 5 :

選擇匯入資料中所包含的分隔符號。(ex :頓號、 Tab…等 )

Page 38: ACL Training Materials

3838

Loading data into ACL- Activity 1

步驟 6 :

定義匯入資料欄位的名稱及格式型態 (ex :數值、日期、文字…等 ) 。

Page 39: ACL Training Materials

3939

注意事項:

若為日期欄位,則須定義日期的型態。

Loading data into ACL- Activity 1

Page 40: ACL Training Materials

4040

Loading data into ACL- Activity 1

步驟 7 :

檢視匯入的資料內容是否正確。

注意事項:

檢查 Filed Type的定義是否正確 !!

Page 41: ACL Training Materials

4141

Loading data into ACL- Activity 1

步驟 8 :

完成資料檔的匯入後的如左如示。

Page 42: ACL Training Materials

4242

Loading data into ACL- Activity 1

步驟 9 : ( 重要!!)

確認匯入資料的完整性。 可藉由“加總”的功能,檢查總金額或交易筆數是否與匯入前的一致。

註 : 於下一單元資料驗證中會再詳細介紹

Page 43: ACL Training Materials

4343

Loading data into ACL- Activity 1

由 Edit/Input File Definition(IDF) 進入。

•匯入資料後,欄位定義仍可修改;但欄位名稱則不可再修改。

Page 44: ACL Training Materials

4444

Loading data into ACL

• 建立新文件時,勿用相同檔名開啟,否則會覆蓋原有文件。

• 資料匯入後必須確認資料之完整性及正確性 (Count & Total)。

• 匯入時須注意小數位數。

• 匯入時日期型態如為 YY/MM/DD,欄位定義須與其一致。

• 匯入時欄位名稱須以英文名稱命名。 重點提示 !

Page 45: ACL Training Materials

4545

Input File Definition• 新增 :• 啟動 Data Definition Wizard : [Overview] 視窗 , 點選

[New] Icon• Select Data file to be defined• 將轉入資料命名及存檔 : *.fil• Finish: 命名 IFD 名稱

• 修改或手動設定 :• [Overview] 視窗 , 選取要修改的 IFD 項目• 選取 [Edit]/[Input File Definition]• 選取 [Edit Fields/Expressions]頁面

Page 46: ACL Training Materials

4646

定義資料欄位• Format: 設定資料來源格式 (尤其是數字及日期欄

位 ), 格式須與資料來源內容一致• Alternate Column Title: 檢視資料時 , 顯示的欄位標題

• 定義重疊欄位

Page 47: ACL Training Materials

4747

第三章輸入檔定義 (Input File Definition)

Sec 3.2 詮譯日期 (Interpreting Dates) 標準日期:

Type Format Example using December 31, 2000

American MM DD YY

12 31 00

European DD MM YY

31 12 00

  MMM DD DEC 31

Julian YYDDD 00365 

Page 48: ACL Training Materials

4848

第三章輸入檔定義 (Input File Definition)

Sec 3.2 詮譯日期 (Interpreting Dates)

 

設定起始紀元( Setting the Start of Century )如果我們日期包含四個位數 (four-digit years) 的年份並已設定 21世紀為起始元年,就不需要設定起始紀元,只有將顯示西元年後兩位的情形下,才須要設定起始紀元。

Start of Century

Date Years Display as Dates

00 00 to 99 1900– 1999 (cannot display after 2000)

05 05 to 99 1905– 1999

  00 to 04 2000– 2004

60 60 to 99 1960– 1999

  00 to 59 2000– 2059

77 77 to 99 1977– 1999

  00 to 76 2000– 2076

Page 49: ACL Training Materials

4949

Workshop A-2內部稽核人員打算利用 ACL 對 ABC公司進行應收帳款查核,查核規劃,乃依下列方式進行:

1. 自 ABC公司下載應收帳款資料 (AR.FIL)2. 在 ACL 中,定義 AR.FIL各欄位相關定義如下:Name start Len TitleNo 1 6 Customer NumberDate 7 8 Invoice DateDue 15 8 Due DateRef 23 6 Reference NumberType 29 2 Transaction TypeAmount 31 10 Transaction Amount