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
What is inspect in cobol ?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How do you get the data to code the BMS macro?
Can we redefine the field of x(200) to less than 200?
How do you reference the fixed block file formats from cobol programs
What are the different open modes available in cobol?
What is the difference between next sentence and continue in cobol programing language?
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
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the usage of comp fields in cobol?
what happens if parmparameter passes zero bytes to the program
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Why would you use find and get rather than to obtain?
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 is the Purpose of POINTER Phrase in STRING command in COBOL?