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
PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a

Comparing features of oracle rdbms with Mysql

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

PROGRAM USING OCCURS CLAUSE: We have to write a simple program to demonstrate Occurs Clause. Get the employee details for 3 persons and compute the total salary. identifica

File- Section &Working-Storage Section: a) FILE SECTION: The FILE SECTION includes the explanation of all data items that must be read from or written onto some external


INDEXED TABLES: The OCCURS clause that is used to define tables can optionally have an INDEXED phrase. This phrase involves the names of data items which are to be used as sub

SEQUENTIAL FILE CREATION AND REWRITING: We have to write a program to create a student file with just two fields: sno i.e. Student Number and same i.e. Student Name. Add a few

Comparison of Numeric Operands: We are well-known with the kind of the relational condition where both the operands are numeric. The comparison in this situation is algebraic