Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us