Sunday, July 7, 2013

Differences 2


Q5) What is the difference between Structured COBOL Programming and Object Oriented COBOL programming ?
A5) Structured programming is a Logical way of programming, you divide the functionalities into modules and code logically. OOP is a Natural way of programming; you identify the objects first, and then write functions, procedures around the objects. Sorry, this may not be an adequate answer, but they are two different programming paradigms, which is difficult to put in a sentence or two. 

Q6) What is the difference between external and global variables ?
A6) Global variables are accessible only to the batch program whereas external variables can be referenced from any batch program residing in the same system library. 

Q7) Difference between next and continue clause?
A7) The difference between the next and continue verb is that in the continue verb it is used for a situation where there in no EOF condition that is the records are to be accessed again and again in an file, whereas in the next verb the indexed file is accessed sequentially, read next record command is used.

Q8) What is the difference between performing a SECTION and a PARAGRAPH ?
A8) Performing a SECTION will cause all the paragraphs that are part of the section, to be performed. Performing a PARAGRAPH will cause only that paragraph to be performed. 

Q9) What is the difference between COMP & COMP-3 ?
A9) COMP is a binary storage format while COMP-3 is packed decimal format. 

Q10) What are the differences between OS VS COBOL and VS COBOL II ?
A10) OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit addressing modes. I. Report writer is supported only in OS/VS Cobol. II. USAGE IS POINTER is supported only in VS COBOL II. III. Reference modification e.g.: WS-VAR(1:2) is supported only in VS COBOL II. IV. EVALUATE is supported only in VS COBOL II. V. Scope terminators are supported only in VS COBOL II. VI. OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds. VII. Under CICS Calls between VS COBOL II programs are supported.

No comments:

Post a Comment