By R. Hutty (auth.)

Show description

Read or Download Mastering COBOL Programming PDF

Similar databases & big data books

Database Repairing and Consistent Query Answering

Integrity constraints are semantic stipulations database should still fulfill on the way to be a suitable version of exterior truth. In perform, and for lots of purposes, a database would possibly not fulfill these integrity constraints, and hence it's stated to be inconsistent. in spite of the fact that, and probably, a wide component of the database remains to be semantically right, in a feeling that should be made special.

Android Application Sketch Book

Imagine you have got the following nice Android app proposal? The Android program cartoon publication is an important device for any aspiring Android developer. This comic strip booklet makes it effortless to centralize and manage your rules, that includes enlarged Android templates to write down on. Professionally revealed on top of the range paper, it has a complete of one hundred fifty gridded templates that you can draft principles and doodle designs whereas delivering abundant room to make notes and record the app identify and reveal identify.

Learning MySQL: Get a Handle on Your Data

No matter if you are working a enterprise, keeping an eye on contributors andmeetings for a membership, or simply attempting to set up a wide and diversecollection of knowledge, you will find the MySQL database engineuseful for answering questions akin to: that are my most sensible ten fastest-selling items? How usually does this individual come to our facility?

Extra resources for Mastering COBOL Programming

Sample text

2 shows the use of the S and + pictures. Input values for OLD-BALANCE and AMOUNT may be positive (a credit) or negative (a debit) and the NEW-BALANCE may be positive or negative, which will be indicated by a -or +sign when it is output. 2 the BALANCE program * IDENTIFICATION DIVISION. PROGRAM-ID. BALANCE. ENVIRONMENT DIVISION. TA DIVIS ION. WORKING-STORAGE SECTION. 77 OLD-BALANCE PIC S999V99. 77 AMOUNT PIC S999V99. 99. PROCEDURE DIVISION. BALANCE-CALC. ACCEPT OLD-BALANCE. ACCEPT AMOUNT. ADD AMOU~T OLD-BALANCE GIVING NEW-BALANCE.

ADD MALES TO FEMALES GIVING PEOPLE. If the values of MALES and FEMALES were 73 and 65, respectively, then the result produced by the execution of the ADD statement would be 138, which is greater than 99 - the maximum value that can be held by the numeric data-item PEOPLE. A SIZE ERROR has occurred. Normally, of course, data-items are allocated appropriate pictures at the program-design stage, and in the example above it would be more sensible for the dataitem PEOPLE to have a picture of PIC 999, since it is intended to hold the sum of two data-items each with a picture of PIC 99- the minimum value of the sum being 198.

ADD TWO NUMBERS. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. 77 N0-1 PIC 99. 77 N0-2 PIC 99. PROCEDURE DIVISION. ADD-2-NOS. ACCEPT N0-1. ACCEPT N0-2. ADD N0-1 TO N0-2. DISPLAY "SUM IS " N0-2. STOP RUN. 9 26 SUM IS 35 If the two numbers input were 9 and 26 then, before the ADD statement was executed, N0-1 and N0-2 would contain N0-1 PIC 99 @lli N0-2PIC99 ~ and after the ADD statement was executed they would contain N0-1 PIC99 ~ N0-2PIC99 ~ Notice that N0-1 remains unchanged by the ADD statement.

Download PDF sample

Mastering COBOL Programming by R. Hutty (auth.)
Rated 4.27 of 5 – based on 3 votes