View previous topic :: View next topic
|
Author |
Message |
obulisankar
New User
Joined: 03 May 2007 Posts: 20 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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 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 Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 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: 20 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: 30 Location: Woodland Hills, CA
|
|
|
|
Is the copybook is available in the package or it is in any production libraries? |
|
Back to top |
|
|
rpuhlman
New User
Joined: 11 Jun 2007 Posts: 80 Location: Columbus, Ohio
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi obuli,
I used "REPLACING WS-TRIAL BY WS-TRIALS" and == ==
and it works OK. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 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: 2146 Location: At my coffee table
|
|
|
|
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: 1592
|
|
|
|
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 |
|
|
|