View previous topic :: View next topic |
Author |
Message |
valeti_sashi Beginner
Joined: 11 May 2005 Posts: 12 Topics: 7 Location: Chennai, India
|
Posted: Wed Dec 21, 2005 5:24 am Post subject: System Date and Time |
|
|
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 |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
|
Back to top |
|
|
Frank Yaeger Sort Forum Moderator
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
|
Back to top |
|
|
Ravi Beginner
Joined: 27 Jun 2005 Posts: 88 Topics: 2
|
Posted: Fri Dec 30, 2005 11:09 am Post subject: |
|
|
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 |
|
|
German Castillo Beginner
Joined: 23 Dec 2005 Posts: 83 Topics: 2 Location: Caracas, Venezuela
|
Posted: Fri Dec 30, 2005 2:19 pm Post subject: |
|
|
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 |
|
|
|
|