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

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

1 Answers   TCS,


If the main program has only cobol statements and subprogram has the db2 statements what is the procedure for precompilation. for which program we need to do the precompilation

1 Answers   IBM,


What is dclgen in db2?

0 Answers  


Is db2 relational database?

0 Answers  


I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?

0 Answers  






Which catalog tables contain authorization information?

1 Answers  


i know the stpes 2 create an executable CICS/DB2 cobol code. 1. DB2 Precompiler converts the SQL Statements into COBOL API statements and creates another member with Acess plans. CodeA results in CodeB (code with API calls) & CodeC ( Access Plans ) 2.Code B is compiled/linked 2 create an exceutable.(codeE) 3.Now CodeC is binded to the database on which CodeE will be run. Can somebody provide me the sample JCLs for precompile/compile/link/bind.

0 Answers  


what's the best lock size that you could use when you create a tablespace?

2 Answers   IBM,


Explain correlated sub-queries.

0 Answers  


what is the total syntax for fetch ? can any one please give me all the details of fetch ? thx

2 Answers   IBM,


What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?

4 Answers  


How does db2 sample database connect?

0 Answers  


Categories