Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to run a JCL as if it is running on future.
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Feb 23, 2006 12:54 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts Syntax for running batch history repo... polymathtarun CA Products 1 Tue Jun 21, 2016 1:51 pm
No new posts Jobs from iseries not running in sequ... lyd All Other Mainframe Topics 4 Mon Jan 18, 2016 1:17 am
No new posts Running queries against OLTP Database A_programmers DB2 3 Tue Jul 14, 2015 4:51 pm
No new posts Getting S0C4 while running COBOL Data... kalakuntlavenkat COBOL Programming 4 Thu Feb 26, 2015 8:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us