View previous topic :: View next topic
|
Author |
Message |
Ayyappan
New User
Joined: 05 Jul 2005 Posts: 31 Location: India
|
|
|
|
Hi,
I need to run a JCL executing a cobol program in which the "ACCEPT DATE" command is used to get the current date. I want to run this job as if it is running on some future date. i.e. the accept date command should return the future date. I heard that there is some DD statement if we add it to the JCL, then the job will be executed as if it is running on some other future date. If there is any thing like that, Could anybody tell me about that DD statement? Otherwise, is there any other way to achieve it?
Thanks.
Ayyappan |
|
Back to top |
|
|
sonu_winks
New User
Joined: 23 Nov 2005 Posts: 23
|
|
|
|
ACCEPT DATE will return the current running date...if u want to submit a job on a particular date u can use DEADLINE command in JCL..plz find ou the syntax for the same..hope i got u 'r query :-) |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
DEADLINE is not a part of the JCL language. It is a parameter to the //*MAIN statement of JES3, and it is well documented in the fine manual.
O. |
|
Back to top |
|
|
sonu_winks
New User
Joined: 23 Nov 2005 Posts: 23
|
|
|
|
oops..i said it as a jcl command..sorry . |
|
Back to top |
|
|
Ayyappan
New User
Joined: 05 Jul 2005 Posts: 31 Location: India
|
|
|
|
Hi Sonu,
I need to run the job today with next month date. So, DEADLINE will not work in my case. As an alternative, I have hard coded the date values in my program instead of getting the date using ACCEPT DATE command. and it is working fine. I wanted to know is there any way in JCL to do the same without changing the program.
Thanks.
Ayyappan |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi Ayyappan,
This is possible using IBM's liscenses utility product i.e. hour glass utility.
If you mention the future date in your JCL job card in place of PROGRAMMER NAME.
i.e. instead of 'AUTHOR' if you give '//HGXXXXXX'
In this case the XXXXXX is the format selected while installation of the utility.
I have used this. But Its possible only when you have the liscensed utility installed on your system.
-Thanks
David P. |
|
Back to top |
|
|
Ayyappan
New User
Joined: 05 Jul 2005 Posts: 31 Location: India
|
|
|
|
Hi David,
I think we have HG2000 in our machine. But how to get the format in which we have give the future date?
In addition, do we need to include any loadlibs in our job if we use HG?
Should the future date be given in jobcard only or it may vary depending on the installation?
Thanks.
Ayyappan |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi Ayyappan,
Apart from using HG in the job card you do not have to include any loadlibs. Neither are you suppose to make changes in any of the programs.
What it does is ...whenever you have any instruction/statement to fetch the date of the system it gives the date you have mentioned in the job card.
For the format of the date I would suggest you to refer the manual of your installation.
Hope this helps.
-Tx
David P. |
|
Back to top |
|
|
jayant_tibhe
New User
Joined: 25 Feb 2006 Posts: 27 Location: Pune
|
|
|
|
Hi Ayyappan,
Some applications need to be run at the specified future time.
Though we don't have the exact code for that,In my system we are using the ESP tool where we can schedule the Job as per the Date and Time requirement in future.
The interpretation is there are effective tools for such Cases.
Cheers !! |
|
Back to top |
|
|
|