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 SDSF?

3 Answers  


What are literals?

0 Answers  


Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible

7 Answers   TCS,


What is the difference between working storage copybook and linkage section copybook?

5 Answers   TCS,


C1 C2 C3 are three conditions whose TRUTH values are as folloes. C1-TRUE C2-FALSE C3-TRUE A,B,C are defined as given below A:C1 AND(NOT C2) OR C3 B.(NOT C1) OR (NOT C2 AND NOT C3) C.(C1 OR C2)AND C3 D.C1 AND C2 OR C3 given the above information which of the following statements are valid? a.only A,B and C are TRUE b.only A,C and D are TRUE c.A,B,C and D are TRUE d.only C and D are TRUE

1 Answers   TCS,






Name the divisions in a COBOL program ?

7 Answers  


plz,could any one tell me? what about EBCDIC in cobol?briefly?

1 Answers  


01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??

1 Answers  


When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these

6 Answers   Wipro,


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


Categories