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 check dataset/file status in ca7

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Richa Jain

New User


Joined: 18 Mar 2008
Posts: 35
Location: Gurgaon

PostPosted: Thu Mar 20, 2008 11:48 am    Post subject: How to check dataset/file status in ca7
Reply with quote

I want to know the ca7 command which gives the job name which is holding a specified file.

Like we have LDSN,DSN=<datasetname>,LIST=ALL command which provides all the jobs which uses the dataset..

But for Eg: if a set of jobs are using the same file and one job gets abended due to file contention then how can i check that which job is using the file at that time.
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Mar 20, 2008 1:02 pm    Post subject:
Reply with quote

Hi,

This is not the way scedulers-software are meant to work. If a JOB is using some DSN other would go on 'hold'. And it's not a good use of 'shedulers', you must have dependencies...

BTW, even if You could know such a commnad you are searching for, how would that be used to avoid abend?
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Fri Mar 21, 2008 5:24 pm    Post subject: Reply to: How to check dataset/file status in ca7
Reply with quote

Hi,

I do not know about CA7, but you can check which job is holding a dataset by typing a 'WHOHAS' command besides the desired dataset.

[/code]
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: Fri Mar 21, 2008 9:39 pm    Post subject:
Reply with quote

Hello,

WHOHAS is site-specific. Many/most mainframes do not have this.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 21, 2008 10:48 pm    Post subject:
Reply with quote

Hi,

As suggested, many shops doesn't have WHOHAS. Even I've this in my shop but it's never been used in Production, seldom we use it for testing purpose. By the way, if some JOB is abended/went on 'hold' due to some data set then data set can be visible in JESMSGLG of that JOB.

I'm not a CA-7 programmer, but we use it (CA-11), so I know the problem in question is not usual with CA-7. I still suggest if two JOBs are using the same DSN at a given moment make use of predecessor/successor terminologies of CA-7. Talk to You your scheduling people once on this.
Back to top
View user's profile Send private message
Richa Jain

New User


Joined: 18 Mar 2008
Posts: 35
Location: Gurgaon

PostPosted: Sat Mar 22, 2008 12:25 pm    Post subject:
Reply with quote

Thanks all.

I have WHOHAS cmd in mainframes.

Anuj,

"how would that be used to avoid abend?"
Anyways it will not give the permanant resolution to the abend.

Abend job is a time triggered job. When the processing of a file is completed by the first job, i restart the abended job from the abend step.
To know when i have to restart the job, I have to looked into all the jobs that uses that dataset. So I just want to monitor that single job which is holding the dataset so that I can restart the job when the holding job release it.

I think I have to set dependencies between the jobs..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sun Mar 23, 2008 3:38 am    Post subject:
Reply with quote

Hi,

Richa Jain wrote:
I have WHOHAS cmd in mainframes.
But that should not be used in production. They were, perhaps, created to help in testing/debugging & not be used in production. I don't see it's use in production in my shop.

Quote:
"how would that be used to avoid abend?"
When You want to "Quote" someone's sentences from some previous post, use 'Quote' tags after selecting the text to be quoted, as I did above. 'Quote' tag is just below the 'subject' line when you post a reply.

Quote:
Anyways it will not give the permanant resolution to the abend.
yes it cann't, that's why I suspected your way of investigation for the problem..

Quote:
Abend job is a time triggered job.
Instead of time trigger you can use predecessor/successor dependencies, as posted earlier.

Quote:
When the processing of a file is completed by the first job, i restart the abended job from the abend step.
sigh, do you do it in production..?

Quote:
I think I have to set dependencies between the jobs..
Yup, per your statements so far about the problem, it seems this can be a solution. Good Luck.. icon_smile.gif
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 205
Location: Bangalore

PostPosted: Sun Mar 23, 2008 4:40 pm    Post subject: Reply to: How to check dataset/file status in ca7
Reply with quote

You can use ISRDDN (TSO Command) also to see which job is currently holding dataset.


-Ajay
Back to top
View user's profile Send private message
gm_laks

New User


Joined: 10 Jul 2007
Posts: 7
Location: banagalore

PostPosted: Tue Mar 25, 2008 11:41 pm    Post subject:
Reply with quote

Quote:

I think I have to set dependencies between the jobs..


If your jobs are not dependent on each other and only using the same file you can put a negative dependency between the jobs which would make sure that the two jobs do not run at the same time.

- Sita
Back to top
View user's profile Send private message
seetham

New User


Joined: 26 Mar 2008
Posts: 2
Location: india

PostPosted: Fri Mar 28, 2008 9:42 am    Post subject:
Reply with quote

yes you can contact with your schedular he will keep the negative dependency in the ca7 ,so that both won't run together
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm


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