View previous topic :: View next topic
|
Author |
Message |
jitu852
New User
Joined: 30 Apr 2007 Posts: 27 Location: Hyderabad
|
|
|
|
i use the same copy book 2 times in a simple cobol program but
it is giving the uniqueness error so i use replacing option with it even though it is not worked; so i add one more leve before it (means two levels i.e 01 LEVEL and 02 LEVEL) then it work fine i want to know the logic behind it
is any rule for using same copybook more than one time in program....
please help.. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
You must be able to uniquely identify the individual data items. If you use the same copybook more then once (with out the replacing option) then you will not be able to identify the data items. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
You need to either use the replacing (better) or define a unique level (worse), no way around it.....
check out Uniqueness of reference.... |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
You could create the copybook without the 01 level. |
|
Back to top |
|
|
jitu852
New User
Joined: 30 Apr 2007 Posts: 27 Location: Hyderabad
|
|
|
|
i am grateful to all of u for reply.... |
|
Back to top |
|
|
|