Date and Time in ISPF.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Priyank Sharma
New Member
Posts: 5
Joined: Thu Apr 17, 2014 2:07 pm

Date and Time in ISPF.

Post by Priyank Sharma »

Hi ,

Is there any TSO command for displaying the current date,time of a day, on command line?
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Date and Time in ISPF.

Post by zprogrammer »

Try

Code: Select all

TSO TIME
zprogrammer
Priyank Sharma
New Member
Posts: 5
Joined: Thu Apr 17, 2014 2:07 pm

Re: Date and Time in ISPF.

Post by Priyank Sharma »

Thanks Pandora.

What's your real name? :D
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Date and Time in ISPF.

Post by zprogrammer »

Sorry , I would like to have my personal details as a "secret"

You could Address me as Pandora
zprogrammer
Priyank Sharma
New Member
Posts: 5
Joined: Thu Apr 17, 2014 2:07 pm

Re: Date and Time in ISPF.

Post by Priyank Sharma »

That's fine Pandora-Box.
zprogrammer
Global Moderator
Global Moderator
Posts: 588
Joined: Wed Nov 20, 2013 11:53 am
Location: Mars

Re: Date and Time in ISPF.

Post by zprogrammer »

Hope the secret didn't disappoint you :mrgreen:
zprogrammer
thiele3105
New Member
Posts: 7
Joined: Mon Jan 26, 2015 7:49 pm

Re: Date and Time in ISPF.

Post by thiele3105 »

Hi,

as i know there is no Command, but easily to realize with REXX.

Code: Select all

/*REXX */
SAY DATE('E') TIME()
RETURN
Name it TSOTIME and then you can execute it by TSO, if the REXX is loacted on a concatinatet Clist Library (SYSPROC or SYSEXEC DD)

best regards

Christoph Thiele
Last edited by Anuj Dhawan on Tue Jan 27, 2015 8:56 pm, edited 1 time in total.
Reason: Added BBCode Tags.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Date and Time in ISPF.

Post by Robert Sample »

thiele3105:
as i know there is no Command,
You need to find out where the manuals are at your site and learn how to read them. From the TSO/E Commands manual in the TSO bookshelf:
1.95 TIME command Use the TIME command to obtain the following information:
Cumulative CPU time (from LOGON)
Cumulative session time (from LOGON)
Total service units used, which includes:
CPU service units - A measure of task execution time.
I/O service units - A measure of SMF data set activity.
Storage service units - A measure of the page frame usage.

Local time of day Refers to the time of execution for this command. It is displayed as follows:

local time of day in hours(HH),
minutes(MM), and seconds(SS),
(am or pm is also displayed)



Today's date.
Since there is a TIME command under TSO, typing TSO TIME on the command line of ISPF will return the requested information. Your REXX code is completely redundant and unnecessary.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”