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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am


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