Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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 How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts Image copy after Online reorganization. lind sh IMS DB/DC 0 Tue Jan 30, 2018 9:58 pm
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us