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
Can we change the password using ALTER? anyone tried and changed?
What is the difference between perform … with test after and perform … with test before?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What are the cobol coding sheets?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
i need a small 3d program using inline and outline.
What the difference is between continue and next sentence?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
what happens if parmparameter passes zero bytes to the program
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are the pertinent COBOL commands?
Write some characteristics of cobol as means of business language.
Name the divisions, which are available in a cobol program?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What is a SSRANGE and NOSSRANGE?