Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I have an error in using COP

Status
Not open for further replies.

kurup

Programmer
Jun 1, 2001
32
IN
Hi,

I have an error in using COPY REPLACING statement. I have used COPY REPLACING as below.

01 GNCHDIOS-GROUP-1.
03 GRPROOT.
COPY GNCHDS1C.
03 GRP401A.
05 PRE401A.
COPY PROXX REPLACING ==:XX:== BY ==401A==.

Inside copybook PROXX the variables are defined at level 10.

Upon compilation this copy book(PROXX) is not getting expanded and iam getting error for the copybook variables in the program.
Can u please correct me...

Thanks
Kurup
 
Kurup,
the statement looks OK although I'm not too sure about the colons. What's the actual error message you're getting?
 
Hi kurup,

It might be helpful to show us the copbook code, too.

Does it have stmts of the form:
Code:
10 :xx:-fld-a  pic x.
It's also interesting that I can't remember ever using (or seeing) a data name starting w/a numeric, but I don't see anything in the manual prohibiting it.

Regards, Jack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top