Home > Software > Mainframe > Cobol
Interview Questions   Tutorials   Discussions   Programs   

Cobol - What is file status 92?




499
views
asked mar August 3, 2014 01:28 AM  

What is file status 92?


           

1 Answers



 
answered By Mswami   0  
Logic Error.  For example: If file opened in Input mode and try to insert the records in that file.
 
Various reasons for File status code 92 could be the below:
LOGIC ERROR / OPENING A OPEN FILE  / READING OUTPUT FILE  / WRITING INTO A INPUT FILE  / DEL or REWRITE BUT NO PRIOR READ

Few things to check for status code 92.

1. check the access mode in file declaration. ie FD section.Make sure that it matches the listcat info of the vsam file.

2. Make sure that the record being read into a layout is not smaller than the record.

3.If you are using a START verb to read a record directly, you first need to populate value to the record key.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert