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

Changing a number in a JCL every time it runs.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Tue Apr 22, 2008 8:42 am
Reply with quote

Hi,

1) I have a Job which is scheduled to run every day.I have a sort step in which i have used the include condn with a hard coded value.Now i want this hard coded value to get incremented everytime the Job runs.


say like: include condn=(1,2,ch,'65')

now i want this 65 to change to 66 when it runs the next time.

2) I have another step in which I need to get the current month and need to supply values accordingly,

say if the current month is April, if Apr then I need to pass values value1 and value2 to the include condn like,

include condn=(1,2,ch,value1),or,
(1,2,ch,value2).


IS this possible to do it thru JCL or I shud go for a program...


Pls suggest.

Thanks.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Tue Apr 22, 2008 9:03 am
Reply with quote

Samuel,

1) What will happen once your incremented value reaches 99?

2) What is your condition check, for every month, are you passing a different value??

Thanks,
Arun
Back to top
View user's profile Send private message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Tue Apr 22, 2008 9:12 am
Reply with quote

Thanks for your quick response.

1) I shud be handling that too...actually speaking the number should start from 1 to 52 ( which is nthng but the fiscal weeks)

2) this is my condition:
for every month starting from

Jan - 01 and 05 (- 5 wks)
Feb - 06 and 19 (- 4 wks)
Mar - 10 and 13 (- 4 wks).
....
Dec - 49 and 52
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 22, 2008 10:37 am
Reply with quote

Hello,

I believe you will be ahead to incorporate this requirement into a program that will be able to handle multiple sets of logic and create the control statements as needed for each run.

If your organization uses (or someday implements) some type of calendar, it should be straight forward to use the calendar in your code.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Apr 22, 2008 11:55 am
Reply with quote

Hi,
most scheduling tools have JCL and AutoEdit facilities which would satisfy this type of request.

I have used this with Control-M.


Gerry
Back to top
View user's profile Send private message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Wed Apr 23, 2008 3:22 pm
Reply with quote

Hi gcicchet,

Do you have any such sample JCL which does the required action ?

Thanks.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Apr 24, 2008 8:20 am
Reply with quote

Hi Samuel,
do you have Control-M ?


Gerry
Back to top
View user's profile Send private message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Thu Apr 24, 2008 8:25 am
Reply with quote

Could you tell me a little bit more about Control - M..I use CA-7 as the scheduler and Control-D for vewing our jobs spool area.

Thanks.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Apr 24, 2008 8:46 am
Reply with quote

Hi,
Control-M is a BMC software scheduling tool much like CA7 in its functionalities.

Just google for Control-M scheduling.

Unfortunately the AutoEdit facilities used in Control-M are not the same as CA7.

I'm sure CA7 has similar functions to fulfil your requirement.


Gerry
Back to top
View user's profile Send private message
samuel_Inba

New User


Joined: 03 Jan 2008
Posts: 53
Location: Chennai

PostPosted: Thu Apr 24, 2008 8:49 am
Reply with quote

Thank you. icon_smile.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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top