IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get Current Date, Time into COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gvt460

New User


Joined: 04 Mar 2005
Posts: 23

PostPosted: Wed Apr 27, 2005 4:55 pm
Reply with quote

how can we get the current date, current time, and currenttimestamp from the system into a COBOL program?
Back to top
View user's profile Send private message
ashokkit

New User


Joined: 22 Apr 2005
Posts: 4

PostPosted: Wed Apr 27, 2005 6:53 pm
Reply with quote

i dont know about timestamp but for date and time . just give like accept variable name from date or time what ever you want.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 27, 2005 9:04 pm
Reply with quote

Here is a link to the reference guide for the ACCEPT command:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGYL1101/3.1.2?SHELF=&DT=19930312093006&CASE=
Back to top
View user's profile Send private message
greek

New User


Joined: 28 Apr 2005
Posts: 3

PostPosted: Thu Apr 28, 2005 6:26 pm
Reply with quote

hi,refer this


* Get Current System Time as HHMMSS

ACCEPT Current-Time FROM TIME.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top