Wednesday, 06 January 2010© Mainframes360.com – QuasaVisit us at :http://www.mainfra
What does one mean
COBOL allows programmercan divide and organizeor paragraph is dedicata particular section ortowards the task you warogram.hen the control firstbe performed, you accorappropriate section orProgram Flow Control.You have written the prarticular task/functiothat section or paragrasearch the whole progra
How do you write SEC
Just as DIVISION’s starnames should begin inwith a period.oreover, it is customaGenerally, the naming cdifferent shops) is toyour program has 2 para0200-CHINA. This way, iGiven below is simple etwo sections READ-FILE-one paragraph.Example:Think what if, you execrogram is the PROCEDUone-by-one sequentially
‘Program Flow Control’? Why is it
s to write computer programs in a syour programs into sections and pared to perform a specific task or fuparagraph, you can focus and put ant to perform, without bothering abenters into the Program, dependingdingly just direct/transfer the contparagraph, jump to the relevant parogram, in a well-organised manner. Inality, you only need to search andph corresponding to this functionalm).
TION’s and PARAGRAPH’s in COBOL?
t in Area A(Columns 8-11), Sectionrea A. Every Section name and paragrry to follow a naming-convention foronvention for COBOL Para’s used byprefix the paragraph name with a nugraphs INDIA and CHINA, then name tt becomes easier to identify them.xample of a typical COBOL Program tSECTION and WRITE-FILE-SECTION, eacuted this COBOL Program. The startiE DIVISION. Each statement is execut. It is terminated at STOP RUN. Thus
tematic manner. Youagraphs. Each sectionction. While writingl your energy,ut the rest of thepon what task is torol to the. This idea is calledf an error occurs inrectify the error inty(You don’t need toames and Paragraphaph name should endparagraph-names.ost programmers(inber. For example, ifem as 0100-INDIA andat is divided intoof them containingg point of theed by the computer, the output on the