What is the use of DELGEN in DB2? Can we Write the program
with out using it?

Answers were Sorted based on User's Feedback



What is the use of DELGEN in DB2? Can we Write the program with out using it?..

Answer / deepak gairola

DCLGEN(Declaration Genrator) is used to generate DB2
equivalent Cobol Datatypes. We can write a cobol Db2
program without using it but we will have to declare cobol
variables in our Program and for sure it need to be DB2
Equivalent... but it is preffered to use DCLgen as it gives
you the accurate... equivalent... of db2 datatype...and it
enhances the performance no doubt...

For Sql Datatype is Name Varchar(20).
so cobol equivalent is
01 Name.
49 Name-len PIC s9(04) comp.
49 Name-text pic x(2).

Is This Answer Correct ?    9 Yes 1 No

What is the use of DELGEN in DB2? Can we Write the program with out using it?..

Answer / sachin borase

for varchr(40)

cobol eq valent will be

01 var-char

49 length s9(4) comp.
49 text x(20).

Is This Answer Correct ?    2 Yes 0 No

What is the use of DELGEN in DB2? Can we Write the program with out using it?..

Answer / balaganesan p

DCLGEN is used to create the cobol copy book. But it is not
mandatory to use DCLGEN for that. We can hardcode that
cobol variables. For the purpose of reduce the manual
errors we use DCLGEN to create those copy books.

Is This Answer Correct ?    1 Yes 0 No

What is the use of DELGEN in DB2? Can we Write the program with out using it?..

Answer / yuvaevergreen

DCLGEN command is used to create
1.HOST VARIABLES.
2.TABLE DECLARATION.
INFO IS GOT FROM THE CATALOG TBLES.

Is This Answer Correct ?    1 Yes 0 No

What is the use of DELGEN in DB2? Can we Write the program with out using it?..

Answer / venkat

DCLGEN :DCLGEN INCLUDES DB2 TABLE DECLARATION AND HOST VARIABLE STRUCTURE
YES,WE CAN WRITE THE PROGRAM WITH OUT USING DCLGEN

Is This Answer Correct ?    2 Yes 1 No

What is the use of DELGEN in DB2? Can we Write the program with out using it?..

Answer / g.kalyani

DELGEN is a declaration generator to generate the DB2
equivilant COBOL variables . It will improve the
performance of the program. Here only we can give the
NULLIND as 'YES' the automatically when ever null values
are specified in DB2 then it will move SPACES or ZEROS to
the COBOL variables

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More DB2 Interview Questions

What are the contents of dclgen?

0 Answers  


What is the use of commit in db2?

0 Answers  


How to check last update on table in db2?

0 Answers  


SI Stud name Subject Marks Pass/Fail 1 Sham Maths 40 P 1 Sham Physics 50 P 1 Sham Bio 20 F 2 Ram Maths 40 P 2 Ram Physics 50 P 2 Ram Bio 60 P For the above data , write the SQL query for the student who passed in all the subjects . For eg : I want the data of only Ram coz he passed all subjects .

2 Answers   Cognizant,


What is the picture clause of null indicator variable?

0 Answers  






what is the Foreign key? explain?

2 Answers  


How does db2 sample database connect?

0 Answers  


Could you please let me no the query for below I have table name xyx under this there is column name called employee name which starts from 100th column ends 120th column,now i want to replace only column from 101 to 104 which contains ABCS to replace with PQRS for all records which comes beetween 101 to 104 ..how to write query for this..

1 Answers   HSBC,


What if we try to insert the base table through updatable view , but failed to give a column value which is defined as NOT NULL.

1 Answers   Cap Gemini,


Cursors can be declared in both working-storage & procedure division, Agreed. But is there any difference? If could you please suggest what is the difference. TIA

8 Answers   CGI, Wipro,


What do you need to do before you do EXPLAIN?

1 Answers  


What is the function of the Data Manager?

2 Answers  


Categories