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

input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


How to delete the records of a dataset through cobol programme?We should not use jcl utilitities like IDCAMS.

2 Answers  


How is sign stored in a COMP field ?

3 Answers   Accenture,


what is the advantage of using redefines instead of delaring the variables ?

5 Answers   HCL,


How to read a record from bottom of a file which is indexed by 'A'.

4 Answers   Oracle,


what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp

3 Answers   CTS,


What is inspect in cobol ?

0 Answers   Infosys,


What is report-item in COBOL?

0 Answers   Arigo Infotech,


how will u find out 3rd week's 2nd day using occurs ?

3 Answers   L&T,


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?

6 Answers  


Categories