Listing the Contents of an Existing Guard File

You can list the contents of an existing guard file by using MARC, CANDE, or WFL. You might choose to do this to

  • Confirm what is there.

  • Examine the contents before you edit the original source file.

  • See what access rights are defined.

Using MARC to List a Guard File

You can use the MARC Retranslate & List a Guard File screen to list the contents of your guard file and print the listing at the default printer. To access the screen, transmit GO GPRINT from the action line of any MARC screen.

Type the title of your guard file in the Guard File TITLE to retranslate field and transmit. For example, if the title of your guard file is BODYGUARD ON DISK, you type

BODYGUARD ON DISK 

The system either displays the output at your terminal or sends it to a printer.

If the system cannot find the guardfile title you specified, it responds with

NO FILE BODYGUARD ON DISK (PK) 

Using CANDE to List a Guard File

You can use CANDE to list the contents of your guard file at your terminal, a specific printer, or the default printer.

Sending the Listing to Your Terminal

The following format of the CANDE RUN command causes the utility to list your guard file contents at your terminal:

RUN $SYSTEM/GUARDFILE; VALUE=1; FILE GUARD=<guard file title> 

The guard file title is the title of the guard file for which you want a listing.

Sending the Listing to a Specific Printer

If you want the contents of your guard file to print on a specific printer, use the following RUN command:

RUN $SYSTEM/GUARDFILE; VALUE=1;
FILE LINE(DESTINATION= "<printer name>"),
GUARD=<guard file title> 

Your guard file listing is printed on the specified printer.

Sending the Listing to the Default Printer

If you want the contents of your guard file to print out on the default printer, use the following form of the RUN command:

RUN $SYSTEM/GUARDFILE; VALUE=1; 
 STATION=0; FILE GUARD=<guard file title> 

Using WFL to List a Guard File

You can use WFL to run the GUARDFILE utility and generate a listing of an existing guard file. The following WFL job (named SEEGUARD) examines the guard file SENTRY and directs the output to a printer file:

BEGIN JOB SEEGUARD;
RUN SYSTEM/GUARDFILE;
 VALUE = 1;
 FILE GUARD = SENTRY;
END JOB