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

Answers were Sorted based on User's Feedback



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

Answer / shazia

We can do by Sort, i.e Use "Stop after 100" command in Sort.

Is This Answer Correct ?    8 Yes 0 No

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

Answer / bhaskar reddy

//sysin dd*
sort fields=copy
stopaft=100
/*

Is This Answer Correct ?    6 Yes 0 No

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

Answer / rv rocks

using iceman utility we can copy the 1st 100 records .
//sysin dd *
option copy, stopaft=100
/*

Is This Answer Correct ?    2 Yes 0 No

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

Answer / sharath

u can also use include cond statment to do this

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More COBOL Interview Questions

) How do u handle errors in BMS macro?

0 Answers   IBM,


give the examples of strings in cobol

1 Answers   IBM,


waht is inspect verb? where it can be in real time?

1 Answers   Patni,


what is the maximum error code in mainframe

2 Answers  


hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...

1 Answers   ITC Infotech,


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


Explain complete concept of table handling in COBOL with an example?

2 Answers   IBM, TCS, Wipro,


what is call by value and call by reference ?

3 Answers   Infosys, ITC Indian Tobacco Company,


How much salary you are expecting? If they ask in an interview, what we have to tell?

6 Answers   Tech Mahindra, Wipro,


How can we increase the size of an existing PDS to include more no. of modules. I tried the answer posted by Jagan(TSO PDS 'pds name') but did not find it working. The answer posted by kamal i know very well. Please suggest me a answer so that we don't need to delete the existing PDS and still we can change the size as well.

10 Answers  


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


Categories