Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can we update the field size in DB2?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Husna

New User


Joined: 02 Jun 2006
Posts: 49

PostPosted: Wed Sep 27, 2006 9:25 am    Post subject: How can we update the field size in DB2?
Reply with quote

Hi all,

In DB2 we need to update the field size from 18 to 26? How can we do the same? What will happen (in subprograms) while doing the same? Where we need to increase the field size (In copybook or...)? Please give me brief description?
Back to top
View user's profile Send private message

cj10

New User


Joined: 18 Sep 2006
Posts: 9

PostPosted: Wed Sep 27, 2006 11:34 am    Post subject:
Reply with quote

By updating field size, do you mean increasing the length of a column size from 18 to 26 chars?

Assuming the above, in this case, the DBA will increase the column length using ALTER TABLE command. Generally, we do not have such privileges.

Once we have the modified column length in the table, we can re-generate the DCLGEN to have modified host variable declarations. The same will be used in the program & sub-programs. If we have used any working storage variables for any of the modified columns for some processing, then those variables have to be modified to reflect the column length changes.

Corrections Welcome !!!!!!!!!!
==========================================================================
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us