CHGDSPOBJO CHANGE DSPOBJD OUTFILE DATES TAAOBME |
The Change DSPOBJD Outfile Dates command changes all date formats in
the outfile created by DSPOBJD that are in an MMDDYY format to either
DDMMYY or YYMMDD. The DSPOBJD outfile has several date fields that
use the MMDDYY format regardless of the job date format. CHGDSPOBJO
makes it easier to work with the dates if you want a format other
than MMDDYY.
The ODSRCD field (last source change date) is always in YYMMDD order
and is not changed.
The file format must be QLIDOBJD which is the format used by DSPOBJD.
You must have *CHANGE authority to the outfile created by DSPOBJD.
A typical series of commands would be:
DSPOBJD OBJ(xxx/*ALL) OBJTYPE(*ALL)
OUTPUT(*OUTFILE) OUTFILE(QTEMP/yyy)
CHGDSPOBJO FILE(QEMP/yyy) TOFMT(YYMMDD)
The DSPOBJD command outputs one record for each object type in the
library. The CHGDSPOBJO command causes all date fields in the file
to be changed from MMDDYY format to YYMMDD. If some date fields are
blank (such as an object has never been saved), the data remains
unchanged.
The date fields that are changed are:
ODDDAT - Display date
ODCDAT - Create date
ODSDAT - Save date
ODRDAT - Restore date
ODSRCD - Source change date
ODLDAT - Last changed date
ODUDAT - Last used date
ODTDAT - Reset date of usage information
ODADAT - Save while active date
ODJRDT - Journal date
The ODSRCD field (last source change date) is always in YYMMDD order
and is not changed.
CHGDSPOBJO escape messages you can monitor for
----------------------------------------------
None. Escape messages from based on functions will be re-sent.
CHGDSPOBJO Command parameters *CMD
-----------------------------
DSPOBJDOUT The qualified name of the file that was output from
the DSPOBJD command. It must have a format name of
QLIDOBJD which is the name used by DSPOBJD. The
library value defaults to *LIBL. A specific library
or *CURLIB may also be used.
TOFMT The requested format of the date field to change to.
All date fields output by DSPOBJD are in MMDDYY
format. The TOFMT value must be DDMMYY, or YYMMDD.
MBR The member to be changed. *FIRST is the default.
A specific member name or *LAST may be specified.
Restrictions
------------
The file format must be QLIDOBJD which is the format used by DSPOBJD.
You must have *CHANGE authority to the outfile created by DSPOBJD.
Prerequisites
-------------
The following TAA Tools must be on your system:
CHKDBFMBR Check data base file member
EDTVAR Edit variable
RSNLSTMSG Resend last message
RTVFLDA Retrieve field attributes
RTVFLDARR Retrieve field array
SNDCOMPMSG Send completion message
SNDESCINF Send escape information
SNDESCMSG Send escape message
SNDSTSMSG Send status message
Implementation
--------------
None, the tool is ready to use.
Objects used by the tool
------------------------
Object Type Attribute Src member Src file
------ ---- --------- ---------- ----------
CHGDSPOBJO *CMD TAAOBME QATTCMD
TAAOBMEC *PGM CLP TAAOBMEC QATTCL
TAAOBMER *PGM RPG TAAOBMER QATTRPG
|
Added to TAA Productivity tools April 15, 2011