Group,
When running the sql command: ALTER TABLE mylib/mytable DROP COLUMN mycolumn, I continually receive the SQL Error SQL0952. Everything that I have found indicates that I should be able to DROP COLUMN with no problems, but the only way I could get this to work for me was the following solution:
iSeries Commnad - ADDRPYLE SEQNBR(1500) MSGID(CPA32B2) RPY(I)
Then with my script, I include:
CHGJOB INQMSGRPY(*SYSRPYL)
ALTER TABLE.......
DROP COLUMN.........
With any script that I want to "drop column", I am needing to include the CHGJOB command. We are on version V6R1 with our iSeries, is this really the way I need to be dropping columns with sql?? I have tested the drop columns on tables with & without data, in both cases, I receive the SQL0952 error.
Any suggestions will be appreciated!!
When running the sql command: ALTER TABLE mylib/mytable DROP COLUMN mycolumn, I continually receive the SQL Error SQL0952. Everything that I have found indicates that I should be able to DROP COLUMN with no problems, but the only way I could get this to work for me was the following solution:
iSeries Commnad - ADDRPYLE SEQNBR(1500) MSGID(CPA32B2) RPY(I)
Then with my script, I include:
CHGJOB INQMSGRPY(*SYSRPYL)
ALTER TABLE.......
DROP COLUMN.........
With any script that I want to "drop column", I am needing to include the CHGJOB command. We are on version V6R1 with our iSeries, is this really the way I need to be dropping columns with sql?? I have tested the drop columns on tables with & without data, in both cases, I receive the SQL0952 error.
Any suggestions will be appreciated!!
Comment