CHKFMT CHECK FORMAT TAAFILI |
The Check Format command checks for a format and/or level ID in a
file. File types that support formats may be specified. A specific
format may be named or the special value *FIRST. Different escape
messages are sent if the format does not exist or the level ID does
not match. No completion message is sent if the command completes
normally.
A typical command would be:
CHKFMT FILE(ABC) FORMAT(RECORD1)
The ABC file would be checked to see if the ABC file has the RECORD1
format name.
Another typical command would be to check that the first format has a
specific level ID.
CHKFMT FILE(ABC) FORMAT(*FIRST)
LVLID(220A0753D9222)
CHKFMT escape messages you can monitor for
------------------------------------------
TAA9893 The format name was not found
TAA9894 The level ID does not match
Escape messages from based on functions will be re-sent.
CHKFMT Command parameters *CMD
-------------------------
FILE The qualified name of the file to be checked. Any
type of file may be checked that contains a format.
The library value defaults to *LIBL. A specific
library or *CURLIB may also be used.
FORMAT The name of the format to be checked for.
The special value *FIRST may be used (such as for a
physical file) when a LVLID is specified. If
FORMAT(*FIRST) is used, LVLID(*ANY) may not be
specified.
LVLID The level ID to be checked for. The default is *ANY
meaning any level ID is valid.
A specific level ID may be specified which must
match the ID for the named format. Level IDs must
be 13 characters.
Restrictions
------------
None.
Prerequisites
-------------
The following TAA Tools must be on your system:
CHKOBJ3 Check object 3
CVTFMT Convert format
RSNLSTMSG Resend last message
SNDESCINF Send escape information
SNDESCMSG Send escape message
Implementation
--------------
None, the tool is ready to use.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
CHKFMT *CMD TAAFILI QATTCMD
TAAFILIC *PGM CLP TAAFILIC QATTCL
|
Added to TAA Productivity tools January 15, 2011