Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?

Answers were Sorted based on User's Feedback



If my file contains 100,000 records and job abended at 55,000th records processing then how can i r..

Answer / neeraj

I think this logic is sufficient to fullfill this req:


// pgm=dfsort
/*
sort fields=copy,skiprec=55000
*/
//srtin dd dsn=orig-file
//sortout dd dsn=newfile

Is This Answer Correct ?    18 Yes 0 No

If my file contains 100,000 records and job abended at 55,000th records processing then how can i r..

Answer / 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

If my file contains 100,000 records and job abended at 55,000th records processing then how can i r..

Answer / sj@iy

Code sort fields as
SORTIN DD *
OPTION COPY
SKIPREC(55000)
/*

This will skip all records upto and including 55000th record

OR

SORTIN DD *
OPTION COPY
OUTFIL STARTREC=550001,ENDREC=100000
/*
This will copy records from 550001 to 100000

Is This Answer Correct ?    4 Yes 0 No

If my file contains 100,000 records and job abended at 55,000th records processing then how can i r..

Answer / tdagar

We can skip 55000 records using File-Aid as well. Copy the
file into another file and mention 55000 against Skip
records.

Is This Answer Correct ?    0 Yes 0 No

If my file contains 100,000 records and job abended at 55,000th records processing then how can i r..

Answer / 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

More COBOL Interview Questions

What are the differences bitween cobol and cobol-2?

1 Answers   Wipro,


What is the difference between PIC 9.99 and 9v99?

7 Answers  


What is the local-storage section?

0 Answers  


Under which scenario you would go for a static call as opposed to dynamic call?

5 Answers   TCS,


Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.

2 Answers   TCS,


hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?

1 Answers   CGI,


What is the reference modification.

2 Answers  


Which mode is used to operate the sequential file?

0 Answers  


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


In an EVALUATE statement, can I give a complex condition on a when clause?

2 Answers  


how to resolve the file status 47.......

1 Answers   MMM,


Describe the cobol database components?

0 Answers  


Categories