Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Ims dc - Populate current time

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Mon May 28, 2007 10:32 pm    Post subject: Ims dc - Populate current time
Reply with quote

Hi,

Anyone can tell me how to populate the 'current system time' in the Ims dc application program.. icon_cry.gif
Back to top
View user's profile Send private message

Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Mon May 28, 2007 11:04 pm    Post subject:
Reply with quote

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
View user's profile Send private message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Tue May 29, 2007 12:09 am    Post subject:
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue May 29, 2007 1:08 am    Post subject:
Reply with quote

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
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Tue May 29, 2007 2:13 pm    Post subject:
Reply with quote

Example
Back to top
View user's profile Send private message
Libu Thomas

New User


Joined: 01 Jan 2007
Posts: 6
Location: India

PostPosted: Wed May 30, 2007 1:45 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us