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

How to map REDEFINES clause to a DB2 table?


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

New User


Joined: 13 Apr 2007
Posts: 61
Location: Chennai

PostPosted: Wed Jun 13, 2007 1:00 pm
Reply with quote

HI,

I am working to convert an existing VSAM to a DB2 table. The fields in VSAM copybook have to be mapped to corresponding field in DB2 table. But I am not able to map the field which is having REDEFINES clause in its definition to its corresponding field in DB2 table. Can you suggest a way to do the same?

Thanks,
Reni
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Wed Jun 13, 2007 5:33 pm
Reply with quote

REDEFINES is not possible with DB2 .
So you can better use the lowest group field(in the REDEFINE field) as a column so that it will be easy to map .
Back to top
View user's profile Send private message
guruji

New User


Joined: 13 Apr 2007
Posts: 61
Location: Chennai

PostPosted: Wed Jun 13, 2007 5:55 pm
Reply with quote

Hi muthuvel,

I dint get you completely.What did you mean by lowest gp field? Can you please explain with an example?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Jun 13, 2007 5:59 pm
Reply with quote

Elementary item, not group item......
Back to top
View user's profile Send private message
guruji

New User


Joined: 13 Apr 2007
Posts: 61
Location: Chennai

PostPosted: Wed Jun 13, 2007 6:14 pm
Reply with quote

Thank you icon_smile.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts count contained values of several col... DB2 5
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
Search our Forums:


Back to Top