View previous topic :: View next topic
|
Author |
Message |
grem
New User
Joined: 06 May 2009 Posts: 14 Location: philippines
|
|
|
|
Hi,
The requirement of my component is that my INPUT 1 will use a DCLGEN of table AADT003
but my component will not use the DB2 table it will just use the DCL for its input layout.
for example the DCLGEN of that table is AAGT003.
should i code
EXEC SQL
INCLUDE AAGT003
END-EXEC
or just a
COPY AAGT003
please help.
thanks! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
in general it will depend on Your source library setup and standards but You/Your support should consider ...
if the program ( any language ) is accessing DB2 tables it will make little/no difference
( the program has to go thru the db2/builtin preprocessor stage )
if the program <is not> a db2 program using the EXEC SQL INCLUDE directive
will put a useless dependence on SQL preprocessing
and it will cause a bit of useless processing and library accesses |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
but keep in mind,
if this is not a db2 program, thus not using any db2 pre-processing,
and you use the copy cobol compiler directive,
the sql ddl statement declaring the table
will cause compiler errors.
and this is just bullshit:
Quote: |
The requirement of my component is that my INPUT 1 will use a DCLGEN of table AADT003
but my component will not use the DB2 table it will just use the DCL for its input layout. |
a dclgen contains both the sql ddl statements and the cobol field declarations.
your requirement is to have a structure equivalent to the cobol field declarations for a row. |
|
Back to top |
|
|
|