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
HOw can I get the negative sign while deduct high value from low value
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
IF I mention stop run in CICS what happens?
how to convert the recors form vsam file to db2 table tru file aid
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is a report item?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What is the difference between PIC 9.99 and 9v99 in COBOL?
Define static linking and dynamic linking.
what is search and searchall?what is the diffrence between them?give an best example?
example for sub strings ? and refernce modifications whit output pls
How do define dynamic array in cobol.
) what is the difference between AID and HANDLE AID?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How do get the result of your program directly on your pc?