| View previous topic :: View next topic |
| Author |
Message |
John Corbin Beginner
Joined: 23 Jan 2004 Posts: 38 Topics: 21
|
Posted: Wed Jan 28, 2004 8:24 am Post subject: Getting current date using REXX or TSO functions |
|
|
How can I get the current system date using either REXX or a TSO function.... ?
I am on a MVS mainframe running OS390 |
|
| Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 702 Topics: 64 Location: USA
|
Posted: Wed Jan 28, 2004 8:46 am Post subject: |
|
|
| What do you want to do, what is the required format. I use "TSO TIME" if I forgot the date. |
|
| Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Jan 28, 2004 8:52 am Post subject: |
|
|
I'm not sure if I understand the question correctly, but you can get the current system date in REXX by using the DATE() function. A few examples are:
Say Date() = 28 Jan 2004
Say Date(U) = 01/28/04
Say Date(S) = 20040128
Say Date(J) = 04028
Say Date(D) = 28
The current system date is stored in a few ISPF global variables, which you can view in ISPF Option 7.3:
zdate = 04/01/28
zdatestd = 2004/01/28
zjdate = 04.028
zj4date = 2004.028
The TSO command TIME returns the following information:
TIME-08:51:34 AM. CPU-00:00:00 SERVICE-751 SESSION-00:00:00 JANUARY 28,2004 |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12399 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
John Corbin Beginner
Joined: 23 Jan 2004 Posts: 38 Topics: 21
|
Posted: Wed Jan 28, 2004 10:39 am Post subject: |
|
|
Thanks much for the help... The REXX date function fits the bill.
thanks again |
|
| Back to top |
|
 |
|
|
|