MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

System Date and Time

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
valeti_sashi
Beginner


Joined: 11 May 2005
Posts: 12
Topics: 7
Location: Chennai, India

PostPosted: Wed Dec 21, 2005 5:24 am    Post subject: System Date and Time Reply with quote

hi,

is there any way we can get system date and time from the JCL. i mean without usig any cobol programs like that, i want direct JCL command

thanks in advance,
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Dec 21, 2005 5:33 am    Post subject: Reply with quote

valeti_sashi,

JCL is not a programming language. It does not have the capability to do what you ask for. You have to use some utilities like SORT / FILEAID ....if you don't want to code a high level language program for this.

Check this link
http://www.mvsforums.com/helpboards/viewtopic.php?p=25791#25791

For various Date formats supported by SORT, check this link
http://www.mvsforums.com/helpboards/viewtopic.php?p=23334#23334

Cheers,

Phantom
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Dec 21, 2005 6:14 am    Post subject: Reply with quote

Also, check this link: http://mvsforums.com/helpboards/viewtopic.php?t=2101&highlight=date
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Wed Dec 21, 2005 12:01 pm    Post subject: Reply with quote

See the "How can I put timestamps in my output records?" Ask Professor Sort item at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/professor_sort/
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort


Last edited by Frank Yaeger on Fri Aug 25, 2006 6:08 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ravi
Beginner


Joined: 27 Jun 2005
Posts: 88
Topics: 2

PostPosted: Fri Dec 30, 2005 11:09 am    Post subject: Reply with quote

ravijaya, Can you explain how?? Would like to use CA7 for getting the date part. I would like to have the dataset in this format. userid.Dyymmdd.Thhmmss or want to have date & time appended to it in which ever format. But there should be date & time somewhere in the dataset name

Code:
//STEP010 EXEC PGM=IEFBR14
//MYFILE  DD DSN=&SYSUID..Dyymmmdd.Thhmmss,
//     DISP=(,CATLG,DELETE),UNIT=SYSDA,
//     SPACE=(CYL,(1,1),RLSE)
Back to top
View user's profile Send private message
German Castillo
Beginner


Joined: 23 Dec 2005
Posts: 83
Topics: 2
Location: Caracas, Venezuela

PostPosted: Fri Dec 30, 2005 2:19 pm    Post subject: Reply with quote

If you have a Scheduller, it may set a JCl variable for your use, else you would have to write a small Programm script in your favorite language, Rexx seems to be easiest, eitehr setting a JCL var, writing a dataset or returning a RC.
_________________
Best wishes,

German Castillo
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group