| View previous topic :: View next topic |
| Author |
Message |
karthikbabudh Beginner

Joined: 29 Apr 2005 Posts: 10 Topics: 6
|
Posted: Wed May 04, 2005 4:54 am Post subject: Diff b/w ++include and % include in PL/1 |
|
|
Hi,
Can anyone tell me the diff between ++include and %include macros in PL/1. _________________ Regards,
Karthik Babu. |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12395 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
karthikbabudh Beginner

Joined: 29 Apr 2005 Posts: 10 Topics: 6
|
Posted: Wed May 04, 2005 7:18 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12395 Topics: 75 Location: San Jose
|
Posted: Wed May 04, 2005 7:36 am Post subject: |
|
|
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 |
|
 |
dneufarth Beginner
Joined: 05 Apr 2005 Posts: 11 Topics: 0
|
Posted: Wed May 04, 2005 3:38 pm Post subject: |
|
|
++INCLUDE may be the 'copy' statement for PANVALET source code management product.
Dave |
|
| Back to top |
|
 |
karthikbabudh Beginner

Joined: 29 Apr 2005 Posts: 10 Topics: 6
|
Posted: Wed May 04, 2005 10:50 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12395 Topics: 75 Location: San Jose
|
Posted: Thu May 05, 2005 5:43 am Post subject: |
|
|
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.
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12395 Topics: 75 Location: San Jose
|
Posted: Thu May 05, 2005 10:23 am Post subject: |
|
|
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 |
|
 |
|
|
|