If my file contains 100,000 records and job abended at
55,000th records processing then how can i restart job from
that record onward by ignoring that record. I can not edit
the file as file size is big and it is getting browse
substituted?

Answer Posted / lenin

if the file used in cics region, we can browse and read the
file from the record after the fault record by using
startbr,readnext and endbr commands.

if not, we can copy all the records after the fault record
to the new file and we read the new file,

The following code is used to create a new file which will
have the records after the fault record

// pgm=dfsort
/*
sort fields=copy,stopaft=45000,skiprec=55000
*/
//srtin dd dsn=orig-file
//sortout dd dsn=newfile
...

--Then you can read the new file in the cobol program.

Please correct me if i am wrong.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is amode(24)?

679


How to know whether the module is dynamical or statistical?

650


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

705


How you can characterize tables in cobol?

709


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2047






what is amode(24), amode(31), rmode(24) and rmode(any)?

688


What is difference between static and dynamic call in cobol?

768


Write some characteristics of cobol as means of business language.

611


Write a program to enter and display the names of students in a class using the occurs clause.

645


how do you reference the rrds file formats from cobol programs

789


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3711


What is length is cobol?

641


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10561


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1915


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

408