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

what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99

2 Answers   TCS,


how will u pass dadta to cobol+db2 program...?

4 Answers   IBM,


perform I from 0 by 1 until I=5?How maney times it will executes

8 Answers  


Mention the guidelines to write a structured cobol program?

0 Answers  


I have 2 dimensional array with having 100 elements. So how to find the 11th item in an array?

6 Answers   IBM,






consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 123.45 after the statement MOVE W-A TO W-B what will be W-B's value? a.123.75 b.b23.75 (where b indicates space) c.023.75 d.invalid move

5 Answers   TCS,


What are the different forms of EVALUATE statement?

2 Answers   IBM, Micro Labs,


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

2 Answers  


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

0 Answers   TryTechnicals Pvt Ltd,


Difference between next and continue clause

4 Answers   Kanbay,


What is the difference between NEXT SENTENCE and CONTINUE?

2 Answers   Mphasis,


can we use the two 01 level in file discription ?

6 Answers  


Categories