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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / shailendra

yes

Is This Answer Correct ?    4 Yes 0 No

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

Answer / guest

Shouldnt the code be changed to handle the new column that
would be returned by the SELECT *...

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More DB2 Interview Questions

What do you need to do before you do EXPLAIN ?

1 Answers  


Can we declare cursor in Procudere division or open the cursor in the Working storage section. Is there any particular rules in the usage of cursors lifecycle

1 Answers   Infosys,


how to fetch multiple records without using cursor

14 Answers   HCL,


How can you do the explain of a dynamic sql statement?

0 Answers  


how to resolve -818 error. how to see timestamp token in load module and plan

4 Answers   IBM,






What is commit in db2?

0 Answers  


What is the command used by TSO users to invoke DB2?

2 Answers   IBM,


what happend with out using Commit,when closing cursor and program?

5 Answers   CSC,


I am having n number of records in a table which consists of emp-name is one of the field among them. Now i want to change the first letter of every name with capital.

1 Answers   Cap Gemini,


What is the function of logging in the db2 database?

0 Answers  


How connect db2 database to datastage?

0 Answers  


What is performance tuning db2?

0 Answers  


Categories