Displays information about cataloged DataBasic programs.
PRINT-CATALOG {fileSpecifier} itemList {(options}
fileSpecifier The file containing the cataloged programs (see General Conventions). If omitted, itemList is assumed to refer to programs cataloged from the local account.
itemList A space-separated
list containing the item-ids of the cataloged programs. These can be the
If fileSpecifier has been included, an asterisk (*) can be used to specify all the items in the specified file.
I Prompts for the account from which the programs were cataloged. Programs cataloged from the account specified will be listed instead of those from the local account.
P Sends output to the printer.
PRINT-CATALOG displays the following information:
Program The account, file name, data section name and program name.
Compiled on The compilation data and time.
Source The file name (including the data section, if appropriate) and item name of the source program.
Last updated The date on which the source item was last updated.
If you specify a program that has not been cataloged, an error message is normally displayed. However, if you specify a file name and the program executable cannot be found in that file, but there is an MD or POINTER-FILE item with the specified name, details of that program will be displayed.
Note: You can display similar information for a program that has not been cataloged by using the dictionary SYS.BASLIB (SYSFILES account) to list the program. See Viewing Program Headers for details.
The following syntax can also be used:
PRINT-CATALOG program account
where program is the name of a single cataloged program with an executable in the global POINTER-FILE, and account is an account name.
:PRINT-CATALOG BP PGM1
The following information is printed about the cataloged program PGM1 in file BP:
Program : TAB BP,BP $PGM1 Compiled on : 26 Apr 95 at 17:29 Source : TAB-BP PGM1 Last updated : 26 Apr 95