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

SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.

3 Answers   Lehman Brothers,


If there are two files one with 100 records and other with 101 records. we have to find out the one record that is the odd man out . What are the steps to do it

7 Answers   BirlaSoft,


Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS

2 Answers  


What is the difference between CALL BY VALUE and CALL BY CONTENT?

7 Answers  


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


Explain how you can characterize tables in cobol?

0 Answers  


How do get the result of your program directly on your pc?

0 Answers   UST,


what happens if parmparameter passes zero bytes to the program

0 Answers   HSBC,


how to transfer the file from pc to mainframe??

4 Answers  


Which Search verb is equivalent to PERFORM…VARYING?

0 Answers  


Without using move verb how to move one variable to another.

5 Answers  


if a file has 1000 recods how copy the records from 1 to 100 records using sort

4 Answers   IBM,


Categories