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

Problem while Accessing a file


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon May 07, 2007 8:31 pm
Reply with quote

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
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon May 07, 2007 8:32 pm
Reply with quote

Is it a deadlock situation?
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Mon May 07, 2007 9:04 pm
Reply with quote

Hi,

Quote:
Is it a deadlock situation?


Hope ... Try submitting the job again and let us know the result ????
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon May 07, 2007 9:28 pm
Reply with quote

Try logging off tso entirely and back on, that will release any long-standing enqueues.
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon May 07, 2007 9:33 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue May 08, 2007 12:30 am
Reply with quote

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
View user's profile Send private message
srebba
Warnings : 1

New User


Joined: 26 Apr 2007
Posts: 37
Location: USA

PostPosted: Fri Jun 01, 2007 11:23 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Thu Jun 07, 2007 9:16 pm
Reply with quote

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
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
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
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top