I don't think that type of capability is available within a paragraph. In the past, I've just had a little proc that runs to create a VOC entry with the time / date stamp and then use the TRANS function in paragraph to read out the fields, i.e.

TIMEDATE
0001: PQN
0002: S1 <--- move primary buffer pointer to slot 1
0003: U01B0 <--- call user exit to retrieve current time in milliseconds
0004: T P <--- use 'T' for time, save output into 'P'rimary buffer
0005: X Error reading time <--- exit on error
0006: S2 <--- move primary buffer pointer to slot 2
0007: U01B0 <--- call user exit to retrieve current date in days
0008: D P <--- use 'D' for date, save output into 'P'rimary buffer
0009: X Error reading date <--- exit on error
0010: F-OPEN 1 VOC <--- open VOC file
0011: XUnable to open VOC file <--- exit if error opening VOC file
0012: F-READ 1 "CURR.STAMP" <--- Read record
0013: MV &1.1 "X - Current date/time" <--- if doesn't exist, load field 1
0014: MV &1.2 %1 <--- jam the time value into field 2
0015: MV &1.3 %2 <--- jam the date value into field 3
0016: F-WRITE 1 <--- write out record, exit proc


Then in your paragraph:

001 PA
002 TIMEDATE                                    <--- call proc
003 * <<F(VOC,CURR.STAMP,2),"TIME","P">>      <--- read in field 2
004 * <<F(VOC,CURR.STAMP,3),"DATE","P">>      <--- read in field 3
005 DISPLAY TIME
006 DISPLAY <<F(VOC,CURR.STAMP,2),"TIME","P">>   <--- display
007 DISPLAY DATE
008 DISPLAY <<F(VOC,CURR.STAMP,3),"DATE","P">>   <--- display

You could also write a BASIC program to set the time/date, but that has higher overhead (unless you consider maintenance of a PROC higher overhead!!) Good luch and hope this helps.

At 04:00 AM 02/23/2004, you wrote:


Hi,
How can I capture the system date/time in a variable through paragraph
For e.g. if i need-
To create a a record in como file with id include date and time of run
Like:  RUN.13203.7145.COMO


Regards, Amit

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

-- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to