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
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

ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold


Floating Insertion   The currency symbol ($) can emerge in multiples on the left-hand side of the picture. In this situation the character will be treated in similar way as t

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil

RULES FOR SEARCH VERB: The rules apply for the SEARCH verb is as shown below: (1) The SEARCH verb can be applied only to a table that has the OCCURS clause and INDEXED phra

Picture Clause: The picture clause explains the general characteristics of an elementary data item. These characteristics are elaborated below: Class: In COBOL the

PROGRAM FOR PERFORM - THRU: We have to write a program to elaborate PERFORM ...THRU statement Identification division. Program- id.  Perfthru. Environment division.

MERGE VERB WITH OUTPUT PROCEDURE: Like the sort verb, the merge verb can also have an output procedure. The syntax of the MERGE verb is as shown below:   The r

Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de