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

How can I select certain file depending on the scheduler?


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

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Sat Jul 23, 2022 1:14 am
Reply with quote

Hello, how are you?

I have two job chains that are executed 2 times during the day. This chains are equal, but I need that when scheduler 1 is executed certain job use certain file, but when scheduler 2 executes another file is have to be used in that same job mentioned.

Is there a clue or something that you can orient me to search ? any idea?


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

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Sat Jul 23, 2022 2:37 am
Reply with quote

Use the symbolics in DSN , scheduling option will give you what to override per instance.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1245
Location: Bamberg, Germany

PostPosted: Sat Jul 23, 2022 10:57 am
Reply with quote

Basically as Rohit has pointed out, the Scheduler must have some variables that you can use. JCL symbolics in the DSN could be an option too, but preferable would be an IFTHEN like construct using means of the Scheduler.
Back to top
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Mon Jul 25, 2022 7:23 pm
Reply with quote

Joerg.Findeisen wrote:
Basically as Rohit has pointed out, the Scheduler must have some variables that you can use. JCL symbolics in the DSN could be an option too, but preferable would be an IFTHEN like construct using means of the Scheduler.


When you say ''Scheduler must have some variables that you can use'' I dont have acces to control m, can you give me a clue what should I do in this case?
Back to top
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Mon Jul 25, 2022 7:41 pm
Reply with quote

Rohit Umarjikar wrote:
Use the symbolics in DSN , scheduling option will give you what to override per instance.


is there some guide or reference in symbolics? for z/OS?
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2018
Location: USA

PostPosted: Mon Jul 25, 2022 7:59 pm
Reply with quote

Ali_gezer wrote:
Rohit Umarjikar wrote:
Use the symbolics in DSN , scheduling option will give you what to override per instance.


is there some guide or reference in symbolics? for z/OS?

Are you banned from Google??!!

Using system symbols and JCL symbols
Back to top
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Mon Jul 25, 2022 8:01 pm
Reply with quote

sergeyken wrote:
Ali_gezer wrote:
Rohit Umarjikar wrote:
Use the symbolics in DSN , scheduling option will give you what to override per instance.


is there some guide or reference in symbolics? for z/OS?

Are you banned from Google??!!

Using system symbols and JCL symbols

Thanks, my mistake.
Back to top
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Tue Jul 26, 2022 12:25 am
Reply with quote

sergeyken wrote:
Ali_gezer wrote:
Rohit Umarjikar wrote:
Use the symbolics in DSN , scheduling option will give you what to override per instance.


is there some guide or reference in symbolics? for z/OS?

Are you banned from Google??!!

Using system symbols and JCL symbols


what section do you recomend me to see having in mind that I need to make one scheduler use certain file in a jcl and the other scheduler use another file but the same jcl
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2018
Location: USA

PostPosted: Tue Jul 26, 2022 1:56 am
Reply with quote

Ali_gezer wrote:
sergeyken wrote:
Ali_gezer wrote:
Rohit Umarjikar wrote:
Use the symbolics in DSN , scheduling option will give you what to override per instance.


is there some guide or reference in symbolics? for z/OS?

Are you banned from Google??!!

Using system symbols and JCL symbols


what section do you recomend me to see having in mind that I need to make one scheduler use certain file in a jcl and the other scheduler use another file but the same jcl

I recommend to use Google.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Tue Jul 26, 2022 12:21 pm
Reply with quote

Quote:
When you say ''Scheduler must have some variables that you can use'' I dont have acces to control m, can you give me a clue what should I do in this case?


I recommend you get access to the scheduler....

Garry.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jul 26, 2022 1:34 pm
Reply with quote

IMO there is a language barrier here
scheduler VS schedule VS scheduled

my guess is that the same job chain is scheduled twice
by the same and only scheduler
so system symbols might not be of help

the only hope is that the scheduler can pass to the job some information about
the run, first/second
Back to top
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Tue Jul 26, 2022 10:22 pm
Reply with quote

Ali_gezer wrote:
Rohit Umarjikar wrote:
Use the symbolics in DSN , scheduling option will give you what to override per instance.


is there some guide or reference in symbolics? for z/OS?


I dont have acces to control m, is there anything else I can do?
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1245
Location: Bamberg, Germany

PostPosted: Tue Jul 26, 2022 10:44 pm
Reply with quote

Please describe your environment a bit more. Is the Job submitted on two separate LPARs?
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top