--- AS/400, UNIX, PC only ---
CVDATE NOW TO DATECB * Update POS DATE table with current date and time.
|
At this time, the CVDATE operation, used for date and time manipulation, is in a primitive form
available only in SELCOPY for AS/400, UNIX and PC. It supports only 1 type of Source Date field (NOW),
and 1 type of Destination Date field (DATECB).
NOW refers to the current date and time, and DATECB is the entire POS DATE Control Block.
Therefore, use of CVDATE in its current form will refresh every field in the POS DATE table based on the
exact date and time at which the operation is executed.
SELCOPY/OS2 2.07 at CBL - Bridgend UK (Internal Only) 2001/10/26 12:33 PAGE 1
o ----------------------------------------------------- ---------------- -------- o
o ** z:\cd\sm200\SMXCVDAT.CTL *** L=001 --- 2001/10/26 12:33:53 (P24) o
opt worklen 222 * No input file so work area required.
o o
1. print from date-28, date+64 ty=d * 1st Dump PRINT of the entire POS DATE table.
o 2. sleep 82 secs * Pause processing for 82 seconds. o
3. cvdate now to datecb * Update the POS DATE table with the date and time now.
4. print from date-28, date+64 ty=d * 2nd Dump PRINT of the entire POS DATE table.
o o
o INPUT SEL SEL o
RECNO TOT ID.
----- --- ---
o 0 1 1 80 o
0000 2001299F 01233580 31302F32 362F3031 2032362F 31302F30 31203230 30312F31 * .)..#5€10/26/01 26/10/01 2001/1*
0020 302F3236 2031323A 33333A35 382E3020 46726964 61792020 20203236 7468204F *0/26 12:33:58.0 Friday 26th O*
o 0040 63746F62 65722020 20323030 312F3239 3920576B 3A343320 00009145 00 *ctober 2001/299 Wk:43 ...E. * o
0 1 4 80
0000 2001299F 01235200 31302F32 362F3031 2032362F 31302F30 31203230 30312F31 * .)..#R.10/26/01 26/10/01 2001/1*
o 0020 302F3236 2031323A 33353A32 302E3020 46726964 61792020 20203236 7468204F *0/26 12:35:20.0 Friday 26th O* o
0040 63746F62 65722020 20323030 312F3239 3920576B 3A343320 00009145 00 *ctober 2001/299 Wk:43 ...E. *
o SUMMARY.. o
SEL-ID SELTOT FILE BLKSIZE LRECL FSIZE CI DSN
------ ------ ---- ------- ----- ----- -- ---
o 1----4 1 o
o ** SELCOPY IS LICENSED BY COMPUTE (BRIDGEND) LTD +44 (1656) 652222 & 656466 ** o
** EXPIRY DATE -- 12 JUN 2001 **
|
|
Example: CVDATE Conversion (Date Control Block)
| | COMPUTE(Bridgend)Ltd UK Tel:+44(1656) 65 2222 Fx:2227 | |
| | | |
| 2003/07/31 | Param - CVDATE | SELCOPY Rel 2.0x | |