CVTOBJDAT CONVERT OBJECT DATE TAADAUX |
The Convert Object Description Date command is intended for
converting the MMDDYY format used in the date fields of the DSPOBJD
outfile. The date is returned in the CYYMMDD format. The CPP may be
called directly.
A typical series of commands would be:
DCLF QTEMP/yyy
DCL &TOCYMD *CHAR LEN(7)
DSPOBJD OBJ(xxx/*ALL) OUTFILE(QTEMP/yyy)
.
RCVF
.
CVTOBJDAT FROMDAT(&ODCDAT) FROMCEN(&ODCCEN)
TOCYMD(&TOCYMD)
CVTOBJDAT escape messages you can monitor for
---------------------------------------------
None. Escape messages from based on functions will be re-sent.
Calling the CPP from a HLL program
----------------------------------
The CPP may be called directly such as the following RPG code:
I* Qualified program name for CVTOBJDAT
I 'TAATOOL/TAADAUXC ' C ZZCOBD
.
C CALL ZZCOBD
C PARM ODCDAT 6
C PARM ODCCEN 1
C PARM CYMD 7
CVTOBJDAT Command parameters *CMD
----------------------------
FROMDATE The From date field in the format of MMDDYY. This
would typically be a DSPOBJD outfile date field such
as ODCDAT.
FROMCEN The From century field. This would typically be a
DSPOBJD outfile date field such as ODCCEN.
TOCYMD The return data in CYYMMDD format. This must be
specified as *CHAR LEN(7).
Restrictions
------------
Because CVTOBJDAT returns a value, the command may only be used in a
CL program.
Prerequisites
-------------
The following TAA Tools must be on your system:
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
------ ---- --------- ---------- ----------
CVTOBJDAT *CMD TAADAUX QATTCMD
TAADAUXC *PGM CLP TAADAUXC QATTCL
|
Added to TAA Productivity tools April 15, 2012