No one here minds that you are a beginner - indeed, beginners/students are the reason this forum exists.
We do mind when someone asks the forum to do their work for them. We are most willing to help, but Not do your (home)work for you.
You have just "written" the program. Now, all you have to do is convert this to COBOL syntax.we can do it by reading the file, like for example we will read 1st record and then we will compare it with the other next records, if the 1st record is greater then the next record then we will display 'records are not in ascending order' or viceversa.
When you get stuck, post what you have tried and what needs clarification.