Can we use select * statement in cobol program without
giving field names ???

Answer Posted / vish

Yes we can do it but as a practice people don't use "SELECT
*..." in COBOL program. Possibly the main reason for this
is that if there is any modification to the table in future
(e.g. a column addition) then all such programs needs to be
at least recompiled once even if there is no code changes
into them. This is ensure taht they use latest DCLGEN for
the modified table else the programs will abend for column
mismatch.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an instance database?

602


How to view db2 table structure?

593


How do I delete a table in db2?

651


What is the maximum size of varchar data type in db2?

645


What is view db2?

626






I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1938


What is universal database?

619


Is db2 a mainframe?

589


What is package in db2 mainframe?

559


Is db2 a database?

574


What is innodb buffer pool?

564


What's The Percentage Free Space ?

773


What is the role of data manager in the db2 database?

649


What is the purpose of using commit?

618


What are the rules for db2 programming?

643