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
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.