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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a bind in db2?

594


How do you find the maximum value in a column in db2?

652


How to access db2 tables in mainframe?

615


How to check sequence on a table in db2?

602


What are the benefits of using the db2 database?

664






What is the syntax for seeing the columns and data types of a table in the db2 database?

582


How to create db2 table in mainframe?

637


What is view db2?

627


What does db2 stand for?

602


Can one database have multiple instances?

583


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

707


How to compare data between two tables in db2?

662


How do you concatenate the firstname and lastname from emp table to give a complete name?

605


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

647


What's The Error Code For Unique Index Voilation?

657