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 records are written to be logical place as determined from the value of the record key. The INVALID KEY condition occurs in the cases shown below:
(i) When a try is made to write a record beyond the externally defined boundaries of the file.
(ii) Whenever the file is opened in the OUTPUT mode and the value of the record key is not bigger than the value of the record key for the earlier record written.
(iii) When the value of the record key is equivalent to the record key of a record key already present in the file.
PROGRAM FOR RENAMES CLAUSE: identification division. program- id. environment division. data division. working-storage section. 01 emp. 02 empdet.
scope of marginal costing
Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)
Example of Sign condition: The illustration below describes the use of the sign condition. Illustration: 77 BALANCE PIC S9 (6) V99. . . I
program
READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO identifier ] [ ; AT END imperative-s
Example of If- else statement Illustration: IF QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE
REWRITE statement: The REWRITE statement is used to update the existing record in a disk file. The normal format is as shown below: REWRIE record-name [ FROM ide
Example of File-control: The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the devic
PICTURE specification: The size of a group item is equivalent to the total of the sizes of all the subordinate elementary items. The group item class is alphanumeric. The i
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