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
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How do you reference the fixed block file formats from cobol programs
What is the utilization of copybook in cobol?
Write the code implementing the perform … varying.
What are the pertinent COBOL
What do you understand by psb and acb?
Are you comfortable in cobol or jcl?
How arrays can be defined in COBOL?
what happens if parmparameter passes zero bytes to the program
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
What are the different open modes available in cobol?
how to move the records from file to array table. give with code example
how do you reference the ksds vsam file formats from cobol programs
What are different data types in cobol?