Home page  
Help >
DDL Command LIST
Version 7.11
LIST

The LIST command displays the content of any Procedure or Text Report definition, and the symbol table of any graphical definition (Menu, Screen, or Graphical Report).

Syntax:
LIST/options [deftype] defname

Notation standards Options Answers

Options:
F -Include a cross reference with each definition listed
L -Include line numbers in the listing
P -Pagination. Start a new page with each definition
R -Do not display the REM ("remarks") lines
X -Suppress the command response
Y -Do not alter the command answer cells

Answers:
Ctl.Ans1 -Number of definitions listed
Ctl.Ans2 -Zero
Ctl.Ans3 -Zero

Notes:
If you don't specify a deftype, LIST goes through all deftypes and lists all definitions with the same name as the name you specified.

The string wildcard character * is supported by LIST. For example, if you want to see all procedure definitions whose name starts with the letter C, type:
LIST P C*

To see all procedure definitions:

LIST P *

To see a specific definition:

LIST P definition-name

Suppose you want to print the entire procedure catalog where each definition starts a new page. To do this you would use the PON trick to capture the output in a file:

PAGESPEC LENGTH=60 TOP=3
PON PROCS
LIST/PLF P *
POFF

The P option on the LIST command is what causes each definition to start a new page, we just threw in the L and F options for drill, they are not required for this example.

Since the file named PROCS is going to be sent to a printer after it is created, we use the PAGESPEC command to format the page layout for correct printing. The PAGESPEC command shown here is what we had to use to get each definition to start at the same place at the top of each page. Depending on your printer settings, the PAGESPEC you would have to use could be different.

Once you have done the POFF the file named PROCS exists in your folder. So now do:
FILE/O OLD PROCS

this opens the file named PROCS into a window on your desktop. The O option says that it is an ASCII text file and not a graphical file. Now to send this file to the printer, you can do any one of the following:

-Click the printer icon in your tool bar
-Pull down the File Menu and select Print...
-Press Ctrl + P

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.