Example of write statement, COBOL Programming

Example of Write statement:

Illustration:

(i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES.

This WRITE statement specified that the TRANS-RECORD is a record name of a file which has been assigned to the PRINTER. The present position of the stationery will be advanced by 3 lines, that is, there will be 2 blank lines and the current record will be written on the third line.

(ii)  WRITE TRANS-RECORD BEFORE ADVANCING 3 LINES.

Primary the record will be written and then the page will be advanced by the 3 lines.

 

Posted Date: 10/16/2012 5:38:24 AM | Location : United States







Related Discussions:- Example of write statement, Assignment Help, Ask Question on Example of write statement, Get Answer, Expert's Help, Example of write statement Discussions

Write discussion on Example of write statement
Your posts are moderated
Related Questions
DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe


B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

There are some restrictions when these procedures are used. (i) The Procedure should not contain any SORT/MERGE statement. (ii) An explicit transfer of the control outside

Comparison of Nonnumeric Operands: A nonnumeric operand can be compared to the other nonnumeric operand according to the rules as shown below: (i) Fields of Equal Sizes:

Concept of a two-dimensional table: Concept of a two-dimensional table can be easily extended to tables having three or more dimensions. The Handling of tables up to three dim

WRITE Statement:      The WRITE statement for a relative file has the format which is as shown below.          WRITE  record-name   [ FORM   identifier ]

SIGN CONDITION:   The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif

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

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition