Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
WRITE Statement:
The WRITE statement for a relative file has the format which is as shown below.
WRITE record-name [ FORM identifier ]
[ ; INVALID KEY imperative statement ]
At the time of the execution of WRITE statement, the file should be open either in the OUTPUT or I-O mode. For illustration, assume REL-OUTPUT AND REL-KEY are the record name and relative key data item name for a relative file opened in the I-O mode. Then, upon execution of the statements below:
MOVE 50 TO REL-KEY.
WRITE REL-OUTPUT INVALID KEY GO TO PARA-INVALID.
The record is written at the 50th record location on the file.
The imperative statement of INVALID KEY phrase is the execution in the situation as shown below:
(i) When a try is made to write beyond the externally-defined boundaries of the file.
(ii) When a try is made to write in the record place that already contains a valid record.
PROGRAM TO FIND INTEREST ON BANK DEPOSITS: We have to write a program to find interest on deposits. The criteria is given below : identification division. program-
CLASS CONDITION: The class condition establishes whether or not the value of the operand is numeric or alphabetic. The operand is numeric if it contains only the digits 0 t
Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if
calculate simple interest
FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.
77 level used for- It is Elementary level item. it Cannot be subdivisions of other items or cannot be qualified, or they can be subdivided themselves.
program
CLOSE statement: The simplified syntax of the CLOSE statement is as shown below: CLOSE file-name-1 [WITH LOCK ] [ , file-
RULES OF MOVE VERB: The Data movement is managed by the rules which are as shown below: (a) The contents of the identifier - 1 or the value of the literal - 1 is moved to
RELATIONAL CONDITION: We know that a relational condition specifies a comparison between two operands and has the form. Operand-1 relational-operator operand-2
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd