MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File STatus 41

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sharada
Beginner


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Tue Nov 07, 2006 6:59 am    Post subject: File STatus 41 Reply with quote

Hi All,

I am trying to open a flat file in COBOL program, though I am opening it for the first time I am getting 41 in file status (trying to open a file which is alredy opened). Anybody know what can be the probable cause for this??

Thanks,
Sharada.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Nov 07, 2006 7:47 am    Post subject: Reply with quote

sharada,

Check and see if you have any OPEN statements prior to the current OPEN statement. Also make sure that your pgm isn't looping. Your pgm might have completed execuetion and once again started from beginning.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sharada
Beginner


Joined: 24 Aug 2005
Posts: 32
Topics: 14
Location: Hyderabad

PostPosted: Tue Nov 07, 2006 8:25 am    Post subject: Reply with quote

Hi Kolusu,

What you said is absolutely correct. The program was looping. Thanks for the insight.

Thanks,
Sharada.
_________________
Regards,
Sharada.

Always perform your duty efficiently and without any selfish attachment to the results,
because by doing work without attachment one attains Supreme.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group