How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?



How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend..

Answer / Hitesh Kumar Saxena

In COBOL, when you encounter a SOC7 abend (System Output Control Group 7 Abnormal End) while fetching error records from a VSAM file, it indicates that an error occurred during the reading process. To fetch 1000 error records, you can use a loop to read and process records until the desired count is reached. However, dealing with SOC7 abends requires careful error handling and understanding of your specific application's structure and error conditions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

what will happen if pass values more than 100 using PARM parameter?

1 Answers  


how we can edit records in vsam data set and non vsam data sets

2 Answers   ACS,


consider the following progrm statements MOVE 0 TO SW.NO.OF.REC PERFORM PRI-OUT UNTIL SW=1 DISPALY NO.OF.REC STOP RUN PRE-OUT READ IN-FILE AT END MOVE 1 TO SW WRITE OUO-REC FROM IN-REC ADD 1 TO NO.OF REC if the IN-FILE contains 1000 records what value will be displayedafter the PERFORM is over?assume that N0.OF.REC has PIC 9(4) a.1000 b.1001 c.1 d.none of the above since there is a syntex error

4 Answers   TCS,


Why we should use cursor ?

3 Answers  


How you can read the file from bottom?

1 Answers  


Consider the following: 77 W-NUM PIC 9 VALUE 0 ------ MOVE 1 TO W-NUM PERFORM PARA-X UNTIL W-NUM > 9. ------ PARA-X ADD 1 TO W-NUM How many times PARA-X is executed ?

14 Answers   Accenture, TCS,


Difference between cobol and cobol-ii?

1 Answers  


how do you reference the fixed unblock file formats from cobol programs

1 Answers  


What is "Call by content" and "call by reference"?

4 Answers   ADP, Syntel,


how to access vsam files in cobol and how to differentiate that this is ESDS file

1 Answers   EDS,


Can JUSTIFIED be used for all the data types?

3 Answers  


What was removed from COBOL in the COBOL II implementation?

0 Answers  


Categories