IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

need help in copybook


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jitu852

New User


Joined: 30 Apr 2007
Posts: 27
Location: Hyderabad

PostPosted: Wed May 28, 2008 7:44 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed May 28, 2008 7:59 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed May 28, 2008 10:21 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed May 28, 2008 10:36 pm
Reply with quote

You could create the copybook without the 01 level.
Back to top
View user's profile Send private message
jitu852

New User


Joined: 30 Apr 2007
Posts: 27
Location: Hyderabad

PostPosted: Thu May 29, 2008 11:48 am
Reply with quote

i am grateful to all of u for reply....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Trying to change copybook in online c... CICS 4
No new posts Help to Filter File Manager Copybook ... DFSORT/ICETOOL 14
No new posts Need to add field to copybook, proble... COBOL Programming 14
No new posts Recompiling programs after a copybook... COBOL Programming 1
Search our Forums:

Back to Top