IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we use Copy DCLGEN instead of Include


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
zishankamal

New User


Joined: 07 Apr 2006
Posts: 7

PostPosted: Tue Nov 07, 2006 4:43 pm
Reply with quote

Hi

Can we use

COPY <dclgen-name>

in place of

Exec Sql
Include <dclgen-name>
End-Exec

What are the differences between these two ways of including dclgen in cobol-db2 program.

Thanks
Zishan
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Nov 07, 2006 5:13 pm
Reply with quote

You can't, since DB2's precompiler expands only EXEC SQL statements.

COPY is recognized only by COBOL compiler.

O.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Nov 07, 2006 5:18 pm
Reply with quote

Hi !

If you want to include a CopyBook which includes the DB2-TableFieldDeclarations, you have to use the ExecSqlInclude command.

Regards, UmeySan
Back to top
View user's profile Send private message
mfibm

New User


Joined: 12 Sep 2006
Posts: 13

PostPosted: Tue Nov 07, 2006 5:30 pm
Reply with quote

YA KAMAL.......OFER IS RITE......
..INCLUDE WILL EXPAND AT DA TIME OF PRECOMPILATION AND COPY WILL EXPAND AT DA TIME OF COMPILATION TIME...............IF U USE COPY INSTEAD OF INCLUDE , U WILL GET STRUCK AT THE PRECOMPILATION SATEG ITSELF..........\

LikkI.......
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top