VSAM READ ERROR 47



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

VSAM READ ERROR 47

Postby sharhart » Fri Sep 17, 2010 6:54 pm

cannot figure out why I got this error message on an abend:

.START ERROR ON TIN-RATE FILE
.TIN-RATE STATUS = 47

I opened the file with this code and did not get an error so I know the file is open as input:

OPEN INPUT TIN-RATE-FILE

IF TIN-RATE-STATUS NOT = '00' AND '97'
DISPLAY 'OPEN ERROR ON TIN-RATE-FILE'
DISPLAY 'TIN-RATE-STATUS = ' TIN-RATE-STATUS
CALL ABEND200.

But this section of code gives the error.
START TIN-RATE-FILE
KEY NOT < TIN-RATE-KEY.

IF TIN-RATE-STATUS NOT = '00' AND NOT = '23'
DISPLAY 'START ERROR ON TIN-RATE FILE'
DISPLAY 'TIN-RATE STATUS = ' TIN-RATE-STATUS
CALL ABEND200.

Any ideas?
sharhart
 
Posts: 1
Joined: Fri Sep 17, 2010 6:46 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VSAM READ ERROR 47

Postby Robert Sample » Fri Sep 17, 2010 8:26 pm

Since you're not posting actual code, does that mean we don't have to provide actual answers?

A 47 means the file is not open when you did the START. This could be due to your program having bad logic, or your program falls through a paragraph and attempts to execute the start after the file is closed, or who knows why -- we simply don't have enough information to provide anything but guesses.

However, believe the computer when it issued the 47 file status code -- the file is not open, period.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: VSAM READ ERROR 47

Postby pranay87 » Mon Feb 25, 2013 11:44 am

Hi there
pranay87
 
Posts: 1
Joined: Mon Feb 25, 2013 11:41 am
Has thanked: 0 time
Been thanked: 0 time

Re: VSAM READ ERROR 47

Postby BillyBoyo » Mon Feb 25, 2013 1:04 pm

If you want to ask a question, please start a new topic in an appropriate forum here.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post