i have n records in one file and in this file there is some
fields and i want to count that how many sharma in my file
so plz give the coding that how we read sharma ?
Answer Posted / abhay
using SORT UTILITY(OUTFIL) AND THROUGH SORT(OUTREC),its
possible..
..
1)THROUGH SORT UTILITY(OUTFIL):
//S1 EXEC PGM=SORT
//F1 DD DSN=....
.
.
//SYSIN DD *
SORT FILEDS=(1,4,CH,A)
OUTFIL FILE 1 INREC FIELDS=(10,5,CH,EQ,C'SHARMA')
*/
//
2)THROUGH SORT(OUTREC):
//S1 EXEC PGM=SORT
//DD1 DD DSN=....
//DD2 DD DSN=.... Where o/p contains SHARMA will move into DD2
.
.
//SYSIN DD *
SORT FILEDS=(1,4,CH,A)
OUTREC FIELDS=(10,5,CH,EQ,C'SHARMA')
*/
//
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Name some of the examples of COBOl 11?
What are literals?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the utilization of copybook in cobol?
What is the use of intialize verb?
Can we redefine the field of x(200) to less than 200?
Explain how to differentiate call by context by comparing it to other calls?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are all the divisions of a COBOL program?
how do you reference the ksds vsam file formats from cobol programs
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is difference between static and dynamic call in cobol?
HOw can I get the negative sign while deduct high value from low value
What is cobol?