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

how to refer the data field?

1903


How do u write test cases?

1717


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2034


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1892


Can you please let me know the centre name of INS certification in Kolkata.

1814






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

804


What are the various section in data division and briefly explain them.

815


What are the different data types in cobol?

903


Explain how to differentiate call by context by comparing it to other calls?

792


What are the different rules to perform a Search?

702


Give some examples of command terminators?

849


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

7073


Can we change the password using ALTER? anyone tried and changed?

1632


When is inspect verb is used in cobol?

791


What is amode(31)

807