-
COBOL Math Program
Your program should take two triple digit numbers from the user(input), Add,Multiplie, Subtract,Divide them together and displays the result. Result of subtraction should be positive, If it is '-' ve then display Zero. And also for the division if quotient is less than 1 display 1.
-
-
-
-
-
How do you retrieve a sequential file in random manner
Yes when there is online
-
What is the difference between a binary search and a sequential search? What are the pertinent COBOL commands?
In a binary search the table element key values must be in ascending or descending sequence. The table is 'halved' to search for equal to, greater than or less than conditions until the element is found. In a sequential search the table is searched from top to bottom, so (ironically) the elements do not have to be in a specific sequence. The binary search is much faster for larger tables, while...
-
-
-
-
-
Sharing the database connection across different COBOL Modules in IBM AIX.
Consider there are three different COBOL modules named 'A', 'B' and 'C' in IBM AIX OS. The program flow is 'A' calls 'B', 'B' calls 'C'. I have established the ORACLE database connection in the module 'A'. I want to use the same ORACLE database connection in the modules 'B' and 'C'.I have tried linking all the modules as follows :"cob2 A.cbl B.cbl C.cbl -o ABC". The executable file "ABC" is executing...
-
-
-
-
-
-
-
-
COBOL Interview Questions
Ans