Acl Scripts 4 Beginners
Acl Scripts 4 Beginners
Acl Scripts 4 Beginners
com
ACL
Milan Shah
ACL
Support Options This procedure is used to identify Method URL data errors in the file or data. It should Notesbe performed on Self-Help/ Search the ACL Knowledge Base for a https://www.acl.com/supportcenter/search.aspx Online specific issue. Online Online
https://www.acl.com/supportcenter/ol/ https://www.acl.com/supportcenter/forums/
Online
https://www.acl.com/supportcenter/contact_support/support_reque st.aspx
Telephone
https://www.acl.com/supportcenter/contact_support/global_support _contacts.aspx
Learn ACL Online Ask a question on the ACL User Forum. Send a message to the ACL Support Center. Call for ACL Telephone Support:
Please be specific with your issue; provide a short data extract if possible; or use WebEx as below.
604.669.4997
WebEx/ Online
https://www.acl.com/supportcenter/kb/article.aspx?ID=5440
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
2/10
1/21/2010,5:14 PM
Step 1. 2. 3. 4. 5.
Count
Notes
This procedure is used to assess the completeness of the data set that you are analyzing using ACL.
Step 1. 2. 3. 4. 5. 6. 7. 8. 9.
Action Select Select Select Double Click Click Type Click Click Click
Menu Item Analyze Count Records If Desired Field in Available Fields Box <> Button "0" OK OK OK
Notes
The Expression Box should now contain, Desired_Field <> 0. Ensure that you see Expression is valid in the information box. Closes information dialog box Runs the command in ACL
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
3/10
1/21/2010,5:14 PM
Step 1. 2. 3. 4.
Notes
Statistics
This procedure is used to compile statistics such as: range, positive, negative, zero, totals, absolute value and 5 highest and lowest values in the data set.
Step 1. 2. 3. 4. 5. 6. 7. 8. 9.
Action Select Select Select Select Choose Select Select Enter Click
Menu Item Notes Analyze Statistical Statistics Main Field Name Desired Field in Name Box More Tab # of High/Low Enter 10 for a Top Ten List OK
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
4/10
1/21/2010,5:14 PM
Step 1. 2. 3. 4. 5. 6. 7.
Classify
Notes
This procedure is used to count the number of records for each unique value of a character field and computes a subtotal for the selected numeric fields for each of the unique values.
Step 1. 2. 3. 4. 5.
Notes
Optional
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
5/10
1/21/2010,5:14 PM
Step 1. 2. 3. 4. 5.
Notes
Optional
Cross-Tabulate
This procedure is used to analyze character fields by reorganizing them in rows and columns. The cross-tabulate function counts the number of records in a table which: counts each row value within each column value, subtotals numeric fields for each row value within each column value, and totals the amounts for each column value.
Step 1. 2. 3. 4. 5. 6. 7.
Menu Item Analyze Cross-Tabulate Rows Columns Subtotal Fields Include Count OK
Notes
Optional
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
6/10
1/21/2010,5:14 PM
Step 1. 2. 3. 4. 5.
Notes
Reporting
This procedure is used to design and print reports.
Step 1. 2. 3. 4. 5. 6. 7.
Menu Item
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
7/10
1/21/2010,5:14 PM
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
8/10
1/21/2010,5:14 PM
Top 3 Report (1 of 2)
This ACL script opens a table, sorts it in descending order based on the frequency of occurrences based on the number of sales records and products a Top 3 Report.
Step 1. 2.
Action Import Data Verify Data in all Fields Create 5 New Folders
Menu Item
Notes Use the Data Definition Wizard Select and VERIFY all fields to identify any format or data integrity issues. A_Source_Data B_Scripts C_Deliverables D_Logs Z_Temp_Tables Name it: Top_3_Clubs
Data/Verify
3.
File/New/Script
4.
File/New/Script
5.
Script Editor Window/ OPEN NYAUG_SFB Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 SET FOLDER /Z_Temp_Tables ACCEPT "Enter Rank Size:" TO RankCount1 RankCount = Value(RankCount1,0) RankCount = RankCount+1 SUMMARIZE ON Org_Name TO "OrgNameTemp1.FIL" OPEN IF Type = "Sale" PRESORT ISOLOCALE root
6. 7. 8. 9. 10.
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
9/10
1/21/2010,5:14 PM
Top 3 Report (2 of 2)
This ACL script opens a table, sorts it in descending order based on the frequency of occurrences based on the number of sales records and products a Top 3 Report.
17.
Script
Line 13
Notes OPEN "OrgNameTemp1" INDEX ON COUNT D TO "ACLQSTMP" ISOLOCALE root SORT ON COUNT D TO "OrgNameTemp2" OPEN ISOLOCALE root OPEN "OrgNameTemp2" SET FOLDER /C_Deliverables EXTRACT RECORD TO "Top_%RankCount%_by_Org_Name" OPEN FIRST %Rankcount% OPEN "Top_%RankCount%_by_Org_Name" OPEN OrgNameTemp2 OPEN Top_%RankCount%_by_Org_Name OPEN OrgNameTemp2 OPEN Top_%RankCount%_by_Org_Name TOTAL FIELDS COUNT DEFINE Field Summary Computed Total1 DEFINE Column Default_View Summary
18. 19.
Script Script
Line 14 Line 15
20. 21.
Script
Line 16
Prepared by: Milan Shah New York ACL Users Group www.nyaug.com
10/10
1/21/2010,5:14 PM