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
how to refer the data field?
How do u write test cases?
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
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?
Can you please let me know the centre name of INS certification in Kolkata.
how do you reference the fixed unblock file formats from cobol programs
What are the various section in data division and briefly explain them.
What are the different data types in cobol?
Explain how to differentiate call by context by comparing it to other calls?
What are the different rules to perform a Search?
Give some examples of command terminators?
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?
Can we change the password using ALTER? anyone tried and changed?
When is inspect verb is used in cobol?
What is amode(31)