View previous topic :: View next topic
|
Author |
Message |
shivsingla Warnings : 1 New User
Joined: 14 Jul 2006 Posts: 15 Location: New Delhi
|
|
|
|
hi All
in Embedeed sql(cobol+sql) . is this necessary to include table name in cobol programe. if i dont want to include this using include statement . then how it is going to work. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
in Embedeed sql(cobol+sql) . is this necessary to include table name in cobol programe. if i dont want to include this using include statement . then how it is going to work. |
Are you misreading between table and DCLGEN here. If yes, then removal of INCLUDE DCLGEN would cost you to declare host variables definitions hard coded in the program itself. |
|
Back to top |
|
|
shivsingla Warnings : 1 New User
Joined: 14 Jul 2006 Posts: 15 Location: New Delhi
|
|
|
|
hi all,
yes i m taking abt include dclgen in the table, if i donot want to include in cobol program , then waht will happen, is there any other way to do it. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Shivsingla,
As answer prev by Priyesh u have to declare host variable defination hard codeed in ur program. |
|
Back to top |
|
|
shivsingla Warnings : 1 New User
Joined: 14 Jul 2006 Posts: 15 Location: New Delhi
|
|
|
|
thanx all |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Hi,
I think while pre-compilation, table columns are checked with the DCLGEN Columns. If any column name is not mentioned correctly then compiler will give error.
If DCLGEN is not included this error will occur in Run time. |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Thats right, DCLGEN is just a mapping between DB2 fields and cobol variablaes, so that your COBOL program understands and identifes DB2 fields properly.
Just have a look into any of your DCLGEN member, it would serve enough to understand the things. |
|
Back to top |
|
|
|