Here is some code. It's not Cobol, but it'll give an idea of the simplicity of the task you are undertaking with such poor results.
All you have to do is change nn to the start position of the name on your file, and find out what program will understand this code.
It is quite like 2 + 2. If you can't crack that, you need to do a lot of very basic work before tackling basic maths.
If you have someone to give you the code, why didn't you ask them first? And if they give it to you, they are doing you no favours as you will learn zero, rather than learning only-slightly-more-than-zero by following all the suggestions given to you.
When you find examples of the above code, you'll usually be lucky and even see sample JCL, which conquers your next challenge.