View previous topic :: View next topic
|
Author |
Message |
muhammad
New User
Joined: 25 Oct 2007 Posts: 19 Location: hyderabad
|
|
|
|
hey can anyone tell me how do i retrieve SYSTEM DATE in my COBOL program...? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Muhammad,
Use COBOL mnemonics. |
|
Back to top |
|
|
muhammad
New User
Joined: 25 Oct 2007 Posts: 19 Location: hyderabad
|
|
|
|
is there any command such as CURRENT DATE or something which can help me move date to my variable?? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Search manuals, you will find. |
|
Back to top |
|
|
ahalyah
New User
Joined: 13 Dec 2007 Posts: 25 Location: india
|
|
|
|
Yes. Use as FUNCTION CURRENT DATE. |
|
Back to top |
|
|
muhammad
New User
Joined: 25 Oct 2007 Posts: 19 Location: hyderabad
|
|
|
|
hey thanks,
its working well now... |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
The us of Function Current-Date returns a 21 byte date, you need to
look at the manual for the layout of this 21 bytes. |
|
Back to top |
|
|
pamireddy
New User
Joined: 01 Feb 2006 Posts: 1 Location: India
|
|
|
|
WE CAN USE THE FOLLOWING COMMAND TO RETRIVE THE SYSTME DATE.
ACCEPT SYS-DATE FROM DATE.
NOTE: IN THE WORKING-STORAGE SECTION DEFINE
01 SYS-DATE PIC 9(6). |
|
Back to top |
|
|
|