IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to run a JCL as if it is running on future.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ayyappan

New User


Joined: 05 Jul 2005
Posts: 31
Location: India

PostPosted: Thu Feb 23, 2006 11:32 am
Reply with quote

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
View user's profile Send private message
sonu_winks

New User


Joined: 23 Nov 2005
Posts: 23

PostPosted: Thu Feb 23, 2006 11:57 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Feb 23, 2006 12:54 pm
Reply with quote

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
View user's profile Send private message
sonu_winks

New User


Joined: 23 Nov 2005
Posts: 23

PostPosted: Thu Feb 23, 2006 12:58 pm
Reply with quote

oops..i said it as a jcl command..sorry .
Back to top
View user's profile Send private message
Ayyappan

New User


Joined: 05 Jul 2005
Posts: 31
Location: India

PostPosted: Thu Feb 23, 2006 5:23 pm
Reply with quote

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
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Thu Feb 23, 2006 8:09 pm
Reply with quote

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
View user's profile Send private message
Ayyappan

New User


Joined: 05 Jul 2005
Posts: 31
Location: India

PostPosted: Fri Feb 24, 2006 10:57 am
Reply with quote

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
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Fri Feb 24, 2006 7:27 pm
Reply with quote

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
View user's profile Send private message
jayant_tibhe

New User


Joined: 25 Feb 2006
Posts: 27
Location: Pune

PostPosted: Sat Feb 25, 2006 6:52 am
Reply with quote

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 icon_wink.gif !!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Cobol-db2 : SQL query is running for ... DB2 4
Search our Forums:

Back to Top