Example of special-names - configuration section, COBOL Programming

Example of Special-names:

Consider the illustration: Let the SPECIAL-NAMES paragraph be as shown:

SPECIAL-NAMES. CHANNEL 1 IS PAGE-TOP.

The Channel is related with the top of the page. Whereas instructing the computer to write a line on the line printer, the programmer may like to state that the line should be printed as the first line on a new page. This may be completed by involving the ADVANCE TO CHANNEL 1 clause in the write statement. The aim of the special name clause illustrated above is to enable the programmer to substitute CHANNEL 1 by PAGE-TOP in the ADVANCING clause. The idea is to give better documentation. If one favors to use CHANNEL 1 in the write statement, then the special name entry is not needed.

 

 

Posted Date: 10/16/2012 3:40:23 AM | Location : United States







Related Discussions:- Example of special-names - configuration section, Assignment Help, Ask Question on Example of special-names - configuration section, Get Answer, Expert's Help, Example of special-names - configuration section Discussions

Write discussion on Example of special-names - configuration section
Your posts are moderated
Related Questions
Literals: The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero wil

Example of add verb: (a) ADD A TO B. This illustration represents that the value of A will be added to the value of B and the result will be stored in B.  The alignment of

PROGRAM FOR ADD CORRESPONDING: We have to write a simple program to demonstrate Add Corresponding.   identification division.   program- id.   environment division.

Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

Illustration of Divide verb: (a) DIVIDE 5 INTO A. If the value of A is 20, then after execution of this statement the value of A will be 4. The older value of A will be los

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec

PERFORM WITH UNTIL OPTION: The format is as shown below: Illustration:  A) Perform p-3 until i > 5. Here p-3 will be executed whenever i B)  Perform p-2 thru

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il

IF ... ELSE STATEMENT: We are familiar with an easy form of the IF statement. The common form of the IF statement is as shown below: Each of the statement-1 and statem