The Number 1 independent website for ACL information!

TexasACL User Group
About Us
Training
Why ACL
Essays & Scripts
ACL News
Events
Links
FAQ
Site Map
Support Us
<meta name="GENERATOR"/><style> <!-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } --> </style> <p style="margin-bottom: 0in;"><font color="#000000"><font face="Arial, sans-serif"><font size="2">"Applications" is a feature that ACL incorporates that allows users to create and utilize scripts on a regular basis without having to "Copy" the script into a project. When properly defined, one can use the applications to access standardized tools/batches. This has several features:</font></font></font><font color="#000000"> </font> </p> <ol><li><p style="margin-top: 0.19in; margin-bottom: 0in;"><font color="#000000"><font face="Arial, sans-serif"><font size="2">It enables programmers to access and preserve standardized scripts without having to worry about local users modifying the standardized scripts. (E.g. the scripts can be protected from non-authorized editing ensuring that the script is executed as originally designed!)</font></font></font><font color="#000000"> </font> </p> </li><li><p style="margin-bottom: 0in;"><font color="#000000"><font face="Arial, sans-serif"><font size="2">This helps ensure version control. If a change is identified in one script, all projects that run that script in the future will incorporate that change/enhancement. It is no longer necessary to try to figure out if a particular version of the script has the fix or not (likewise, if you are using a non-standard batch script, you don't have to look in numerous projects for the desired version/script.)</font></font></font><font color="#000000"> </font> </p> </li><li><p style="margin-bottom: 0in;"><font color="#000000"><font face="Arial, sans-serif"><font size="2">It allows ACL users to create tools that are always available in every ACL project. (E.g. the user has written a script that will perform a duplicates test on data. Using applications, the execution of this script simply requires pushing a button.)</font></font></font><font color="#000000"> </font> </p> </li><li><p style="margin-bottom: 0.19in;"><font color="#000000"><font face="Arial, sans-serif"><font size="2">This makes it significantly easier to place ACL scripts into the hands of non-ACL users (E.g. audit teams and other units.) This allows ACL to become more of an end-user system and enhances the programmers' ability to provide more value to the client.</font></font></font></p> </li></ol> <p style="margin-bottom: 0in;"><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">CREATING THE .BAT FILES</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">In order to create a standardized script that is available for all projects, one must create a .bat version of the script. This is easy to do as ACL provides a built in tool to do so. Simply highlight the script that needs to be saved. Right click the mouse button. This will provide a dropdown box which includes the option "Export to OS/390 file." Select that option and save the file as a .BAT file. Best practice is to save the file in a segregated directory that has a short pathname and short script name. The reason for the short names is that the MNU file has a very limited length for commands.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">Once the .bat file is created, it can be protected from non-authorized editing.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">CREATING THE .MNU FILE</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The MNU file is the file that populates the ACL Applications button. This file can be titled anything, but the name will dictate what appears on the APPLICATIONS button. E.g. if the MNU is saved as "SAS 99 Testing" then the drop down box that appears under the APPLICATIONS button will be labelled "SAS 99 Testing." You can thus have multiple MNU files in a project (different MNU files for SAS 99, AR, AP, General Tools, etc.)</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The MNU file must be written in a very specific manner. Each menu item is compromised of blocks. The general format for the block is:</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">MENU HEADING Number of entries</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">Menu Entry Menu link or command</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">…</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">Last Menu entry Menu link or command</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The first Menu Header must be "Main Menu" and the number of items indicate the number of commands/links that the main menu will display. For example:</font></font></font></p> <p style="margin-left: 0.5in; margin-bottom: 0in;"><font color="#000000"><font face="Arial, sans-serif"><font size="2">MAIN MENU 6 .</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">Margins Analysis 11 menu_def .</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">Statistics Statistics .</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">VV_DO_ALL_SCRIPTS DO "c:\ACL\Scripts Analysis\vv_Do_All_scripts.bat" .</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">A01_Define_fields DO A01_Define_Fields .</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">General Tools 20 menu_def .</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">Quit ACL QUIT .</font></font></font></p> <p style="margin-bottom: 0in;"><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">In the above example, there are 6 items that will appear on the main menu for this MNU table. Those six items are Margin Analysis, Statistics, vv_do_all_scripts, A01_Define_fields, General Tools, and quit. Each of those items are associated with specific commands. </font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The Margins Analysis and General Tools commands will create submenus on the 11th and 20th line of the MNU file. (NOTE: when counting the lines of an MNU files start on the first line as line 0. E.g. the 11th and 20th lines are really the 12th and 21st lines of the file.) When creating the submenus the first line should repeat the label (Margins Analysis/General Tools) and then indicate the number of lines on each of the submenus.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The Statistics and Quit lines will simply execute ACL commands.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The vv_do_all_scripts line demonstrates the format for executing a standardized script saved as vv_do_all_scripts.bat file with a path of c:\ACL\Scripts Analysis\. NOTE: When executing a .BAT file it is a best practice to delete the script as ACL will copy the .bat script into an active script within the current project.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">The A01_Define_Fields line will execute a script already loaded into ACL called A01_Define_Fields.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">KEY SYNTAX:</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">1) Do not use tabs. Tabs may cause problems with the coding.</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">2) The start of each block of numbers must include the block title and the number of lines in the block.</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">3) The number of entries/ Menu link or command must start at the same character space on the line. E.g. every line must contain the number of entries/menu link/command at the same space (38th character/50th character/etc.)</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">4) At the end of each line, at the same character point, the MNU file MUST have a period. E.g. every line must end at the same character point with a period.</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">5) After the period there cannot be any other characters including blank spaces.</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">6) ACL official guidelines indicates that the description field MUST be less than 35 characters, that the number of entries/ Menu link or command MUST start at point 37, and that the period MUST be at character point 78. Per ACL technical support these are really guidelines and other values will work, but care should be taken to ensure that the MNU works if you choose not to follow them.</font></font></font><font color="#000000"><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">7) The maximum number of items per menu/submenu is 14 items.</font></font></font><font color="#000000"><br/><br/></font><font color="#000000"><font face="Arial, sans-serif"><font size="2">NOTE: ACL provides a template.mnu with every installation of ACL.</font></font></font></p> <meta/><title/><meta name="GENERATOR"/><style> <!-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } --> </style> </div> </td> </tr> </tbody></table> </div> </td> </tr></table> </td> </tr> <tr> <td id="IWS_WH_Elem_Footer" colspan="2" class="MS_MasterFooter"> <div class="MSC_FooterFrame"> <span id="IWS_WH_Elem_FooterLinks"> </span> <div id="IWS_WH_Elem_FooterText" class="MSC_FooterText"> All rights reserved </div> </div> </td> </tr> <tr id="ctl00_IWS_WH_Elem_Logo"> <td id="ctl00_IWS_WH_Elem_BottomAd" class="MS_MasterBottomAD" style="padding-top:2px"> </td> </tr> </table> </form> <!-- BEGIN TRACKING CODE --> <script type="text/javascript" language="JavaScript"> var FCProAccountId = "12b55bbb-6f3c-470f-8051-1b5cece35e42"; var ServerName = "Texasacl-financial-officelive-com.sitereports.officelive.com"; </script> <script type="text/javascript" language="JavaScript" src="http://Texasacl-financial-officelive-com.sitereports.officelive.com/js/restats_static.js"> </script> <noscript> <img src="http://Texasacl-financial-officelive-com.sitereports.officelive.com/FCPISAPI/ISAPIExtn.dll/i/12b55bbb-6f3c-470f-8051-1b5cece35e42/0" /> </noscript> <!-- END TRACKING CODE --> <!-- CXNID=5426436&Code=C2 --> </body> </html>