I have two files , file1 is input file it contains
10,20,30,....,records
but i want to display the records in file 2 as reverse order
.how can we do by using jcl& cobol(dont use array)
please any one can tell me the answer
Answer Posted / vaneesh
We can sort the input file in descending order usign DFSORT
sort fields=(1,3,CH,D)
then simply read the sorted file in the program and display
it in the spool.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
What are the different open modes available in cobol?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Define static linking and dynamic linking.
What are the rules of the move verb?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
) How do u handle errors in BMS macro?
What is report-item in COBOL?
what is difference between cobol and cobol/400
What is the difference between comp and comp-3?
Differentiate between structured cobol programming and object-oriented cobol programming.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What the difference is between continue and next sentence?
How do you define a variable of comp-1 and comp-2?
What is the default value(s) for an initialize and what keyword allows for an override of the default?