Exploiting MS Windows for SAS Version 6.10

Exploiting MS Windows for SAS Version 6.10

Exploiting MS Windows for SAS Version 6.10 John Asa Price, Mark W. Cates, SAS Institute Inc., Cary NC ABSTRACT CONFIGURING THE SAS AWS This paper describes features of the SAS® Using the Preferences dialog box, you can: System in Release 6.10 that allow the • Control scroll bars exploitation of the features available under • Activating the status line with Message Line andlor the Microsoft Windows operating system. control bar The goal of the paper is to show users of the • Controling menu style (popup or command~ine) SAS System for Microsoft Windows the • Activating the command line or command bar features and customization options that • Activating the tool bar or toolbox enable the SAS System to work natively on • Setting default insert mode PC platforms. See the section "Customizing Your SAS Session" in Microsoft Windows INTRODUCTION Environment:Changes and Enhancements to the SAS System. The purpose of this paper is to provide an overview of the features provided by the CONFIGURING YOUR GUI SAS System under Microsoft Windows, Re· lease 6.10. You should view this paper as a cursory introduction to these features but While most PC users expect an interactive you will need to refer to the SAS Companion method to configure the SAS GUI, this is for the Windows Environment, Version 6, not enough control for the SAS/AF pro· First Edition and Microsoft Windows grammers. Commands exist for all the in· Environment: Changes and Enhancements teractive settings. Also, additional com· to the SAS System.(Pub # 55107) for more mands exist to control the appearance or details. This paper summarizes: behavior of the SAS AWS and the SAS application windows. These commands al· • Configuring the SAS AWS low you to create applications using the • Using and modifying the Toolbar SAS System and then remove any trace of • Registering Common Applications the SAS System creating the appearance of • Printing a stand·alone application. • Using MCI, the Medial Control Interface There are several options and commands Using ODBC • that allow you to control the SAS AWS. Using and accessing Remote Data Libraries • These include: • Sending electronic mail using the Data Step and • NOAWSMENUMERGE removes common menu SCl items from the SAS AWS menu bar Using OLE version 1.0 features • • NOAWSMENU removes SAS AWS menu bar Online SAS Samples • • AWSCONTROL removes system controls such as Accessing Winhelp • the title bar, system menu, minima:e and maximize • Calling External Dlls buttons • Importing and Exporting Graphics data • AWSTITLE specifies the title to use on the SAS AWStitJebar • AWSDEF controls the location and size of the SASAWS • AWSMINIMIZE minimizes the SAS AWS • AWSMAXIMIZE maximizes the SAS AWS • AWSRESTORE restores the SAS AWS 608 The option SASCONTROL eliminates the DLGOPEN and DLGSAVE allow you to con­ system controls from SAS application win­ trol the file filters each display by adding a dows. SASCONTROL NOSYSTEMMENU FILTER = "·.ink ·.doc". This adds a filter for eliminates the system menu and SASCON­ both .ink and .doc files. Specifying the RE­ TROL NOMINMAX eliminates the minimize PLACE parameter will remove all the de­ and maximize buttons. This option changes fault filters. $FILTERLIST initially controls all existing SAS application windows as well the filters displayed in the default Open and all windows created after submitting the op­ Save As dialogs. Use $FILTERLIST "·.ink tions statement. ·.sav" to add these filters to the dialogs. You can add your own icons with the option Using the Tool Editor, you can create mUl­ USERICON. This feature is available with tiple tool sets and save each to a different SAS/AF and SAS/EIS® software. To use, SAS catalog entry. Then using the TOOL­ create a frame entry using SAS/AF soft­ LOAD command, you can programmatically ware. Make or fill a region with an icon. load each tool set as necessary. The syntax From the attributes screen, select the cur­ is "toolload <boxlbar> li­ rent icon button. Then, select the "user-de­ bref.catalog.member". You can also use fined" radio button. If you have specified an the TOOLCLOSE command to program­ matically close a toolbox. In addition, if you icon resource file with USERICON, clicking are using the toolbox instead of the tool bar, on the radio button displays all of your the TOOLDEF command allows you to con­ icons. Clicking on the "sas-supplied" radio trol the initial location of the toolbox. button allows you to use any of the icons provided by the SAS System. COMMAND controls the command bar. The syntax for this command is With the option $SASICON, you can over­ 'COMMAND <WINDOWIBARICLOSE' ride the default icon for the SAS System. <title>. Specifying WINDOW creates a The syntax of this option is: command dialog and ''title'' overrides the ti­ $SASICON userlnouser normal busy tle of the dialog. Specifying BAR creates Where: the command bar and CLOSE removes user use the DLL specified by USERICON either the command dialog or the command nouser use sasvicon.dll as the resource file bar. nOfTTlal identif!ef of the normal icon busy identifier of the busy icon The command WSTATUSLN controls the status line. Tuming off the status line cre­ The following commands invoke SAS sup­ ates message lines in all SAS application plied dialogs: windows. Tuming on the status line creates .DLGABOUT About dialog the status line in its last active state and de­ • DLGCDIR Change directory dialog stroys message lines in. the SAS application • DLGENDR Exit SAS dialog windows. The syntax of this option is: • DLGFIND Find dialog WSTATUSLN [ON I OFF] [ALL I MSG=% I CDIR=%] Fonts Selection dialog • DLGFONT Where: • DLGLlNKS OLE Links dialog ON turns on the status line • DLGOPEN Open dialog OFF turns off the status line • DLGPRT Print dialog ALL enables both the message and current • DLGPRTSETUP Printer Setup dialog directory portion Save As dialog • DLGSAVE MSG enables only the message portion of the • DLGSMAIL E-mail dialog status line (=% specifies the percentage of the Preferences dialog • DLGPREF status line used by the message area) • DLGREPLACE Replace dialog COIR enables only the current dir~ory portion of Run dialog • DLGRUN the status line (=% specifies the percentage of • TOOLEDIT Tool Edttor dialog the status line used by the c~rrent directory) 609 The option INITCMD allows you to invoke a SAS/AF application without displaying the Program Editor, Log or Output windows. The syntax is: -INITCMD "af c=sasuser.a.a.frame" The command WHSBAR ONIOFF turns horizontal scroll bars on or off for all SAS applications windows. The commandWVS­ BAR ONIOFF turns vertical scroll bars on or off for all SAS applications windows. The option LOGO controls the display of the logo screen. Use NOLOGO to suppress the logo screen. You can override the default logo screen that displays by creating a DLL containing your bitmap with an identifier of 1. Simply copy your DLL into sasvlogo.dll in !sasroot/core/sasdll and your logo displays when the SAS System starts. REGISTERING COMMON APPLICATIONS The option EXITWINDOWS will automati­ cally cause the SAS System to exit Win­ You can add applications that you dows when the SAS System exits. This is . commonly use to the FILE pulldown menu. useful for batch programs. You can add up to 8 applications to the file pulldown menu. To register an application, USING AND MODIFYING THE TOOLBAR add the following code to your CONFIG.SAS file: SAS comes with a default tool bar -register 'menu·oame' 'command' {'worKing directory1 The tool bar is completely configurable us­ menu-name is the name that you want to ing the tool editor. The total number of tools appear on the File pull-down menu that you can create increased to 30. You can add or delete both tools and separators. command string to submit to invoke the The separators allow you to logically group application sets of tools. When creating a tool, you specify the tool image, the command asso­ working directory (optional) is the working ciated with the tool and the help text dis­ directory in which the application is to be played on the status line. You specify a tool run. image by either pasting from the clipboard or using the tool browser. The tool browser provides a default set of more than 140 tool PRINTING images. SAS now provides better WYSIWYG print­ ing by automatically setting your formatting options (LINESIZE and PAGESIZE) at in­ itialization time to match the settings of your printer. When you change your printer set­ tings, the SAS System options automatically update so that all future output prints in a WYSIWYG manner. You do not need to use the forms subsystem to. control your margins, fonts or page orientation. 610 The Print Setup dialog is available across USING Mel, THE MEDIA CONTROL all SAS applications and allows you to cus­ INTERFACE tomize your output on the printed page. You specify margins in real measurements like The Media Control Interface (MCI) is sup­ inches and centimeters instead of columns ported as an add-on to Release 6.10 on and rows. Microsoft Windows. Mel allows access to various Mel compatible multimedia devices (like CD Player, Mixer, Videodisk Player, etc.). MCI was developed by IBM and Microsoft and provides a standard way to interface to multimedia devices through text commands. OLE can provide access to these devices but an intemnediate application that provides access each device is required. With MCI, no When creating output, you can use any font intemnediate application is required since installed on the printer. You can take advan­ MCI allows direct communication with the tage of the True Type technology available device driver. Additionally, the same text with Windows when generating printed commands are portable between OS/2 and output.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us