Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need Guidance regarding UPDATE query Poha Eater DB2 3 Mon Feb 12, 2018 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us