View previous topic :: View next topic |
Author |
Message |
sharada Beginner
Joined: 24 Aug 2005 Posts: 32 Topics: 14 Location: Hyderabad
|
Posted: Tue Nov 07, 2006 6:59 am Post subject: File STatus 41 |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Nov 07, 2006 7:47 am Post subject: |
|
|
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 |
|
|
sharada Beginner
Joined: 24 Aug 2005 Posts: 32 Topics: 14 Location: Hyderabad
|
Posted: Tue Nov 07, 2006 8:25 am Post subject: |
|
|
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 |
|
|
|
|