can we use INCLUDE instead of COPY in cics ?



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

can we use INCLUDE instead of COPY in cics ?

Postby shabi » Tue Aug 24, 2010 12:08 am

Hi!
While we r working with MAPS IN cobol programming , we use COPY to copy the symbolic map variables into our working-storage section.Instead of that can i use INCLUDE over there ?
shabi
 
Posts: 14
Joined: Sat Aug 21, 2010 8:38 pm
Has thanked: 0 time
Been thanked: 0 time

Re: can we use INCLUDE instead of COPY in cics ?

Postby Robert Sample » Tue Aug 24, 2010 12:12 am

If you search the COBOL manual, you will not find INCLUDE listed as a reserved word. Since it is NOT part of COBOL, how do you plan on using it to copy in the map source during the program compile?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: can we use INCLUDE instead of COPY in cics ?

Postby krishnanramesh » Sun Oct 03, 2010 12:52 pm

Include is a keyword for process sql query used in our cics pgm. but copy is used to access the declaration which locate other than main pgm.
krishnanramesh
 
Posts: 4
Joined: Thu Jun 10, 2010 1:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: can we use INCLUDE instead of COPY in cics ?

Postby NicC » Sun Oct 03, 2010 8:28 pm

Yes, INCLUDE is a keyword for the SQL preprocessor (and PL/1 uses the same to include the equivalent of COBOL copybooks) and COPY is the COBOL keyword for copying code from an external source.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: can we use INCLUDE instead of COPY in cics ?

Postby dick scherrer » Sun Oct 03, 2010 10:21 pm

Hello,

"INCLUDE" is sometimes used to expand common code before the compilation rather than during the compilation. Once somewhat common, i see this less and less.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: can we use INCLUDE instead of COPY in cics ?

Postby sundarmailam » Thu Oct 07, 2010 1:27 pm

hi

U should not use INCLUDE instead of Copy. Because Copy statement will be included the variables at the compile time but the include statement will be included at run time. here we only compile the cobol program. so u should not use
sundarmailam
 
Posts: 1
Joined: Thu Oct 07, 2010 1:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: can we use INCLUDE instead of COPY in cics ?

Postby NicC » Thu Oct 07, 2010 4:45 pm

include statement will be included at run time.


Are you sure, or are you just making it up? I have just looked at the COBOL Language Reference manual anf there is no mention of an INCLUDE keyword.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post