How do you declare a host variable (in COBOL) for an
attribute named emp-name of type VARCHAR(25) ?

Answers were Sorted based on User's Feedback



How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ..

Answer / obularaju

10 EMP-NAME.
49 EMP-NAME-LEN PIC S9(4) USAGE COMP.
49 EMP-NAME-TEXT PIC X(25).

Is This Answer Correct ?    19 Yes 0 No

How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ..

Answer / kb

Can some one please explain this ... what difference it makes ...

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More DB2 Interview Questions

What keyword does an SQL SELECT statement use for a string search?

2 Answers  


how can u retrieve the data from null values using applicaion program.

3 Answers   TCS,


What is runstats db2?

0 Answers  


how to resolve -811 sqlcode .give clear explaination

3 Answers   IBM,


Write a query to extract first 5 characters of a name in the column Stud_Name?

1 Answers   RBS,






Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time?

1 Answers  


Where is the access path logic created by the DB2 Optimizer stored?

1 Answers  


How to get Top 10 Salaries from a Table

11 Answers   Accenture, HTC,


How does a cursor work?

0 Answers  


What is the maximum size of a char data type in db2?

0 Answers  


query to just fetch first matching row and stop execution. once one matching row is found ..no more records should be checked.. if the first record is matching.. the query must stop

2 Answers   IBM,


How do you do the EXPLAIN of a dynamic SQL statement?

2 Answers  


Categories