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
Explain the configuration section of a cobol program with examples of syntax.
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between PIC 9.99 and 9v99 in COBOL?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
Are you comfortable in cobol or jcl?
what is difference between cobol and cobol/400
Write a cobol program making use of the redefine clause.
Can a Search can be done on a table with or without Index?
What is the difference between binary search and sequential search?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is amode(31)
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.