View previous topic :: View next topic
|
Author |
Message |
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
Hi,
Anyone can tell me how to populate the 'current system time' in the Ims dc application program.. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Do you want to display time in IMS DC online screen? or is it you want to capture time in IMS DC Cobol program?
In MFS you can code TIME to display TIME on screen.
In COBOL IMS DC program you can use any standard COBOL TIME function,
Also in COBOL IMS DC you can get the TIME from IO PCB Mask. |
|
Back to top |
|
|
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
Hi !!
it is really a quick answer.. Thanks for your early reply But could you explain me how to use the TIME from the (IO-PCB-MASK in the online MFS) |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
When program gets executed IO PCB is automatically populated with actual values.
If you want to us IO PCB Time, then you dont have to do anything other than using the field. |
|
Back to top |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
Back to top |
|
|
Libu Thomas
New User
Joined: 01 Jan 2007 Posts: 6 Location: India
|
|
|
|
Use 'TIME' to get the system time.
eg:
CURTIME DFLD POS=(1,60),LTH=8,ATTR=(ALPHA,PROT,HI)
MFLD (CURTIME,TIME)
DONT USE LTH parameter in MFLD |
|
Back to top |
|
|
|