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
OCCURS CLAUSE - PROGRAM: We have to write a program to elaborate occurs clause. Get names and marks of the students and show them on the screen.   identification division.

PROGRAM FOR MULTIPLY VERB: We have to write a simple program to elaborate MULTIPLY verb. You can also use the edit characters in the program. Identification division. Pr

INPUT-OUTPUT SECTION: This section holds information regarding the files to be used in the program. There are 2 paragraphs in this section- FILE-CONTROL & I-O-CONTROL. The

Point Location: The position of the decimal point is the other characteristic which can be specified in the case of the numeric data items. If the position is not specified, t

Figurative Constants: The Figurative constants have several fixed names and the compiler recognizes these names and it sets up the equivalent values in the object program.

, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu

calculate simple interest

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 t

Name the divisions in a COBOL program are given below DENTIFICATION DIVISION DATA DIVISION ENVIRONMENT DIVISION PROCEDURE 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