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
What is the difference between subscript and index

Illustration of Subtract verb: (a) SUBTRACT A FROM B. This illustration means that the value of A will be subtracted from the value of B and the subtracted result will be s

Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.

FILE-CONTROL ENTRIES FOR THE SEQUENTIAL FILES: The characteristics of each and every files handled in a program are specified in the ENVIRONMENT DIVISION and DATA DIVISION.

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

can we move spaces to numeric field

Example of Nested if statement: Illustration: Consider the following sentence The nested IF sentence holds two IFs and one ELSE. The IF-ELSE couple has been marke

Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)

PROGRAM TO DEMONSTRATE SORT VERB: The file for which a record having 2 fields, viz., Account Number and Name is already available. Sort the file based on the ascending order o

calculate simple interest