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 types of copies can be made with the COPY Utility ?

1 Answers  


what is the input to PLAN? what is the input to DBRM?

4 Answers  


how can u nderstand the sql stmts executed successfully or not ?

1 Answers   TCS,


What is sqlca?

0 Answers  


How to design maps

1 Answers   Virtusa,






what is the maximum number of tables that can be joined ?

8 Answers   IBM, TCS,


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?

1 Answers   HeadStrong,


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


Where do you specify them?

0 Answers  


Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which Will precompile of an DB2-COBOL program bomb, if DB2 is down?

1 Answers  


What is DCLGEN?

2 Answers  


How to fetch the last row from the table in SQL (db2)?

0 Answers  


Categories