DISPLAY PROCEDURE command: Procedure names
- Any user
- Displays procedure names
DISPLAY [PROCEDURE] [(display-option [,display-option]...)] LIST [LIKE pattern]
|display-option|| is one of the following:
|pattern||Any of the pattern matching options described in detail in Pattern matching. For example, the following command displays the text of all procedures with names that begin with the string
DISPLAY PROC LIKE WEL*
The following command displays a list of all procedures with names that end with the string
DISPLAY LIST LIKE *TEST
The LIKE option is compatible with all valid types of pattern matching used in Like patterns in the Find statement.
- All combinations of the display options are allowed. Parentheses are required around display options. Display options can be separated by commas or by one or more blanks.
- If COMPACT is specified with
DISPLAY PROCEDURE LIST, Model 204 lists the procedure names, separated by commas, across the output line. COMPACT overrides the HEADER and VERBOSE options.
Only procedure names for which you have the user class to display are listed. Procedure classes can be displayed with the procedure names. A procedure class is a number associated with the procedure and has a value from 1 to 255.
This example displays the name, date, time, and length of all procedures:
DISPLAY LIST PROCEDURE NAME DATE TIME LENGTH USER ID PCL ACCT.REPORT 03/04/89 12:22:56 66 AC239 EXPENSE.AND.BUDGET.ANALYSIS.DISTRIBUTION.REPORT 05/29/88 17:08:41 987 AC239 MAIN.MENU 07/12/88 01:15:05 34 AC239 SAVINGS.EXTRACT 04/02/88 08:44:10 7764 AC239
The following example lists the names of procedures and suppresses the display of the date, time, user ID, and length columns. The procedure class column would still be displayed:
DISPLAY (BRIEF) LIST ACCT.REPORT EXPENSE.AND.BUDGET.ANALYSIS.DISTRIBUTION.REPORT MAIN.MENU SAVINGS.EXTRACT
- This form of the DISPLAY PROCEDURE command displays the names of a user's procedures. The output of the DISPLAY PROCEDURE command is sorted by procedure name whenever LIST is specified.
Model 204 lists the names of all procedures to which you have display or use access privileges. Procedure names are listed in the format specified by the display options.
- The DISPLAY PROCEDURE LIST command can be used to display information about procedures in a currently open file or group (assuming that the group has a PROCFILE).
The options VERBOSE, BRIEF, HEADER, and NOHEADER take effect when LIST is specified. The options enable you to choose the amount and form of the information to be displayed.
The display format is as follows:
Information Appears in column... Procedure name 1 through 29.
If the procedure name exceeds 29 characters, the name continues in column 30 through the value of the OUTCCC parameter minus 1. The procedure name then continues on the next output line, if necessary. The date, time, and length appear on the first output line where column 30 is available.
Date of the last update 31 through 38. Time of the last update 40 through 47. Length of the procedure in bytes 49 through 54. ID of the last user to update 56 through 65. Security class 67 through 69. Name of the file to which the procedure belongs (if in multiple-procedure-file group context) 71 through 78.
If the ALIAS option is specified and a procedure has an associated alias or aliases, the aliases appear on the output lines that follow the line displaying the date, time, and length information for the procedure. Each alias begins a new output line. The display of an alias begins in column 5.
If the procedure has a procedure security class, and you are allowed to display the procedure, then the procedure security class appears in columns 67 through 69.
The format is the default display format for both full screen and line-at-a-time terminals. If the OUTCCC parameter is set to a value less than 70, the display lines wrap to fit in the available display area.
- The date, time, user ID, and length information for each procedure is stored in the procedure dictionary of the file that contains the procedure. Model 204 initially stores this information in the file the first time the procedure is defined in the file. Model 204 updates the procedure information each time the procedure is updated.