Like most people here, I am very happy to help, but you need to understand
what I already said.
1. Tell us WHAT COBOL you are using. (That can change the advice you are
given significantly).
2. Try and make a SPECIFIC statement as to what exactly you are stuggling
with, so we can address that.
"I want to know basics of COBOL..." (This is a GENERAL statement , not a
SPECIFC one...)
It is a high-level, English-like computer programming language. It is
comprised of a hierarchic structure of DIVISIONS > SECTIONS > PARAGRAPHS >
STATEMENTS. The statements enable you to define and manipulate data. COBOL
source code gets compiled (by a COBOL Compiler) into instructions that are
meaningful to the underlying hardware.
(The above is a GENERAL answer, not a SPECIFIC one...)
"I want to know what infile and outfile are... "
This is a little more SPECIFIC, so I can answer a little more
specifically...:
"infile" and "outfile" are unknown to the COBOL language.
In General:
Had you posted a sample of the code (as mentioned in my previous response)
we could see the context and then give a better answer to your question. If
you had done some "homework" on COBOL instead of expecting us to spoon-feed
answers to you, you would realize the difference between a user-defined name
and a COBOL reserved word.
My advice:
Get a book on COBOL programming and work through it. (SAM's COBOL in 24
hours, by Thane Hubbell is a very good one...)
This will give you the basic understanding you wanted. When you have that,
please post any SPECIFIC problems you have, along with a statement of which
compiler and environment you are using, and a sample of the problem code and
I am sure you will receive help from this forum.