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
Common form of the READ statements: Format 1 is the common form of the READ statements. Format 2 is used when the access mode is either random or dynamic. For illustration,

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi

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

PROGRAM FOR ELECTRICITY BILL: An electricity company supplies electricity to 4 types of customers coded 1, 2, 3 & 4.The rate schedule for customers is shown in one table as

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

Rules for Simple sort verb: The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below. The rules below should be taken

LABEL RECORD CLAUSE: This clause specifies whether or not the standard header and trailer labels must be present in the magnetic-tape files. VALUE OF CLAUSE: The VAL

DISPLAY STATEMENT:   The function of the DISPLAY statement is just opposite to that of the ACCEPT statement. It is used to display the low-volume results on the operator's co

PROGRAM FOR RENAMES CLAUSE: identification division. program- id. environment division. data division. working-storage section. 01 emp.      02 empdet.

FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author