Sunday, November 25, 2007

Useful TAATOOL Commands:

Some CL commands that can be used in routine work. TAATOOL commands

Prerequisites

The following TAA Tools must be on your system

CHKOBJ2:

The Check Object 2 command is similar to the system command CHKOBJ except that CHKOBJ2 sends an escape message if the object 'is found'. The intent of the command is to simplify coding when it is considered an error if the object exists. CHKOBJ2 sends message ID TAA9891 as an escape message if the object exists. If the object does not exist, no message is sent.

Parameters required:

Object (OBJ)

The qualified object name. The library value defaults to *LIBL. *CURLIB may also be specified.

Object type (OBJTYPE)

The object type to be checked. Any value that is valid on CHKOBJ may be used.

CHKOBJ2 escape messages you can monitor for:

TAA9891 Object exists.


Example: CHKOBJ2 OBJ(Name) OBJTYPE(*PGM).


WRKF2:

The Work File 2 command provides a subfile with options to display the attributes, relations, format, and data of a file. In addition, there are options to change,edit, clear, and delete a file

Parameters required:

FILE : The qualified name of the file to be worked with. A generic name or *ALL may be entered. The library value defaults to *LIBL. *CURLIB, *ALL, or *ALLUSR may also be entered


Restrictions

Only a single member file may be deleted.

Example:

WRKF2 FILE(Filename)

No comments: