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

which SQL comment successfully removes uncommitted changes from a DB2 database A) rollback B) delete C) drop D) decommit

2 Answers   Accenture, Wipro,


What are the four lockable units for DB2?

1 Answers  


What is an alias?

3 Answers  


How will you delete duplicate records from a table?

7 Answers   Google,


What is null indicator in db2?

0 Answers  


Select empno, sal from emptbl where empno < 101.By this query can we fetch first 100 recs? where empno is primary key.It won't throw -811 error? if it wont,then what is use of cursor technique while fetching first 100 recs. Please need more clarification.

2 Answers  


What is the error code -803 ?

3 Answers  


What Utility is used to migrate DB2 from one release to the next?

1 Answers  


How can you quickly find out the number of rows updated after an update statement?

1 Answers   CSI, CTS,


what is differnece between DROP TABLE & DELETE TABLE .

4 Answers   Cap Gemini,


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

0 Answers  


is it possible to get -811 error when you use cursors. why?

2 Answers   IBM,


Categories