|
|
| Author |
Message |
obulisankar
New User
Joined: 03 May 2007 Posts: 9 Location: bangalore
|
|
|
|
I'm getting compilation error, when i try using
COPY Copybook1 REPLACING ==WS-TRIAL== BY ==WS-TRIALS==.
Copybook1
01 WS-TRIAL PIC X(5).
Actually the copybook named copybook1 is not getting expanded when i used Replacing option. i'm getting complilation errors for all other varibles used inside the copybook.
Any tips/suggestions would be of great help..... |
|
| Back to top |
|
 |
References
|
Posted: Tue Apr 29, 2008 11:50 am Post subject: Re: Problem in Copybook with Replacing option |
 |
|
|
 |
UmeySan
Senior Member
Joined: 22 Aug 2006 Posts: 624 Location: Germany
|
|
|
|
Hi !
There are certain rules you need to take care of.
Example in Programm:
COPY TBBK206R
REPLACING ==PRE:==
BY ==G6B-==.
Example CopyBook:
01 PRE:GKTO-AZ6-BTAG.
10 PRE:INR PIC S9(4) COMP.
10 PRE:KONTO-ID PIC X(26).
Regards, UmeySan |
|
| Back to top |
|
 |
Anuj D.
Senior Member
Joined: 22 Apr 2006 Posts: 1695 Location: Mumbai, India
|
|
|
|
Hi,
Which product (CHGMAN or ENDEVOUR) do you use to compile program ? |
|
| Back to top |
|
 |
obulisankar
New User
Joined: 03 May 2007 Posts: 9 Location: bangalore
|
|
|
|
Thanks for ur comments...
I'm using CHGMAN for compiling program, COBOL370 is the version i'm using.
Copybook is getting expanded for COPY Copybookname.
If i use COPY Copybookname REPLACING ==TESTA== BY ==TESTB==.
or, COPY Copybookname REPLACING TESTA BY TESTB.
It is not getting expanded, this is the problem i'm facing. |
|
| Back to top |
|
 |
jithumohan
New User
Joined: 31 Jan 2008 Posts: 17 Location: Cochin
|
|
|
|
| Is the copybook is available in the package or it is in any production libraries? |
|
| Back to top |
|
 |
rpuhlman
Active User
Joined: 11 Jun 2007 Posts: 70 Location: Columbus, Ohio
|
|
| Back to top |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1480
|
|
|
|
Hi obuli,
I used "REPLACING WS-TRIAL BY WS-TRIALS" and == ==
and it works OK. |
|
| Back to top |
|
 |
Anuj D.
Senior Member
Joined: 22 Apr 2006 Posts: 1695 Location: Mumbai, India
|
|
|
|
Hi,
| Quote: |
| Copybook is getting expanded |
Where do You "look" for expended copybook, in compile listing or do you expend it in program itself using some macro/tool? |
|
| Back to top |
|
 |
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 1142 Location: At my desk
|
|
|
|
| Quote: |
I used "REPLACING WS-TRIAL BY WS-TRIALS" and == ==
and it works OK. |
It's good for ECOBOL, but maybe not for his level...
Example: enhancing XML output is a good example of full word replacing....... |
|
| Back to top |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1480
|
|
|
|
Replacing words in a copybook has been around for a looong time. Unless he's not using an IBM compiler.
Obuli,
Why don't you give us the environmental info and msg texts, etc.? |
|
| Back to top |
|
 |
|
|