View previous topic :: View next topic
|
Author |
Message |
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
we can use below lines to get date
EXEC CICS ASKTIME
ABSTIME (WS-ABSTIME)
END-EXEC.
EXEC CICS FORMATTIME
ABSTIME(WS-ABSTIME)
MMDDYY(WS-DATE)
TIME(WS-TIME)
END-EXEC.
but i need date of Format: CCYYMMDD
so i need century...
can anyone tell me how to get century. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
This is easily answered.
Review Keyword "YYYYMMDD" (a/k/a "CCYYMMDD") for the "FORMATTIME" API and all will be forgiven....
You can fool with this via "CECI".
Make sure "WS-DATE" is PIC X(10) if you use the DATESEP Keyword.
Bill |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
RTFM.
CICS Application Programming Reference manual, link at the top of the page, section 1.87 on FORMATTIME |
|
Back to top |
|
|
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
you mean to say
EXEC CICS FORMATTIME
ABSTIME(WS-ABSTIME)
YYYYMMDD(WS-DATE)
TIME(WS-TIME)
END-EXEC
use it in the command and take first two YY of "YYYY" ,,,and that will give century |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
You should move over to A Forum for Mainframe Beginners and Students since your questions demonstrate you need to be there. This forum is for professionals -- ones who can read manuals and don't need confirmation when told an answer. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
nothing that You could not have found by Yourself
looking at the cics manuals here
or lazier googling for EXEC CICS FORMATTIME
which would have taken You here |
|
Back to top |
|
|
Arun bv
New User
Joined: 29 Dec 2010 Posts: 41 Location: Mumbai
|
|
|
|
thanks to all replies and comments.... |
|
Back to top |
|
|
|