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 / hemant borase
// pgm=dfsort
/*
sort fields=copy,stopaft=55000,skiprec=55000
*/
//srtin dd dsn=orig-file
//sortout dd dsn=newfile
...
correct me if i am wrong because we need to skip only
55,000th record.
am i rt?
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Explain about different table spaces.
Write down the divisions of cobol program?
What rules are followed by the search verb.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
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?
What guidelines should be followed to write a structured cobol prgm?
) How do u handle errors in BMS macro
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How do u write test cases?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Write the code to count the sum of n natural numbers.
What is the difference between PIC 9.99 and 9v99 in COBOL?