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

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?

5 Answers   TCS,


How many variables can be declared in w-s section.?

2 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,


Can printer files (having 133 characters) be of variable length?

3 Answers  


can we display comp-3 variables. if we want to display what we have to do . give me one example

6 Answers   CGI, Deloitte,






is this below syntax correct? CALL 'subprg' using A,B Please help

2 Answers  


Did anybody attend the walkin of TCS on 31st July in Gurgaon for any technology,If u have completed 3 round i.e till the HR round,have u received the Offer letter yet? Please let me know.Thanks.

1 Answers  


explain sorting techniques in cobol program?

0 Answers  


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

0 Answers  


i want to store 20 digits . h will u do it in cobol ?

4 Answers   TCS,


i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


study the data discriptions and answer the questions given below i)01 ORDER RECORD 05 OUT-HEADER PIC X(50) 05 ITEM-COUNT PIC 99 05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT ii)01 NAME-AND-ADDRESS 05 N-AND-A-LINE OCCURES 5 05 LINE-LENGTH PIC P9 05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON LINE-LENGTH iii)01 SALES-LIST 05 SALESMAN-COUNT PIC 99 05 SALES PIC 9(6) OCCURS 1 TO 100 DEPENDING ON SALESMAN-COUNT iv)01 ORDER-RECORD 05 NO-OF-BRANDS PIC 99 05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON NO-OF-BRANDS which of the following is true? a.i) and iii) are valid b.i) and iv) are valid c.i) and iii) are not valid d.all are valid

4 Answers   TCS,


Categories