Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
regarding sqlca and copy sqlca

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
shriya reddy
Warnings : 1

New User


Joined: 05 Jun 2004
Posts: 45

PostPosted: Tue Jun 08, 2004 1:38 pm    Post subject: regarding sqlca and copy sqlca
Reply with quote

hi

what is the difference between copy sqlca and include sqlca when u are coded in program. i know the two are used for same purpose but please give the exact difference
Back to top
View user's profile Send private message
References
PostPosted: Tue Jun 08, 2004 1:38 pm    Post subject: Re: regarding sqlca and copy sqlca Reply with quote

anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Tue Jun 08, 2004 9:18 pm    Post subject: difference between copy and include
Reply with quote

Hello Shriya,

Generally Copy is used for cobol statements and Include is used for Sql code.

If you give Copy sqlca then it will be expanded in compilation time.

If you give Include Sqlca it will be expanded in precompilation time.

Just think whether Sql statements/variables/code need to be precompiled or compiled.Then you will get the answer for what you asked.

hope you got my point.

Thanks,
Anu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1