Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Changing a number in a JCL every time it runs.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Changing a number in a JCL every time it runs.
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: 2285
Location: @my desk

PostPosted: Tue Apr 22, 2008 9:03 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Apr 22, 2008 10:37 am    Post subject:
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: 1703
Location: Australia

PostPosted: Tue Apr 22, 2008 11:55 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Apr 24, 2008 8:20 am    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Apr 24, 2008 8:46 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 5 Fri Sep 22, 2017 6:00 pm
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts Profile changed to NUMBER ON STD (fro... Martylin TSO/ISPF 1 Thu Aug 03, 2017 9:14 am
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us