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
 
DROP A COLUMN FROM THE TABLE( what restricts that )

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

New User


Joined: 15 May 2006
Posts: 20
Location: chennai

PostPosted: Wed May 17, 2006 12:17 pm    Post subject: DROP A COLUMN FROM THE TABLE( what restricts that )
Reply with quote

DB2 dosent allow deleting a column from the table . why is it so. I would like to what actually restricts from doing that .
Back to top
View user's profile Send private message

hariavinash

New User


Joined: 04 Jan 2006
Posts: 64

PostPosted: Thu May 18, 2006 6:19 pm    Post subject:
Reply with quote

you can DROP a table only.
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Mon Jul 03, 2006 12:28 pm    Post subject: Hi
Reply with quote

1.U have to create table first with dropped column defenition.
2.Unload data using PARMS as SQL usnig DSTIUAL utility excluding the
row that u dont want
SELECT EMAPNAME,SALRY...
FROM TABLE
WHERE ...


3.INSERT that data to the new table using this unloaded data by using the same Utiltity.

4.DROP original Table.

I assume u dont have any Constraits set up in the parent table.
-------
2.Mapfail occurs when user not enters any data and without that press Function keys. For this to avoid easiset way is to always set the MDT set irrespective of whether user enters some data or not.

Otherwise u have to check Mapfail condition after receieving the map ...failing to do so would terminate the task with an abnormal end.

-Han
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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm

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