rkprasanth_m
New User
Joined: 22 Jun 2006 Posts: 44
|
|
|
|
we have copybooks in my shop with invalid datanames. These invalid characters of data names are being replaced by valid characters in source program by COPY statement.
ex: COPYBOOK
01 :IO:-DATANAME-A.
05 :IO:-DATANAME-B PIC X(01).
88 :IO:-DATANAME-FLAG VALUE 'A'.
In Source:
COPY COPYBOOK REPLACING -:IO:- BY -IO-.
So, The problem is I am unable to XREF the above copybook since the copybook contains invalid characters, in this case it is ':'. I wish to replace the invalid characters. Would you please give a solution for this..
Thanks |
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
It would be a bit of extra work, but if you want to use these copybooks in XREF, you could create a new copylib pds and copy the needed copybooks into it. Once you have the new pds, edit the :io: to io.
Then, you might be able to point XREF at the "clones", while the complile would run against the originals.
I'm not familiar with XREF, but if it has a step before/outside the compiler, you just might be able to do what you want.
If this will work for you, i'd suggest getting rid of the clone library to prevent confusion later. |
|