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

How you can read the file from bottom?

0 Answers  


what is rediffine clause?in what situation it can use?give me real time example?

1 Answers   IBM,


how to convert the recors form vsam file to db2 table tru file aid

0 Answers   TCS,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


can we use 77 level no for Redefines?if we use give an example?

3 Answers   Mphasis,


when COMP-3 is preferrable?

3 Answers   Patni,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


How do you reference the following file formats from cobol programs?

0 Answers  


What is ASKTIME, SUSPEND

1 Answers   IBM,


wht r the advantages of 77 level number ?

8 Answers   TCS,


if i am reading a file with some 50000 records and moving to a DB2 table and suddenly the program abends in between, is there anyway i could restart from the exact record at which the job failed once the program restarts.

2 Answers   UST,


Categories