User's Guide

PROCHECK

Check the syntax of procedure PDF files

Function:

This procedure checks the syntax of other procedures. It is especially designed to check the validation of parameters of large procedures before they are run as batch jobs.

Parameters:

PROCNAME
Procedure name. The name of the procedure to be tested. PROCHECK generates a temporary proc whose file name is the same as the one being checked with a "t" appended to the end. This temporary file is deleted at the end of the program.

PRINT(TERM)
Output destination. The destination of the output.


  = TERM:      Terminal.  Output is sent to the user's 
               terminal.
  = LP:        Line printer.  Output is sent to the 
               printer defined by $PRINTER.
  = Filename:  User-supplied filename.  Output is sent
               to the user-supplied file with the 
               extension ".prt".

Example:

  1. LAS> procheck procname=batchjob print=term

    The procedure BATCHJOB is tested for proper syntax and valid parameter entries. Errors that are detected in the procedure generate messages that are displayed on the user's terminal.

Description/Algorithm:

PROCHECK accepts the procedure name from the user and enters that file name into a testing utility. The commands in the procedure are tested for the correct number of arguments, valid entries to parameters, and proper TAE syntax. Errors are reported to the user.


   Limitations:

     PROCHECK does not correctly check the syntax of a procedure 
     which has internal procedures declared in the body.

     PROCHECK does not check the syntax of a procedure which is 
     not owned by the user unless the user has write privilege 
     in the directory in which the procedure is located.

     If GETPAR is used in the procedure being checked, it is 
     executed in the process of checking the syntax.  Procedures
     using GETPAR should only be run interactively.

     PROCHECK does not work on procedures that have their own
     input parameters or subcommands

Nonfatal Error Messages:

    None.

Fatal Error Messages:

    None.

User Notes:

    None.