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 

batch cobol problem

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


Joined: 19 Nov 2004
Posts: 10
Topics: 5

PostPosted: Tue Apr 25, 2006 4:00 pm    Post subject: batch cobol problem Reply with quote

Hi,

I have a pgm that is reading a flat file.
I am geting an error code of 47 while reading the input file.
I have an OPEN INPUT clause and the file status is zero after an open.
But after i try to read it i am geting a 47.

Did some one have this b4?

thanks

SZ
Back to top
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Apr 26, 2006 4:52 am    Post subject: Reply with quote

systemz,

You get a status code of 47 when your READ statement was attempted on a file which is not open in the input or I-O mode.

Make sure that your open statement and Read statement point to the same file.

Hope this helps..

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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