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
 
to retain PS or VSAM dataset until the end of the job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Fri Feb 13, 2009 12:51 am    Post subject: to retain PS or VSAM dataset until the end of the job
Reply with quote

Hi,

I need a help. We use Control-m as the scheduler. Control-m expects all the dataset used by the job to be allocated to the job before the job starts its execution. Once all the dataset are allocated then the job is said to execute. After the completion of each step the datasets allocated to the particular steps are released (in detail, JOB1 has three steps. the //STEP1 uses datasets AAA.dataset1 and AAA.dataset2 and //STEP2 uses datasets AAA.dataset3 and AAA.dataset4. //STEP3 uses dataset AAA.dataset1 and AAA.dataset2 that is used by //STEP1. Control-m expects the four dataset to be allocated to the job. Once the //STEP1 is completed datasets AAA.dataset1 and AAA.dataset2 are set free. //STEP2 is completed datasets AAA.dataset3 and AAA.dataset4 are set free. For the execution of //STEP3 it expects dataset AAA.dataset1 and AAA.dataset2 to be re-allocated. After allocation of the datasets the //STEP3 starts its execution. Once execution is completed the datasets are set free)

Next, the JOB2 uses the datasets used by the JOB1 (AAA.dataset1 and AAA.dataset2)
Then JOB2 starts its execution only after the datasets used by the JOB1 are set free.

Problem:

For the execution of JOB1 all the four datasets
AAA.dataset1 and AAA.dataset2
AAA.dataset3 and AAA.dataset4 are allocated. Now JOB1 starts its execution. By this time JOB2 has been kicked. JOB2 will be waiting for the dataset AAA.dataset1 and AAA.dataset2. After the completion of //STEP1 of JOB1 the datasets AAA.dataset1 and AAA.dataset2 are set freed and JOB2 starts its execution (let us say JOB2 is quite long running).

Now //STEP3 of JOB1 will be waiting for the datasets AAA.dataset1 and AAA.dataset2 because it is hold by JOB2 and results in contention.


What I need?

The datasets AAA.dataset1 and AAA.dataset2 allocated to the JOB1 should be retained to JOB1 until it gets completed. The dataset may be TAPE, PS or VSAM. We need not worry about TAPE dataset because we use RETAIN in VOLUME parameter.

My question is how to retain PS or VSAM dataset until the end of the job if is used in subsequent steps.

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

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri Feb 13, 2009 4:01 am    Post subject:
Reply with quote

Hi,

don't let job2 commence until job1 has completed, either by using an IN-CONDITION or use of a Control Resource which I'm assuming you are using when you say
Quote:
Control-m expects all the dataset used by the job to be allocated to the job before the job starts its execution


By the way Control-M does not allocate files to jobs, it acquires resources that have been defined in Control-M.

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

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Fri Feb 13, 2009 2:29 pm    Post subject:
Reply with quote

Quote:
My question is how to retain PS or VSAM dataset until the end of the job if is used in subsequent steps.


Hi Gerry,

Thanking you for your reply. Kindly give some answer for, how to retain PS or VSAM dataset until the end of the job if is used in subsequent steps.

Thanks
Prasannaa S
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 13, 2009 2:33 pm    Post subject:
Reply with quote

Look at the DISP= parameter of the DD statement in THIS manual.
Back to top
View user's profile Send private message
sprasannapathy

New User


Joined: 04 Jan 2008
Posts: 42
Location: india

PostPosted: Sat Feb 14, 2009 2:45 pm    Post subject: Reply to: to retain PS or VSAM dataset until the end of the
Reply with quote

Thanking you
Prasannaa
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

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