Using CANDE or MARC

Note: PMIX and PUNIT are not accepted MARC commands.

You can run the utilities from a CANDE or MARC session by using the same RUN syntax. In addition, you can also run the program as a CANDE utility by using the following syntax:

U *SYSTEM/PDIR <PDIR request>

CANDE Examples

Example 1

This example reports all of a user's files sorted in descending order based on number of sectors:

U *SYSTEM/PDIR = SORT - SECTORS

Example 2

This example shows all the attributes of the files in the SOURCE directory:

U *SYSTEM/PDIR SOURCE/= SHOW ALL

Example 3

This example lists all files with a FILEKIND of NEWPSYMBOL that have more than 20 records:

u *SYSTEM/PDIR = SELECT FILEKIND = NEWPSYMBOL AND RECORDS > 20

Using Interactive Mode

Output

When you run the utility in an interactive mode from CANDE or MARC, the output is presented one page at a time. The attributes of the page are derived from the WIDTH and SCREENSIZE attributes of the remote file. In the case of a system console, the output is assumed to be a standard ODT.

Traversing the List of Files

A prompt is presented on the top of the screen in interactive mode that consists of the following choices:

  • A plus sign (+)

  • A minus sign (–)

  • Quit

If you enter a plus sign (+), the next page is presented. If you enter a minus sign(–), the previous page is presented. If you enter q or quit, the program terminates.

If the list of files is being traversed from end to beginning, the prompt changes to present a minus sign as a first choice instead of a plus sign. At the ODT these choices are preceded by the group separator character, which is required for any ODT input that is intended for a SPO file.

Initiating a New Search

You can enter a new utility command at any time (for example, PDIR <pdir request>), which causes the current list of files to be discarded and a new search initiated.