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!
Identification Division:
The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the machines. The other paragraphs are elective.
The structure of Identification division is shown below:
IDENTIFICATION DIVISION.
PROGRAM-ID. Entry
[AUTHOR. entry.]
[INSTALLATION. entry.]
[DATE-WRITTEN. entry.] Optional
[DATA-COMPILED. entry.]
[SECURITY. entry.]
[REMARKS. entry.]
The division heading and paragraph names must be coded as A margin entries. The entries subsequent the paragraph headings should be terminated by a period. The entry in the PROGRAM-ID paragraph includes the program name to be used to identify the object program.
The entries in the other paragraphs are generally treated as comments and the programmer is free to write whatever thing for these entries. Only significant entries must be included in these places to provide better clarity and documentation.
The entry for the AUTHOR paragraph may include the name of the programmer. The entrance of the DATE-COMPILED paragraph may hold the date of compilation. If this entry is left blank, then the compiler inserts the real date in the listing of the source program which may be printed during the compilation.
SIGN CONDITION: The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif
program
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,
PROGRAMS FOR REDEFINES CLAUSE: We have to write a simple program to explain the REDEFINES clause at 01 level. identification division. program- id. Redef. environment
Example of compound condition: In common, a compound condition has the form which is as shown below: Where condition-1 & condition-2 can be any one of the below:
SEQUENTIAL FILES: The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control
GIVING file-name-5. The input files to be merged through the MERGE statements which are specified in the USING phrase. These files should be sequential files and should be
ADD VERB: The ADD Verb can be used to find the sum of two or more numbers and to store the sum. The ADD verb takes any one of the two forms as shown below:
FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.
we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file
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