The ITEM statement creates an entry in a menu bar or in a pull-down menu, and the DIALOG= option specifies which DIALOG statement describes the dialog box. To use the DIALOG statement, specify an ITEM statement with the DIALOG= option in the ITEM statement. The size and placement of the dialog box are determined by your windowing environment. You cannot control the placement of the dialog box. Note: To specify a literal (at sign), % (percent sign), or & (ampersand) in the command-string, use a double character: (at signs), %% (percent signs), or & (ampersands). Numbers preceded by an ampersand (&) correspond to CHECKBOX statements following the DIALOG statement. Note: Keep in mind that the numbers correspond to RADIOBOX statements, not to RBUTTON statements.Īre optional CHECKBOX statement numbers that can add information to the command before it is submitted. Numbers preceded by a percent sign (%) correspond to RADIOBOX statements following the DIALOG statement. Numbers preceded by an at sign correspond to TEXT statements that use the LEN= option to define input fields.Īre optional RADIOBOX statement numbers that can add information to the command before it is submitted. The numeric portion of the field number corresponds to the relative position of TEXT, RADIOBOX, and CHECKBOX statements, not to any actual number in these nĪre optional TEXT statement numbers that can add information to the command before it is submitted. You can embed the field numbers, for example %1, or &1, in the command string and mix different types of field numbers within a command string. Is the same name specified for the DIALOG= option in a previous ITEM statement. Note: If you are using PROC PMENU to submit any command that is valid only in the PROGRAM EDITOR window (such as the INCLUDE command), then you must have the windowing environment running, and you must return control to the PROGRAM EDITOR window. The limit for command-string field-number-specification is 200 characters. Typically, the command-line limit is approximately 80 characters. The limit of the command-string that results after the substitutions are made is the command-line limit for your operating environment. Is the command or partial command that is executed when the item is selected. See: PMENU Procedure in the documentation for your operating environment. See Chapter 2, Fundamental Concepts for Using Base SAS Procedures, on page 15 for a list. Reminder: You can also use appropriate global statements with this procedure. 50 or greater for pollutant A.Restriction: You must use at least one MENU statement followed by at least one ITEM statement. To see how the macro works, again consider the following example, in which you want to know if any of the lakes in the southwest tested for a value of. The operator that the user chooses becomes the value of the macro parameter OPERATOR. The value that the user enters for the search becomes the value of the macro parameter VALUE. The comma is part of the value that is passed to the WBUILD macro and serves to delimit the two parameters, PREFIX and NUMVAR. One of the values for region, either NE, NW, SE, or SW, becomes the value of the macro parameter REGION.Įither pol_a,2 or pol_b,4 become the values of the PREFIX and NUMVAR macro parameters. The WBUILD macro uses the four pieces of information from the dialog box to generate a WHERE command: Two lakes, New Dam and Border, meet the criteria. 50 as the value, and choose Greater Than or Equal To as the comparison criterion. Using the custom menu item, you would select Southwest, Pollutant A, enter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |