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
In COBOL, what is the different between index and subscript?
) How do u handle errors in BMS macro
What are the rules of the move verb?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
Write a program that uses move corresponding.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
) what is the difference between AID and HANDLE AID?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What are the different rules for performing sort operation?
Describe the cobol database components?
What is the usage of comp fields in cobol?
how to move the records from file to array table. give with code example
What are the different data types in cobol?
how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between comp and comp-3 usage?