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
 
How to get Current Date, Time into COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to get Current Date, Time into COBOL
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Apr 27, 2005 9:04 pm    Post subject: Re: How to get Current Date, Time, etc.
Reply with quote

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

http://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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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