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
Answer / bhaskar reddy
//sysin dd*
sort fields=copy
stopaft=100
/*
Is This Answer Correct ? | 6 Yes | 0 No |
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 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?
How many variables can be declared in w-s section.?
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
Can printer files (having 133 characters) be of variable length?
can we display comp-3 variables. if we want to display what we have to do . give me one example
is this below syntax correct? CALL 'subprg' using A,B Please help
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.
explain sorting techniques in cobol program?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
i want to store 20 digits . h will u do it in cobol ?
i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS
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