MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Diff b/w ++include and % include in PL/1

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
karthikbabudh
Beginner


Joined: 29 Apr 2005
Posts: 10
Topics: 6

PostPosted: Wed May 04, 2005 4:54 am    Post subject: Diff b/w ++include and % include in PL/1 Reply with quote

Hi,
Can anyone tell me the diff between ++include and %include macros in PL/1.
_________________
Regards,
Karthik Babu.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12395
Topics: 75
Location: San Jose

PostPosted: Wed May 04, 2005 5:11 am    Post subject: Reply with quote

karthikbabudh,


Check this link . In COBOL it is COPY statement and in PLI it is %include

http://mvsforums.com/helpboards/viewtopic.php?t=175&highlight=include+copy

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
karthikbabudh
Beginner


Joined: 29 Apr 2005
Posts: 10
Topics: 6

PostPosted: Wed May 04, 2005 7:18 am    Post subject: Reply with quote

Hi Kolusu,

I am asking that in PL/1.In a pl/1 pgm i found ++include and also %include macros.i am not asking about cobol verbs.
_________________
Regards,
Karthik Babu.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12395
Topics: 75
Location: San Jose

PostPosted: Wed May 04, 2005 7:36 am    Post subject: Reply with quote

karthikbabudh,

Did you fail to read this statement in my post?

Quote:

In COBOL it is COPY statement and in PLI it is %include


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dneufarth
Beginner


Joined: 05 Apr 2005
Posts: 11
Topics: 0

PostPosted: Wed May 04, 2005 3:38 pm    Post subject: Reply with quote

++INCLUDE may be the 'copy' statement for PANVALET source code management product.


Dave
Back to top
View user's profile Send private message
karthikbabudh
Beginner


Joined: 29 Apr 2005
Posts: 10
Topics: 6

PostPosted: Wed May 04, 2005 10:50 pm    Post subject: Reply with quote

Hi Kolusu & dneufarth,

I think you didn't get my query.
For your reference i am sending you the pl/1 sample code.

DCL 1 PLNTROOT DEF IOAREA,
%INCLUDE PLNTROOT;
-----------
-----------
DCL 1 RPG302 STATIC,
++INCLUDE BSCF302

this code is taken from the same program which contains both ++ and %.
My question is why they are using ++ for some copy books and % for some copy books.
_________________
Regards,
Karthik Babu.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12395
Topics: 75
Location: San Jose

PostPosted: Thu May 05, 2005 5:43 am    Post subject: Reply with quote

karthikbabudh,

*Sigh*! If you have read the link which was provided to you would have got the answer. Since you are not willing to read it I will explain it once again.

The %INCLUDE statement is used to incorporate external text into the source program.
Code:

%INCLUDE PLNTROOT;


BY doing so the contents of PLNTROOT are copied into the source program when the program is compiled.

++INCLUDE is a feature of some CA products(panavalet , Endevor..) which is also used to incorporate external text into source program. The advanatage of this is that the external text is expanded even in browse mode of program unlike %include directive which needs the pgm to be compiled.

so when your Shop purchased the CA products, then they might have started using ++include instead of %include.


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12395
Topics: 75
Location: San Jose

PostPosted: Thu May 05, 2005 10:23 am    Post subject: Reply with quote

You need to Select the EXPAND option (by puting a "Y") to expand the ++includes.

On the panavalet browse screen at the bottom of the screen you will see something like this

Code:

CA-Panvalet Retrieval Options:                           
  CONTROL     ===>                      (If necessary)         
  ACCESS      ===>                      (If necessary)         
  EXPAND      ===>    Y                 (Y/N)                 


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group