Home
Sugi-84-33 Muller
Contents
1. tinc fsszs 3 OPTIONS SEN 0 S 80 NOCAPS NONOTES NCSOURCEZ 1 FSSAS RUNNING v o CM Figure 2 2 Welcome to the vorid of FULL SCREEN 3AS at Eli Lilly amp Co This panel is the FSSAS HOME panel for various SAS activities Select an activity by inputting a number at the bottom of this Screen VERS 2 0 vw cMS I 12 01 83 t 1 Create a SAS Data Set Invokes FSDATA 2 Use various SAS Procedures Invokes FSPROC 3 Use Graphics Procedures on NONGRAPHICS Terminals Invokes NGGRAPS 4 Use Graphics Procedures on GRAPHICS Terminais lInvokes PSGRAPH 5 HELP 6 CUIT Return to Interactive SAS EXTER NUMBER OF YOUR CHOICE 4 RUNNING CETIMU MYER Uem wn Tree et amnes DDR n E Figure 2 3 Welcome to the world of FULL SCREEN SAS GRAPHICS at Eli Vers 1 0 Lilly and Company This panel is your HOME panel from VM CMS it you can select varicus graphics activities by 06 01 83 inputting a number at the bottom oF this screen 1 Review Current GOPTIONS 6 BLOCK CHART 2 Alter Machine GOPTIONS 17 Subset amp Project MAP DATA SETS 3 Proc GREPLAY 18 DRAW MAPS 4 Run 2 Test Patterns 9 CONTOUR Plot Create TITLE Packages 20 3D Plot 6 Create FOOTNOTE Packages 21 GPRINT Ext Files to Graphics 7 Create NOTE Packages 22 GSLIDE WORD Graphics 8 Create SYMBOL Packages 23 open 9 Create PATTERN Packages 24 MACRO Utility 10 SIMPLE PLOTS 25 PRINT Hardcopy
2. The code to create the data set is listed in Figure 1 4 The program isinvoked from interactive SAS by the INCLUDE statement Figure 1 1 2 The code to invoke PROC FSEDIT is also listed in Figure 1 4 as is the statement to invoke the SAS code generator INCLUDE SUGIHB2 File TEMPI as generated by the program is listed in Figure 1 6 When it is INCI UDED the data set is edited using PROC FSEDIT The values entered on the screen are those items of information necessary to draw the chart e g data set names variable names titles axis colors etc The data entry screen is shown in Figure 1 2 3 Using this data set WORK HBAR construct the SAS code necessary to run the procedure in another external temporary file FILE TEMP2 Code is con structed by a SAS program generator SUGIHB2 Figure 1 5 processing each observation of the data set on a variable by variable basis checking for the presence of an entry If an entry is detected for a variable the program writes the appropriate SAS code to FILE TEMP2 4 Upon completion FILE TEMP2 is processed using the INCLUDE statement at the end of the SAS code generator 5 If the generated SAS code is correct the graphic appears on the device Figure 1 3 If not the SAS error message appears 6 The user is retumed to interactive SAS A SAMPLE SESSION The system will be demonstrated via a sample session under VM CMS to create a horizontal bar chart Figure 2 From i
3. The end result of these entries is the plot in Figure 3 4 Figure 2 7 Formats Formats are a convenient means of improving the appearance of SAS GRAPH output Formats can be either those furnished by SAS or cus tom created see point 13 below Figure 2 7 Labels Labels are another means of im proving the appearance of SAS GRAPH output Many graphics procedures use those labels associated with the variable in the SAS data set if the Label statement has been used at data set creation As an alternative labels can be entered here Figure 2 3 Main FSGRAPH Menu Selections 5 9 Package Creation These selections permit for the cre ation of packages that are used for repetitive titling labeling etc Samples of a Title Package screen Figure 3 5 and Pattern Package screens Figures 3 7 through 3 9 show the amount of documentary information that can be added The packages are stored as SAS macros Screens 3 6 and 3 10 show the prompts for the macro names that assign a pack age name Figure 2 3 Main FSGRAPH Menu Selections 10 22 SAS Procedures All current SAS 82 3 SAS GRAPH procedures are available with the exception of PROC G3GRID Figure 2 3 Main FSGRAPH Menu Selection 24 Macro Utility Various packages for titles etc are stored as rnacros In addition when FSGRAPH is first invoked a series of macros are created for a standard set of patterns and symbols This selection provides for listing currently
4. and TSO statements which allow TSO and CMS commands to be placed within files of SAS statements 3 The ability to create GOUT data sets in graphic proce dures with a device type of Independent Examination of the code required to create horizontal bar charts ranging from simple to complex indicated from 3 to 40 inputs would be required to create the graphs if key input variables were to be input to SAS and allow SAS to write its own code Thus a system in which the user is interrogated at the terminal on a question by question basis would result in many negative null responses wasting both user and com puter time This system uses the interrogation approach only for those operations which require a single entry to deter mine the course of program execution branching etc All operations requiring multiple entry are grouped under the FSEDIT approach A User Interrogation Approach Interrogation approaches used in this system include l A single question placed on the screen for user input response 2 A menu placed on the screen for a single user input response Questions and menus are hoth generated on the screen hy use of FILE TERM and PUT statements in a SAS data step DATA _NULL_ where a FILEDEF ddname has been issued for the terminal with a name of TERM The user s response is input in the same SAS data step via the INFILE INTERM and INPUT statements with INTERM being a FILEDEF ddname issued for th
5. for VERS 2 0 NONGRAPEICS TERMINALS st E i Lilly amp Co This panel is VM CMS your NONGRAPHIC3 HOME panel use it to seiect various ac 12 01 83 f tivities by inpicting 2 number at rhe bottom of this screen WARNING BE SURE TO SET LS AND PS FOR YOUR TERMINAL iSBLECTIOM 3 DEFAULT SETTINGS FOR NGGRAPH ARE LS 86 PS 24 1 13 2 REVIEW Current Options 14 3 ALTER Machine Options 1 4 Create TITLE Packages 16 5 Simple PLOTS 17 Complex PLOTS 18 MACRO Utility 7 Vertical Bar CHARTS 19 PRINT Hardcopy A Horizontal Bar CHARTS 20 Store work SAS Data Sets 9 Pie CHARTS 21 Create CUSTO FORMATS 10 Star CHARTS 22 HELP PP Key Descriptions 11 Block CHARTS 23 RETURN ro FSSAS Primary Menu 12 24 QUIT RETURN TO INTERACTIVE SAS ENTER NUMBER OF YOUR CHOICE NL E Figure 3 20 VM READ Qo S Are the new graphs to he generated to be added to iA or replace R thoce graphe in file FT20F001 SASPRINT A Enter Either or R ue sg D Figure 3 21 vM READ o ee A Demo for the 1924 SGT Meetings NGGRAPH HBAR BAR CHART Or MEANS MIDFOINT AGE Age years FREQ HT MEAN i4 M 1 65 00000 37 rre een annm 1 55 00000 40 ttirarsssssewvesttsSESSETTATNTTTE NT 6 64 16567 4B tkttesessaesorsostossunesuessase 5 59 20000 56 tens sowtsdnntet hhetettstt vek 6 00000 4 4 4 4 4 4 10 2c 30 40 5t 60 Eeight inches
6. o 6 00000 5 140 15 26 26 go 4 45 SO SS 60 as 70 Heioht inches Figure 1 4 SORTHRAR SAS A z 00000 TOP OF FILE IDEM 00001 CMS PILEDEF TENPl DISK TEMP SAS 00002 CMS CLRSCRN Initial SAS Program F 80 TRUNCr90 SIZE215 LINE COLUMN 1 TM 00003 PHAR HEAR Er eA bkskasaeetisesttixcertttvbitttkaateefyee ea terse thee 00024 COMMENT WRITE SAS CODE IN FILE TEMP TO CREATE DATA SET z 00005 WORK HBAR THEN EDIT WORK HRAR VIA PROC FSPOIT AND INVOKE sf 00006 A SAS CODE GENERATOR sugihb2 TO PROCESS IT FP OOOO ff BRAKE ARAN VA VEAYRERWRARRANRRRRKWKAAAAUNEKTEARRARRYRARRARREXAETERTK TX 00038 DATA NULL 60009 FILE TEMP 900010 PUT DATA HBAH LENGTH dsname 1 xvar H type 8 sumvar 8 run 00011 PROD PSEDIT DATA HBAR SCREEN DEMO SHFSC OPT 1 RUN 0001z PUT INCLUDE SUGIHB2 0 073 00013 STO 00014 FUN 00015 WINCLUDP TEMPI RUN 00016 END OF FILE 189 SAS Code Generator SUGIMB2 SAS l F 80 TEUNC BC SIZE 4 LINE 0 COLUMN Figure 1 5 00000 TOP OF FILE eng 2 21 cca Pe tae naea toara See ee asacsliesoxtassetbuces ars 6c sree ia co uds 00001 CMS FILEDEF TEMP2 DISK TFMPz SAS A 00002 COMMENTS SO es naam nanan sa anemone nearer aabe hse s beset eeteeeeneaeea there 00003 DEVELOP SAS SCURCE CODE IN FILE TENP2 BY PROCESSING THE OBSERVATIONS C0004 IX GAE DATA SRT WOPK HDAR Atetttteesteeenensnaseenraexanetet
7. of all integration that is centered around the concept of the SAS data set 4 SAS operates on an ever increasing nuinber of operating systems TSO CMS etc The system should be transport able from one environment to another with minimal con version requirements upon arrival in a new environment This requirement meant that the system make minimal use of command level languages such as TSO CLIST and the VMCMS EXEC2 languages This also excludes the use of ISPF Dialogue Manager Panels as proposed by Prague 1982 5 Exits from the interactive SAS environment to environ ments outside SAS for such things as editing files are tine consuming and are particularly awkward for inexperi enced users such exits should therefore be minimized 6 SAS GRAPH works on a number of hardware devices The system should be independent of devices and work across them Ideally the system should provide for local customization to overcome any idiosyncracies associated with the device and its local installation 7 Documentation for use of the system should be readily available on line 8 The system should be very generic in its total overall ap proach to SAS GRAPH ie all procedures and all options for all procedures should be covered However the system should also be modular in approach to perinit for customized application on specific projects 9 A modular approach should be taken to the systems architecture to provide for rapid developm
8. to FSGRAPH home panel ENTER NUMBER OF YOUR CHOICE Monat O Figure 3 14 VM READ HB AE UNES Informaticn entered on FSGRAPH Screens that is used to Vers 2 0 generate SAS code is stored in SAS Data Sets All SAS IVM CMS I Data Sets used in FSGRAPY have the fist level name WORK 06 01 82 Thase data sets may be mcved from the work files and permanently saved in permanent SAS Data Sets To do this requires that the work deta sets be copied into a permanent SAS data library Enter your choice at the bottom of this screen 1 Move WORK dataseis to PERMANENT Qatasets 2 Move PERMANENT datasets to WORK datasets 3 Quit Return to FSGRAPH home panei ENTER NUMBER OF YOUR CHOICE 7D Figure 3 15 VM READ Co Edit SAS data set WORK UTILW f Screen 3 Command r LIJUVEHELET SCREEN 3 DATA SET UTILITIES i31 EIE TEITIT Saving WORK Data Sets Motk name Permanent name Work name Permanent name l hbar save hbar0 2 3 4 5 6 8 E d I 5 10 11 12 13 14 15 2 a Mr S 17 18 19 20 192 Figure 3 16 Rd t SAS data cet WOWKX FORMT I Screen 1 Command nsns SCREEN 1 BJILDING CUSTOM FORMATS WITH PROC FORMAT Exit Delete 1II ISEE USER S MANUAL PAGE 735 ALSO SEE NEXT SCREENS Blank or I Name of Format Being Created AG FMT rules and help PF11J RANGE help PP11 LABEL help PF11 Low 12 Pretoens 13 18 Teens 20 29
9. 11 COMPLEX PLOTS 26 Work SAS Data Set Utilities 12 VERTICAL BAR CHARTS 7 Croata CUSTOM FORMATS 13 HORIZONTAL BAR CHARTS 28 HELP PF Key Descriptions 14 PIE CHARTS 29 Return to FSSAS Primary Menu 15 STAR CHARTS 30 QUIT RETURN TO INTERACTIVE A5 ENTER NUMBER OF YOUR CFOICE 13 VM READ p Cpe RUE Figure 2 4 Do you wish to edit an existing hbar tile Edit or do you wish o create a new hbar fiie Create or do you wish to exit exit ENTER either E or C or X c VM READ eee OD GS Figur 2 5 Edit SAS data set WORK HBAR Screen 1 Command Nate This application uses 3 screens 1 8CREEN 1 HORIZONTAL BAR CHARTS ae Exit Delete Blank or 1 THTS FIRST SECTION MiT amp T ALWAYS RE COMPLETED DSnazme fsdemo people Veriable on Left Side axis age Type of Chart mean Valid chart types are FREQ default CFRED PCT CPCT SUM MEAN note that some of these are statistics calculated within his procedure See manual p36 THIS SECTION MUST COMPLETED If TYPE Of CHART OF CHART IS SUM OR MEAN Variable to be summed or averacedimean ht THIS SECTION IS IJSUALLY PARTIALLY COMPLETED Title Pkg Foot Fkg Note Pkg Pattern Pkg Titled Title 1l A Demo for the 1984 SUGI Meeting 37 h 2 I titalic FSGRAPH Horizontal Bar Chart WHORE Opridns Info PFII kei e C Figure 2 6 Edit SAS data set WURK H3AR I Screen 2 Tommand d 1 SCREEN 2 HORIZONTAL BAR CHARTS THE REMAINING
10. 3 60 3 50 6 3 red 0 6 13 6 10 6 10 3 5 red 9 275 617 ATT 61 2 5 61 6 8 7 red 1 56 5 3 568 5 9 7 8 5 9 7 2 8 3 M pns uei cnp ez Wa ee a RUPEE 13 ME 15 12 19 Figure 3 4 A Demo for the 1984 SUGI Meeting FSGRAPH Horizontal Bar Chart MIDPOINT ABE Ag in Yeors FREQ HY MEAN 24 1 85 00006 32 1 55 00000 40 B 38 1886 an 5 58 20000 Be 7 84 00000 0 5 10 15 BO 230 3 40 4 SO 05 00 95 70 Maight in Inches Ploma Notes With Annotete end Overorid Options Figure 3 5 Edit SAS data set WORK TITLE fereep Command THE FOLLOWING MUST ALWAYS BE SPECIFIED Title Number 1 1 to 10 Text Demos for the 1984 SUGI Meetings THE POLLOWING ARE USUALLY SPECIFIED Color red limited by machine being used Font triplex Height 3 may contain a decinal usually a number from 1 o 4 THE FOLLOWING ARE OCCASIONALLY SPECIFIED Justify fleft right or center idefault Angl elante line 90 to 490 dcfault ic 0 Rotate rotates type 0 to 360 default is 2 Move tspecifies beginning positicn from lower lef as an x y coordinate e g 10 20 Draw specifies lt he X Y coordinates for drawing a line The general form for drawing a line from the current position of the pointer to a point that is 50 x units to the right is 0 0 50 40 Figure 3 6 Entec a unique name tor the TITLE PACKAGE you are creating the name must begin with a letter and
11. 53 200 P 7 8 00000 9 a 10 15 20 30 35 40 45 SCE Might in Inches Figure 2 9 You have your OPTIONS set ta save the generated SAS code that produced the preceeding qraph in a file in your accout Do you still wish ta save this code yes or nol ENTER Y OR N y In what file ENTER FILENAME AND APP if the statements are to be appended to other statements already in the file NOTE DO NOT USE file name that are the same as names of SAS MACRCS that are used during the Current session sugitest VM READ Figure 3 Miscellaneous FSGRAPH Features Figure 3 1 Meeting ko bo D o po po Bo Figure 3 2 Edit SAS data set WORX ANNOT Screen Command SCREEN 2 EXTENDED ANNOTATION 1 1 HPOS amp VPOS are coordinates Ht is heigh in character units Justify L C or EPOS vPOS Font Color Ht J Ang Rot Angzangle of line 50 to 90 def 0 NOTE TEXT Rot Rotation of letters 0 to 362 12 4 none re m def 0 m Place Notes With Annotate and Overgrid Options NOTES Screen 1 of 2 TMORE Options into Peril ute ae ae CRM Figure 3 3 Edit SAS data set WORK ANNOT Screen 111121 SCREEN 4 SXTENDED ANNOTATION TO BE CRAWN ON SRAPHIC COORDINATES in character units Starting Ending Starting Ending Color HPOS VPOS H 0S VPOS HPSS VPOS HPOS VPCS 1 red 10 3 65
12. SECTIONS ARE OPTIONAL Gout D name By Var Axis Color Color Axis Labels Horizontal zxis spacif Vertical axis specific e Levels no bars cont variables on left side Group Variable on left sidel Subgroup Variable for coloring Discrete _ blank if answer is no type l if numeric values are to be treated as discrete rather than continuous MORE Options Info PF11 Ry Var2 Saa I NIU ee Figure 2 7 Edit SAS data set WORK HRAR Command SCREEN 3 HORIZONTAL BAR CHARTS THE FOLLOWING OPTIONS ARE NOT FREOHENTLY TREN SPF MAI OPTIONS leave blark if no enter 1 if yes r NAT PP 15 38 Nosymbols _ Nozeras G100 _ Missing _ Overgrid _ Ascend _ Descend Nostat _ Freq _ Cfreq 3 C Sum Mean _ Exterded Annotation _ Mincr number 2f minor tick marks on horizontal axis Reference Tine Only 1 permitled runs vertically upwards fiom horizontal axis specify value on horizontal axis Freq Variable normally when TYPR FREQ has heen specified each observation contributes a value of to the freguercy counts If a variable s specified here the value of that variable is contr buted tc the frequency count rather than Formats Labels agecNq in fears hi Height in Unches 190 Figure 2 8 A Demo for the 1984 SUGI Meeting FSGRAPH Horizontal Bar Chart WIDPOINT Ast age in Years FREQ HT MEAN 24 1 6 00000 32 1 66 00000 40 e 88 7 aa 5
13. Twenties 30 39 Thirties Other 1 2 3 4 5 40 high 6 7 8 oot hen Petmanent _ 1 if yes blank if no note that a special logon is required wher entering SAS prior to answering yes see next screen PP11 ame E Ga Figure 3 17 Edit SAS da set WORK ALTER Screen 1 Command Note This application uses 4 screens Obs 1 1 SCREEN 1 Exit 2elete SEE LAST Screen for information on DEFAULT settings that are either furnished by SAS or altered locally by this program for specific devices Commonly set options Device enter accepted abbrev for machine name Color Background not all devices support this feature No of Vertical Positions Nc of Horizontal Positions Vertica Sizetinches Horizontal Size Inches 7 Gout Data Set Type _ tbTankzindependenthdefaulth lzdependent 7NORE Options Info PF11 Figure 3 18 Edit SAS data set WOMK ALTEK screen 2 E Obs 1 Altering FIRST Title Line Font default is complex Altering AL Title Lines telor Idefauit is the first color of colors list BY Statement Optiors Color default is first color of coicrs list Font i efault is the hardware type Height Tdefault is 1 DEFAULT COLORS Color List iform is red bIue etcT Defauit Color Patterns Default Color Synbols MOKE Options infO PFli t E UR OE Figure 3 19 Welcome to the world of PULL SCREEN SAS PROCEDURES
14. ant to successful graphic creation These selec tions provide a A listing of current graphic options via PROC GOPTIONS selection 1 b A means of altering GOPTION settings selection 2 Figures 3 17 and 3 18 c Test pattcrns with PROC GTESTIT sclection 4 Figure 2 3 Main FSGRAPH Menu Selection 3 PROC GREPLAY The 82 3 release of SAS GRAPH provides for the creation of GOUT data sets with the device type of independent Provision is made in all procedures of FSGRAPH for the name of a GOUT data set Figure 2 6 Selection 1 provides a menu for entering this name and invokes PROC GREPLAY This is useful not only for efficient examination of previously generated graphs but also for replaying graphs generated at terminal screens on hard copy devices such as bed plotters Figure 2 2 FSSAS Primary Menu Selection 3 Graphics on Nongraphics Devices The design of this system NGGRAPH is similar to the design of FSGRAPH with several notable exceptions 1 Pro vision is made only for PROC CHART and PROC PLOT Figure 3 19 2 Prior to execution of a pro cedure PROC PRINTTO is invoked to direct the printed output of the procedure to an external file Figure 3 20 Following completion of the proce dure the file is automatically examined on the screen via PROC FSLIST This provides for exceptionally good appearing copy on the screen since PROC FSLIST honors the ASA carriage control characters Figure 3 21 The sequence of event
15. defined macros Figure 3 11 and 3 12 Most of the macros in Figure 3 12 are pattern and symbol packages created at FSGRAPH invoca tion Munt E TOER ETIE Ea nem mnt M 12 13 14 16 Figure 2 3 Main FSGRAPH Menu Selection 25 Print Hard Copy This selection provides several means for generation of graphs on various hard copy devices when SAS code stored in files needs to be re run This screen and the programs it invokes are high ly installation dependent Figure 3 13 Figure 2 3 Main FSGRAPH Menu Selection 26 Work Data Sct Utilitics As seen earlicr SAS data sets such as WORK HBAR are used to enter variable infor mation to generate graphs This selection Figure 3 14 provides screens for storage and retrieval of these data sets from session to session A sample screen for storage is shown in Figure 3 15 Figure 2 3 Main FSGRAPH Menu Selection 27 Create Custom Formats PROC FORMAT is an excel lent means of grouping data values into classifications reassigning values etc and is an excellent alternative to IF statements and assignments via assignment state ments in a SAS Data Step This selection provides for entry of values Figure 3 16 to create formats In addition six more pages of on linc documcntation arc available not shown Figure 2 3 Main FSGRAPH Menu Selections 1 2 and 4 Device Characteristics Device settings default colors VPOS HPOS HSIZE VSIZE etc are all very import
16. e graph requests when the user is willing to accept many of the defaults furnished by SAS As the request becomes morc complex and dcfaults arc no longer acceptable the pro gramming knowledge requirements increase immensely SAS GRAPH is designed as an exploratory data analysis tool i e for use in those situations where the user is asking What does my data tell me The data in question is usually already resident in the computer either in SAS data sets or in files which can quickly bc converted to SAS data scts SAS GRAPH is also used as a tool for producing graphics on data which is not already computer resident However use of SAS GRAPH under such conditions often entails more time effort and pro gramming knowledge than would be required by other graphic software packages With these thoughts in mind a system was planned to make SAS GRAPH an easier to use tool for decision support work CONSIDERATIONS A number of considerations went into the design of the system to establish a wish list of desired features l The system should alleviate the tedious task of writing SAS programming code thereby allowing the user to con centrate on the data and what questions might be asked of the data 2 To achieve widespread acceptance the system must oper ate in an interactive environment 3 SAS is an integrated software system data base manage ment report writing graphics etc The graphics system should take advantage
17. e terminal A SAS program analyzes the user input writing SAS state ments that specify the future course of direction to a temporary file which is then brought in for processing via the 2INCLUDE statement B The FSEDIT Approach The FSEDIT approach taken as an alternative to line by ine interrogation of the user for operations requiring multiple input is an approach in which a SAS data set is created containing the appropriate variables necessary for the graph creation This data set is initially created con taining no observations and is then edited via PROC FSEDIT following which it is processed via a SAS pro 186 gram that writes SAS statements to a temporary external file The external file is then brought in for processing via the INCLUDE statement This technique bears some similarity to a program distributed by SAS Institute on the CMS sample library SAMPBASE MACLIB FSDATA This technique is also referenced in a paper by Hardison and Muller 1984 The technique is presented in Figure 1 The sample pro gramming code greatly condensed for brevity addresses creation of a horizontal bar chart Create a SAS data set WORK HBAR containing variables that correspond to the variables necessary for proper construction of aseries of SAS statements for the procedure PROC GCHART This data set con tains no observations when constructed however the variables are of the correct type numeric or charac ter and length
18. ent testing etc A modular approach permits for small pieces of the overall system to be independently tested and also permits for multiple program entry points 10 Many users have shared limited access to graphics equip ment Therefore the system should make provision for primitive graphic creation on nongraphics terminals and printers for those SAS procedures which produce output for such devices The system should be upwardly com patible from nongraphics devices to graphics devices SYSTEM ARCHITECTURE To meet these requirements the system was designed entirely within the SAS programming language As mentioned earlier SAS FSP is a registered trademark of SAS Institute Inc Cary NC USA SAS GRAPH is a trademark of SAS Institute Inc 185 i T B p 3 F r Mueve command level languages CLIST and EXEC2 and ISPF Dia logue Manager Panels were discarded early The only excep tions to this were those operations necessary for file mainten ance and storage copying erasure file definition etc which are either more readily handled by or must be handled by operating level commands Several new features of SAS 79 6 SAS 82 3 were key to the decision to stay entirely in SAS l The INCLUDE statement which permits for easy inclu sion of files of SAS statements for processing The ability to nest INCLUDE statements within other files that were already INCLUDED was essential 2 The CMS
19. ered the current observation will be ignored rather than processed Thus if five graphs are heing created several can be set aside while others are being perfected 2 Figure 2 5 Title Footnote Note Symbol and Pattern Packages Numerous graphics require repeated uses of the same titles footnotes patterns etc Rather than entering this information repeatedly on every data entry screen provision is made to create packages of 187 10 these items with unique names The package names are entered on screens such as Figure 2 5 The packages are SAS macros created from the main FSGRAPH menu Figure 2 3 in options 5 9 see point 8 below The names under which they are stored must follow the SAS macro naming conventions Figure 2 5 Titles on Data Entry Screen In addition to the title package provision is made for three addi tional titles to be entered in the HBAR data set Figure 2 7 Overgrid Provision is made for an over laying grid OVERGRID to aid in placement of note copy by providing coordinates An entry envokes a SAS macro containing a set of note statements with absolute draw commands The effect of placing an entry here is shown in Figure 3 1 Figure 2 7 Extended Annotation Extended annota tion provides for placement of additional notes and underlines Placement of an entry here results in addi tional FSEDIT screens being generated to place notes Figure 3 2 and underlines Figure 3 3 in the plot
20. ete 00005 COMMENTER ASS SAM ata 423 3 AABRAE ER ARBAR ORARE HT tEEEE EERE ES EER ERR ERES ORES 00006 DATA NULL _ FCLE TEM 2 NOTITLE NOPRINT 00007 SET WORK HBAR 00008 LENI LENGTHIDSNAME 00009 LEN ENGTHIXV2R 00010 LENi LENCTH TYTE 00011 LEN ENGTH SUMVAR 00012 PUT PROC GCHART DATA DSNANE SVARYING 00013 PUT NHBAR XVAF SVARYINGB LEN2 TYPE 00014 IF SUMVAR NE THEN PUT SUMVAR SUMVAR SVARYINGS LEN4 00015 PUT 00016 RETURN 00017 RUN 00018 COMMENTetsteetesaexvuwk4H2HES ph ALEEYVTEEEEXXIARNEEEREARAARAAA 00019 End of ceneration of SAS Source Code in file TEMPZ 00020 guu2t 00022 00023 00024 INCLUDE TEMP2 RUN 00025 END OF PILE n TEMP2 for processing ARAARERRHARRARc Pa sal e Aha Seer NE Co Figure 1 6 First Generated File TEMP1 SAS Al F BO TRUNC 80 STZE LINF 0 COUMN 1 00000 A TOP OF FILE RIDE e Pees n 00001 DATA HBAR LENGTH dsname 17 xvar 8 type 8 sumvar 8 run 00002 PROC FSEDIT DATA HRA3 SCREEN lt DEMO FSHBSC OPT 1 RUN 00003 INCLUDE SUGIHB2 00004 END OF TILE OD GIC LS Figure 1 7 Second Generated File TEMP SAS Al F 82 TRUN 80 SI E 2 LINE U COLUMB 1 00000 TOP OF FILE 9 tee III I ee ee 00001 PROC GCHART DATA FSOEMO PEOPLE 00002 HBAR AGE TYPE MEAN SJMVAR HT 00003 END OF FILE aD CN Figure 2 FSGRAPH Sample Session Figure 2 1 2
21. f choices options Figures 2 5 through 2 7 Only a few fields are required the rest arc optional Note the extensive flexibility per mitted on these screens for providing on line documenta tion that is immediately at hand If further customization were required for specific applications a wide variety of information could be placed on these screens near the input fields including such things as SAS data set names variable narnes etc All of this would be accomplished by modifying the screen data set of PROC FSEDIT The user may add any number of observations to data set WORK HBAR with each observation defining a single horizontal bar chart Upon completion of data entry exit is accomplished via the Return key PF2 the code to produce graphics is generated processed and the graphics or error messages appear on the screen for viewing Fig ure 2 8 If the user had set up an option under selection 2 of the main FSGRAPH menu to save generated SAS code a prompt will follow for the file name in which the code is to be stored ligure 2 9 Appropriate file copying measures are taken following which the user is returned to the home panel for FSGRAPH B Other Comments Features Examination of the various menus and FSED T screens reveals a number of options and features that have been included in the FSGRAPH system 1 Figure 2 5 Exit Delete Field The first field of the first FSEDIT screen provides an Exit Delete function If ent
22. ist Names of currently defined Macros 3 List contents of a specific Macro that is currently defined ENTER NUMBER OF YOUR CHOICE xe Figure 3 12 VM READ C MACRO DIRECTORY PSHOME HLINE VLINE GRIDMAJ GRIDMIN JPLUS NPLUS ISTAR NSTAR SOLID EMPTY Cx CX2 Cx3 Cx4 ex5 cri CL2 cLa cla CLS CRl CR2 CR3 CR4 CRS MXl M32 MX3 mxa MX5 MRI MR2 MR3 URA MES ML ML2 ML3 ML4 ML5 GHOME TITLZA PATTERNA Enter C Lo Return OD Figure 3 13 VM READ o s The following choices are available to you for printing Vers 2 0 hardcopy of a SAS Graph at Eli Lilly and Company wien VM CMS you wish to cbtain hardcopy on a non CRT device 06 01 83 All of these options assume that you have ceveloped your graph on a CRT using PSGRAPH and have stored the resulting SAS statements in a file in your account as yo were prompted after each step An alternative method for generating hardcopy is to store tbe graphic output of a procedure in a GOUT Data Set and then using PROC GREPLAY FSGRAPH Sel ection 3 to recreate the graph on an alterrate device Enter your choice at the bottom of this screen You will be prompted for the file name that contains the SAS Statenents Appropriate modificalions of Lhal file will automatically be made and you will proceed as directed which is obviously very deviee dependent J Print on IBM3287 4 Color Printer 2 Print on an HP7221 Bed Plotter 4 Dicomed 35mm Slides not yet avail 4 Quit Return
23. ll be at a 90 deg angle MOR Options Infou PF11 ue unito G Figure 3 9 Edit SAS data set WORK PATTERN Screen 3 Zommand LLLI D SCREEN 3 PATTERN PACKAGES i Value Permitted for Shading Crosshatching etc cont d FOR PIE CHARTS PSOLID Solic Fill Pie Slices PEMPTY Empty Pie Slices Pntaaa n l to 5 density of shading or N Crosshatching or nocrosshatching aaa starting angle xx rl OLI gt Figure 3 10 Enter a unique name tor the PATTERN PACKAGE you are creating the name must being with a letter and may sontain up ta 7 mora letters or numbers PATTERNA VM READ i t n i id i Figure 3 11 MACRO Utility for PSGRAPH Vera 2 0 VM CMS 06 01 83 During the use of FSGRAPH various TITLE FOOTNOTE NOTE SYMBOL and PATTERN PACKAGES are developed While it ie traneparent to the user these arc actually stored as SAS MACROS This makes it very convenient for the same package to be used repeatedly during a terminal session To provide for permanent storage of these packages the user should save the SAS code that is being generated in files as he responds to prompts following the development of each package The following utilities arc available for your usc nore that no provision is made for storing macro statements this can only be done as the macro is being developed 1 Pull in Macros stored externally on a CMS File 2 L
24. may contain up to 7 more letters or numbers TITLEA VM READ RENT ron EE du ct Figure 3 7 Edit SAS data set WORK PATTERN Screen 1 Command Note This application uses 3 screens ALL OF THR FOLLOWTNG INFORMATION 1 amp 8 RFOTRRD Pattern No 1 Repeat 1__ number of times this patterr statement is Color red to be repeated befcre the next one is called Value tor Sheding Crosshatching etc mix as The values permitted on the third Line are Por roc GCHART Far Prac GCONTONMR GMAP GPSOT X1 X indicates s S indicates solid xz rosshatcning E E indicates empty x3 1 to 5 indicates Mxxxxx x4 increasing density 1X x5 2N Ll L indicates slash 3 L2 marks upper left 4 ta to lower right 5 CAONTTNUEN OM NAXT SCREEN AMORE Options Info PF11 Figure 3 8 Edit SSS data set WORK PATTERN Toammand 1 it 11 SCREEN 2 PATTERN PACKAGES Values for Shadirg Crosshatcaing Cont d For ROC GCHART cont d For PROC GCONTOUR CMAP amp GPLOT L4 vs i RL R indicates slash For the Mxxxxx specification the second R2 marks lower left column indicates density of filling lw R3 to upper right Light dark In the third column X in R4 diates crosshatching N indicates angled RS slashes A blank in the third cclumn spec s S indicates solid ifies perallel vertical lines The last E X indicates empty three columns specify start angle from 0 to 160 degrees If X was specied the crosshatching wi
25. nteractive SAS Figure 2 1 the user includes a file containing a program that creates a master menu Figure 2 2 From this menu a selection is made for the desired activity selection 4 graphics on graphics terminals In this case anotlier menu is generated Figure 2 3 The user selects option 13 to create a horizontal bar chart The user is next asked if this request is to edit a previously existing SAS data set WORK HBAR or is to create a new SAS data set Figure 2 4 The request will be creation if 1 the data set WORK HBAR does not already exist or 2 the user desires to destroy the presently existing values in the WORK HBAR data set with a new data set con taining 0 observations Following creation the data set is then edited Figures 2 5 through 2 7 The data sct crcation and the entrance to PROC FSEDIT are both transparent to the user since OPTIONS NONOTES NOSOURCE2 are in effect If the user had desired to edit an already existing WORK HBAR data set PROC FSEDIT would be entered From a programming standpoint all operations prior to the point of editing data set WORK HBAR have been conducted by painting the screens questions and menus with FILE TERM and PUT statements and inputting the single answer responses by INFILE INTERM and INPUT statements the user interrogation approach mentioned earlier A Data Entry Upon entrance to the editing of the WORK HBAR data set the user is faced with three screens o
26. s for the user 188 during the terminal session is nearly identical to that Observed on a graphics terminal CONCLUSION By combining SAS GRAPH witli SAS FSP FSGRAPH pro vides a very user friendly system for making graphics a deci sion support tool FSGRAPH is transportable to any SAS operating system and provides a means of making SAS easier to use for individuals with limited computer background For more sophisticated SAS programmers FSGRAPH permits con centration on the data being analyzed and the questions that might be asked of it Roger D Muller Elanco Products Company A Division of Eli Lilly and Company 740 South Alabama Street Indianapolis Indiana 46285 References Hardison C D and R D Muller 1984 Use of PROC FSEDIT to Generate SAS Code SUGI Proceedings 1984 Prague C N 1982 SAS GRAPH for the Non SAS User SUGI Proceedings 1982 Prague C N 1983 Increasing Productivity Batch and On Line Interfaces to SAS Using SPF Dialog Manager SUGI Proceedings 1983 Figure 1 The FSEDIT Approach for Generating SAS Code Figure 1 1 Terminal Invocation of System inc sugihbar VM READ Figure Terminal Data Entry Fdit SAS data set WORK HBAR Command 272 fsdemo people age mean SUNVAR ht Figure 1 3 Terminal Resultant Graphic MIOPOINT Att Age years FRE MT MEAN za 1 65 005000 32 1 55 050000 8 86 18657 5 59 20000
27. t t FSGRAPH A COMBINATION OF THE SAS FSP AND SAS GRAPH PRODUCTS FOR DEVELOPING GRAPHICS R D Muller Elanco Products Company Abstract A system has been developed to generate SAS code for all procedures in the SAS GRAPII product from data entered in SAS data sets on screens in PROC FSEDIT of the SAS FSP package Data entered on screens includes such items as data set names variable names axis colors labels etc The system permits for rapid creation of graphics during interactive SAS sessions with provisions made for editing and storing both the input SAS data sets and the resultant generated SAS code Provisions are also made for storing and replaying the graphic images using GOUT data scts and PROC GREPLAY The system is particularly useful for decision support applica tions where users with minimal programming knowledge desire to use SAS GRAPH as an exploratory data analysis tool on previously created SAS data sets n extenuation of the system permits for use of selected pro cedures on nongraphics devices such as nongraphics terminals and printers INTRODUCTION To effectively utilize SAS GRAPH users must be at least moderately experienced in the use of the SAS programming language and must have a fairly well estahlished understanding of the operating environment in which they are working A quick overview of the documentation furnished with SAS GRAPH indicates minimal programming knowledge is required for simpl
Download Pdf Manuals
Related Search
Related Contents
Integral 16GB Ag47 v2 USB2.0 Echo Software User Manual 取扱説明書 - 日本スティーベル Elgar ETS TerraSAS 1kW Installation and Service Manual Process Fluid Chiller Cables Direct RB-527 power cable téléchargez la fiche de données de sécurité Copyright © All rights reserved.
Failed to retrieve file