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
 

 

VSAM error code 92

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Wed Sep 12, 2007 8:16 pm    Post subject: VSAM error code 92
Reply with quote

Hi all,
When I try to run a job, in that I am reading a VSAM file and it is giving me 92 return code. I have run the same job around 10 times before, it was running fine but now it is abending. When I promote the same code from a different changeman package, it is working.

Below are the details of the file
Code:
SELECT I-FILEA              ASSIGN TO FILEA             
                            ORGANIZATION IS INDEXED     
                            ACCESS MODE IS RANDOM       
                            RECORD KEY IS FILEA-KEY         
                            FILE STATUS  IS WS-FILEA-RC,
                                      WS-FILEA-VSAM-CODE.

SELECT I-FILEB              ASSIGN TO FILEB         
                            FILE STATUS WS-FILEB-RC.



FD  I-FILEA                   
    LABEL RECORDS ARE STANDARD
    BLOCK CONTAINS 0 RECORDS. 
01  WS-FILEA-REC            PIC X(2000).

FD  I-FILEB                               
    RECORDING MODE IS F                   
    LABEL RECORDS ARE STANDARD             
    BLOCK CONTAINS 0 RECORDS.             
                                           
01  WS-FILEB-REC            PIC X(500).

.
.
PROCEDURE DIVISION.
.
.
OPEN INPUT I-FILEA
        I-FILEB.
.
.
.

READ I-FILEB           
     INTO WS-FILEB-REC 
END-READ.               


MOVE FILEB-NBR            TO FILEA-KEY. 
                                             
READ I-FILEA                               
     KEY IS FILEA-KEY                           
END-READ.                                   
.
.
.
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Sep 12, 2007 9:13 pm    Post subject:
Reply with quote

Logic error, the answer is in your WS-FILEA-VSAM-CODE, can you display it?
Back to top
View user's profile Send private message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Wed Sep 12, 2007 9:42 pm    Post subject: Reply to: VSAM error code 92
Reply with quote

Unfortunately the variable WS-FILEA-VSAM-CODE is not getting populated.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Sep 12, 2007 9:51 pm    Post subject: Re: Reply to: VSAM error code 92
Reply with quote

Is it FILEA?
Did FILEA open? Status?
Is FILEA actually VSAM?
It's your code, you are the only one that can test the statuses and put in the displays.....
rammraju wrote:
Unfortunately the variable WS-FILEA-VSAM-CODE is not getting populated.
I find that very hard to believe..... icon_confused.gif
Back to top
View user's profile Send private message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Wed Sep 12, 2007 11:26 pm    Post subject: Reply to: VSAM error code 92
Reply with quote

Yes FILEA is VSAM file and it is the one which is giving 92 return code on read(if a matching key is found, or else it is giving 23 return code). It opened with return code 00.

I dont know why WS-FILEA-VSAM-CODE is not getting populated, I am looking into that still
Back to top
View user's profile Send private message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Thu Sep 13, 2007 12:44 am    Post subject: Reply to: VSAM error code 92
Reply with quote

Problem solved, Actually the file FILEA which I am referring to as VSAM is not VSAM actually, its IAM file. and IAM files donot give VSAM return codes, thats the reason my variable WS-FILEA-VSAM-CODE is not getting populated.

The reason for the 92 return code was the record structure of the file FILEA and the actual file size are not in sync.

anyways thanks for the replies
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: Thu Sep 13, 2007 12:51 am    Post subject:
Reply with quote

Hello RamaMohan,

Thank you for posting how the problem was resolved icon_smile.gif
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am


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