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
 

 

Problem while Accessing a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Problem while Accessing a file
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    Post subject: Hi
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: 680
Location: NJ

PostPosted: Mon May 07, 2007 9:04 pm    Post subject: File
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: 3158
Location: Tucson AZ

PostPosted: Mon May 07, 2007 9:28 pm    Post subject:
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    Post subject: Hi
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

Site Director


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

PostPosted: Tue May 08, 2007 12:30 am    Post subject:
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    Post subject: Re: Problem while Accessing a file
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

Senior Member


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

PostPosted: Thu Jun 07, 2007 9:16 pm    Post subject: Re: Problem while Accessing a file
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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