View previous topic :: View next topic
|
Author |
Message |
mkk157
Active User
Joined: 17 May 2006 Posts: 310
|
|
|
|
Hi all,
I don't know where to post this particular query. In a program I am writing some data into the file. By mistake I opened the file in other screen and at the same time I submitted the program, But the program is waiting in the input queue and it is not getting submitting.
I am thinking that the reason behind this is the resource is locked and by myself in the another screen and the program i submitted is waiting for the required resources.
If there is any other technical reason please give me the clarification.
I am requesting mmwife, mcmillan, gupatae, priya and other experts to look into the problem and clarify my doubt.
thanks in advance. |
|
Back to top |
|
|
mkk157
Active User
Joined: 17 May 2006 Posts: 310
|
|
|
|
Is it a deadlock situation? |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi,
Quote: |
Is it a deadlock situation? |
Hope ... Try submitting the job again and let us know the result ???? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Try logging off tso entirely and back on, that will release any long-standing enqueues. |
|
Back to top |
|
|
mkk157
Active User
Joined: 17 May 2006 Posts: 310
|
|
|
|
Once After closing the file the job will be submitting immediately and giving the desired output.
But My doubt is In this particular situation whether my assumption of locking the resources and waiting for the resources is right or wrong?
If there is any other reason please let me know. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Multiple processes may not "lock" the same resource at the same time - in your case the file.
If one process (online) "has" the file and another (batch) "wants" the file, the second (batch) will be placed in a wait state. When the first process that "has" the file ends, the file becomes available and the second process continues.
If this is not what you are looking for, please clarify. |
|
Back to top |
|
|
srebba Warnings : 1 New User
Joined: 26 Apr 2007 Posts: 37 Location: USA
|
|
|
|
Nothing,
ur right, ur job is waiting for the resources. Thats it
Nothing more than that..
Close the files and resubmit.
Still if u face problem then pls Logout from the session and relogin and submit.
Thank you
Sree |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
mkk157 wrote: |
I submitted the program,
|
I think you wanted to say "I submitted the JCL".
If not then I would like to say that during compilation & link/edting of programs.. DSN no where comes into the picture.
If my assumption is right, that you've submited a JCL & one of file was in use, JOB should go on HOLD. As soon as you close the file/resource your JOB should execute.
Further, I would like to know why one answer says to log-off from TSO & re-login for this condition? I didn't get this. |
|
Back to top |
|
|
|