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

Increase the column length and upload db2 table


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

New User


Joined: 01 Jun 2006
Posts: 23
Location: Sinagpore

PostPosted: Tue Oct 21, 2008 9:06 am
Reply with quote

Hi,

I have a table A.

col1 - lenght dec(4,0)
col2 - lenght dec(2,0)
col3 - lenght dec(3,0)

I need to change the col1 length from 4 to 6.Iam unloading the table A data. Drop and recreate the table A with col1 length as dec(6,0).

But while uploading the table A, i hv a problem coz length of col1 in syspunch is 4.In my new table col1 length is dec(6,0).

How to upload the data into the new table ?

Thanks in Advance
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Oct 21, 2008 10:07 am
Reply with quote

Hi,

How do you "upload" your table, using BMCADM ?
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Tue Oct 21, 2008 10:27 am
Reply with quote

1. you could have unloaded data as DEC(6,0). Its not UPLOAD. It sounds good to say LOAD.!!

I would say load back the data and again unload data as dec(6,0). I dont know if there are otherways to convert the data.
Back to top
View user's profile Send private message
venkatm99

New User


Joined: 01 Jun 2006
Posts: 23
Location: Sinagpore

PostPosted: Tue Oct 21, 2008 10:53 am
Reply with quote

Hi vini_srca

How to unload the data as dec(6,0) when the coloumn lenght is dec(4,0)?
Back to top
View user's profile Send private message
venkatm99

New User


Joined: 01 Jun 2006
Posts: 23
Location: Sinagpore

PostPosted: Tue Oct 21, 2008 10:54 am
Reply with quote

@ Anuj ,

We are using "IKJEFT1A" to "load" the data.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Oct 21, 2008 3:09 pm
Reply with quote

I'm not on Mainframes, so can't check how to do it with IKJEFT1A. However, you can try two options..

1. If you have QMF, load a records using QMF in the new table (one with length 6)
2. Unload this new value, this will give a Load card with desired length.

And, this process seems to be an ad-hoc requirement, if so, you can edit the SYSPUNCH values, update it & use for new table.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Load new table with Old unload - DB2 DB2 6
Search our Forums:

Back to Top