View previous topic :: View next topic
|
Author |
Message |
nehajain55
New User
Joined: 15 Nov 2010 Posts: 2 Location: Pune
|
|
|
|
Hi,
I have 2 input file and a output file and all uses same copybook.There is a field ABC which is of length 10 and I need last 5 characters of it from both the input file.So,The move statement I used is :
Move ABC(5:5) OF IP1 TO WS-IP1-ABC
Move ABC(5:5) OF IP2 TO WS-IP2-ABC
But on compiling its giving error saying the field ABC is not a uniquely defined field.
Would anyone help me out to sort out this error.Please |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
When you have a question, start a new topic for your question and post in the appropriate part of the forum rather than posting a reply to some unrelated questino. . .
This question does not sound like an interview question and is really not about reference modification. . .
The compiler error is because you have used a duplicate field name and not qualified it. |
|
Back to top |
|
|
nehajain55
New User
Joined: 15 Nov 2010 Posts: 2 Location: Pune
|
|
|
|
Thnx for reply but that was actually a reference modification query and I got the answer :
The statement should be:
Move ABC OF IP1(5:5) TO WS-IP1-ABC |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
But on compiling its giving error saying the field ABC is not a uniquely defined field. |
the message You received is NOT related to reference modification! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Thnx for reply but that was actually a reference modification query and I got the answer |
Sorry, but just because you used reference modification does not make the question/problem a reference modification issue. . .
As i mentioned originally,
Quote: |
The compiler error is because you have used a duplicate field name and not qualified it. |
If you really, really believe the problem was due to something other than proper qualification, i suspect there will be many times when you get "stuck". . . |
|
Back to top |
|
|
|