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
GIVING    file-name-5. The input files to be merged through the MERGE statements which are specified in the USING phrase. These files should be sequential files and should be

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

File volatility: File volatility associates to the number of times the updating of records are needed during some time period. File interrogation: Some files hold re

Example of Sign condition: The illustration below describes the use of the sign condition. Illustration:     77  BALANCE  PIC  S9 (6) V99.       .       .     I

Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c

Illustration of nested if statement: Consider the nested sentence which is as shown below: The IF-ELSE pairs in this sentence can be detected by applying the rule whic

Example of read statement: Illustration: READ OLD-MASTER AT END MOVE ZERO TO END-OF-RECORDS. As a result of this statement, generally the next record from the OLD-MAST

Illustration of Perform with varying option: A) Perform para-3 varying the k from 1 by 1 until k > 10. Here para-3 will be constantly executed 10 times (For k=1,2,3, .....1

PROGRAM FOR PERFORM ...UNTIL We have to write a program to find the sum of "n" natural numbers. Identification division. Program- id. PerfUntil. Environment division.

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par