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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts More than 1 Include criteria for sing... Roy Ware SYNCSORT 6 Wed Sep 13, 2017 11:45 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

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