ACL可读取的资料格式文字档(Text)说明.ppt

上传人:ga****84 文档编号:359474 上传时间:2018-09-26 格式:PPT 页数:49 大小:1.31MB
下载 相关 举报
ACL可读取的资料格式文字档(Text)说明.ppt_第1页
第1页 / 共49页
ACL可读取的资料格式文字档(Text)说明.ppt_第2页
第2页 / 共49页
ACL可读取的资料格式文字档(Text)说明.ppt_第3页
第3页 / 共49页
ACL可读取的资料格式文字档(Text)说明.ppt_第4页
第4页 / 共49页
ACL可读取的资料格式文字档(Text)说明.ppt_第5页
第5页 / 共49页
点击查看更多>>
资源描述

1、ACL Training Materials,Unit A: ACL基本觀念及操作主要參考資料來源: KPMG ACL課程講義資料PriceWaterHouseCooper ACL課程講義資料,Topics,Getting Data from the clientsUnderstanding data structure of imported dataStructure of data within a ProjectLoading data into ACL,Getting data from the client,PwC,資料取得之溝通-1,資料格式之溝通通用文字檔格式(.txt)試算表

2、與資料庫格式(.xls,.dbf,.mdb)以特定符號間隔欄位之文字檔(如“,”,“;”,“Tab”等符號分隔, 如.csv則為“,”分隔)特定應用系統格式,資料取得之溝通-2,資料內容之溝通單頭,單身檔資料期間,截止日期與轉出日期資料大小資料關聯之溝通如單頭,單身檔,與相關查核事項之上下游檔案作業方式之溝通連線作業(如透過ODBC)自行或協同資料轉出離線作業注意事項,Getting data from the client,Getting data from the client,取得原始資料檔後,在匯入ACL前所應注意的事項:1.資料的格式、字元長度、小數位數等。2.資料的定義。(ex:資

3、料的來源、欄位的定義)3. 資料的完整性。(ex:總金額的核對)。,Understanding the Structure of Imported Data,Sec 2.1 擷取及下載資料(Accessing and Downloading Data) (p.9p.11),Data File RecordFieldData,常見資料檔案類型,固定欄位檔欄位固定長度及固定位置欄位不定長度, 以分界符號隔開, 有一定順序報表檔(Report files) / 列印檔(Print files)內建結構定義說明Database filesODBCExternal file definition,ACL

4、可讀取的資料格式,平面序列檔(Flat Sequential): 固定欄位檔,ACL可讀取的資料格式,資料庫檔(dBASE)說明: 1. 與ACCESS同為PC上最普遍的小型資料庫. 但DBASE的每一個資料表格(TABLE), 均為一個獨立的檔棠, 副檔名為 DBF2. DBF file與 Flat sequential file的主要差異為: DBF 檔案內的開頭部分, 會記錄該表格的組成欄位及欄位型態、長度; Flat sequential file 則只有資料. 資料欄位的定義, 由程式決定.3. dBase file Windows 上最普遍的程式開發工具為Visual Foxpro

5、4. MS Access也可以處理dbase file (匯出, 匯入, 外掛獨立表格).,ACL可讀取的資料格式,文字檔(Text)說明: 內容及格式依轉出程式的寫入安排方式而定. 可能依規則排列, 也可能沒有特定的規則.,ACL可讀取的資料格式,分界檔案(Delimited) 說明: 1. 是一種文字檔 2. 特性: 每一列表一筆記錄, 同一筆記錄內, 欄位與欄位之間以逗點(或其他分隔字元如空白,Tab.) 隔開, 文字欄位前後並加上雙引號3. Excel 可匯入及匯出Delimited file, 其附檔名為CSV (Comma Separated Value)4. 優點是去除不必要的字

6、元, 可節省空間.,ACL可讀取的資料格式,列印檔(Print Files)說明: 1. 為一種文字檔, 主要將輸出的報表內容, 直接轉為文字檔. 2. 包含非資料的表頭及表尾, 空白行及小計行, ACL有能力將不需要的非資料部分去除.,ACL可讀取的資料格式,開放資料庫連結(ODBC)說明: 1. ODBC是一種資料庫與應用程式之間的界面,透過ODBC界面,應用程式可以很容易地和各種關連式資料庫連結並取得資料- 2. 常見的資料庫如Oracle, DB2, SQL Server均有支援ODBC, 連檔案類型的資料檔如Access (MDB), dBase ( DBF), Excel (xls

7、)微軟也都提供ODBC的連接驅動程式. 磁帶(Tape)ACL可以直接從磁帶(Tape reels)或卡帶(Cartridges)讀取未經轉換的資料,但不可以用備份檔;讀取的磁帶種類包括 inch 9-track tapes, IBM 3480 cartridges, 8mm tape, and 4mm DAT,特別注意,使用這個方法,必須加裝適當的磁帶機在PC上。,Structure of data within a Project,PwC,Structure of data within a Project,The major physical components of a Projec

8、t are:Overview window (全覽視窗)Data View window (個別資料視窗)Command Log window (稽核軌跡) Menu Bar Button BarStatus Bar,Structure of data within a Project,The major physical components of a Project are:Overview window (全覽視窗) Command Log window (稽核軌跡) Data View window (個別資料視窗)Menu Bar Button BarStatus Bar,Struc

9、ture of data within a Project,The major physical components of a Project are:Overview window (全覽視窗) Command Log window (稽核軌跡) Data View window (個別資料視窗)Menu Bar Button BarStatus Bar,Structure of data within a Project,The major physical components of a Project are:Overview window (全覽視窗)Data View windo

10、w (個別資料視窗)Command Log window (稽核軌跡) Menu Bar Button BarStatus Bar,Structure of data within a Project,The major physical components of a Project are:Overview window (全覽視窗)Data View window (個別資料視窗)Command Log window (稽核軌跡) Menu Bar Button BarStatus Bar,Structure of data within a Project,The major phys

11、ical components of a Project are:Overview window (全覽視窗)Data View window (個別資料視窗)Command Log window (稽核軌跡) Menu Bar Button BarStatus Bar,第二章 ACL 基本架構觀念,Sec 2.4 ACL系統作業架構,Index file可加快排序及搜尋速度,同一個data file 可以對照至多個input file definition同一個IFD亦可對照至多個Data file,ACL提供批次命令撰寫, 類似Excel巨集,稽核軌跡記錄: 記錄執行的命令、參數及執行結果

12、,Structure of data within a Project,The major logical components of a Project are: BatchesInput files Views Indexes,檔案結構 Project Files (.ACL)Output Data Files (.FIL) Log Files (.LOG) Index Files (.INX),Structure of data within a Project,Workshop A-1,任務:1. 開啟 Workbook.acl2. 開啟 ap_trans3. 複製 ap_trans4

13、. 將新複製 ap_trans2 更 名為 Case_15. 開啟 Case_16. 將欄位 Invoice Amount 及 Unit Cost 格式更改 每千元以逗號, 區隔之格式,7. 將日期型欄位 (如 Invoice Date) 原格式 更改為YYYY, MMM DD 格式8. 刪除欄位 Quantity9. 新增欄位 Quantity10. 將欄位 Product Number 更名 為 Prod_No11. 列印報告至螢幕 (可自 行於表首、表尾加註),Loading data into ACL,PwC,Loading data into ACL,Data files need

14、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 foundIFDs are defined by the user within ACL and

15、then used by ACL to create an input file derived from the original data source.,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

16、 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,Activity 1 - Loading data into ACL 固定欄位檔Activity 2 - Loading data

17、into ACL 報表檔,Loading data into ACL,Loading data into ACL- Activity 1,步驟 1:點選 File/New Project from the Menu Bar,步驟 2:出現 Select Input File Definition 後,點選 New,Loading data into ACL- Activity 1,ACL makes the process of defining an IFD fairly simple using a built in Data Definition Wizard,Loading data

18、into ACL- Activity 1,步驟 3:選擇欲匯入之資料檔的來源。,Loading data into ACL- Activity 1,步驟 4:選取最適合剖析匯入資料的檔案類型。,Loading data into ACL- Activity 1,步驟 5:選擇匯入資料中所包含的分隔符號。(ex:頓號、Tab等),Loading data into ACL- Activity 1,步驟 6:定義匯入資料欄位的名稱及格式型態 (ex:數值、日期、文字等) 。,注意事項:若為日期欄位,則須定義日期的型態。,Loading data into ACL- Activity 1,Loadi

19、ng data into ACL- Activity 1,步驟 7:檢視匯入的資料內容是否正確。,注意事項:檢查Filed Type的定義是否正確!,Loading data into ACL- Activity 1,步驟 8:完成資料檔的匯入後的如左如示。,Loading data into ACL- Activity 1,步驟 9:(重要!)確認匯入資料的完整性。 可藉由“加總”的功能,檢查總金額或交易筆數是否與匯入前的一致。,註: 於下一單元資料驗證中會再詳細介紹,Loading data into ACL- Activity 1,由Edit/Input File Definition(

20、IDF) 進入。匯入資料後,欄位定義仍可修改;但欄位名稱則不可再修改。,Loading data into ACL,建立新文件時,勿用相同檔名開啟,否則會覆蓋原有文件。資料匯入後必須確認資料之完整性及正確性(Count & Total)。匯入時須注意小數位數。匯入時日期型態如為YY/MM/DD,欄位定義須與其一致。匯入時欄位名稱須以英文名稱命名。,重點提示!,Input File Definition,新增:啟動 Data Definition Wizard : Overview視窗, 點選New IconSelect Data file to be defined將轉入資料命名及存檔: *.

21、filFinish: 命名IFD名稱修改或手動設定:Overview視窗, 選取要修改的IFD 項目選取 Edit/Input File Definition選取 Edit Fields/Expressions頁面,定義資料欄位,Format: 設定資料來源格式 (尤其是數字及日期欄位), 格式須與資料來源內容一致Alternate Column Title: 檢視資料時, 顯示的欄位標題定義重疊欄位,第三章輸入檔定義 (Input File Definition),Sec 3.2詮譯日期(Interpreting Dates),標準日期:,第三章輸入檔定義 (Input File Defin

22、ition),Sec 3.2詮譯日期(Interpreting Dates),設定起始紀元(Setting the Start of Century)如果我們日期包含四個位數(four-digit years)的年份並已設定21世紀為起始元年,就不需要設定起始紀元,只有將顯示西元年後兩位的情形下,才須要設定起始紀元。,Workshop A-2,內部稽核人員打算利用ACL對ABC公司進行應收帳款查核,查核規劃,乃依下列方式進行:自ABC公司下載應收帳款資料(AR.FIL)在ACL中,定義AR.FIL各欄位相關定義如下:NamestartLenTitleNo 16Customer NumberDate78Invoice DateDue158 Due DateRef236Reference NumberType292Transaction TypeAmount3110Transaction Amount,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 重点行业资料库 > 1

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。