I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answer Posted / seema dawlekar
This can be done in two steps
in the step1 copy the the selective records by giving the
syntax as
skiprec = 4 -
stopaft = 50
this will copy only the selected records, now in the step2
we can perform sort
syntax is
sort fields=(starting position,length,type,A/D)
A--ascending and D--descending order
correct me if I am wrong
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
how do you reference the esds vsam file formats from cobol programs
Can you please let me know the centre name of INS certification in Kolkata.
What are the pertinent COBOL commands?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Name the sections present in data division.
What is rmode(any) ?
example for sub strings ? and refernce modifications whit output pls
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how to access the file from prodution from changeman tool and to submit a file to production
What are the different rules for performing sort operation?
Can we redefine the field of x(200) to less than 200?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are the various section in data division and briefly explain them.
What is the usage of comp fields in cobol?