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
 

 

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 Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm


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