Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we use Copy DCLGEN instead of Include

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Can we use Copy DCLGEN instead of Include
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: 2360
Location: Israel

PostPosted: Tue Nov 07, 2006 5:13 pm    Post subject:
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: 755
Location: Germany

PostPosted: Tue Nov 07, 2006 5:18 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us