Is it possible to add an keyfield or field to an Physical file without changing its file identifier.

Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.

Answer Posted / vivek dwivedi

You can add field in file using sql. Alter table as below..

ALTER TABLE File_Name ADD COLUMN Field_Name SMALLINT NOT NULL DEFAULT 0

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how may a cgi control duplicate inputs?

595


define subsystem?

1017


how you will find an error which is not in the first page of the subfile without using rolldown key?

547


what are different types of substems?

1333


what is the purpose of data structure?

1003






What is program status data structure(psds) in as400?

599


what is *inzsr used for?

1461


how can I give more performance to some selected pages?

608


what is a physical file?

992


difference between view and index ?

699


define what a data area is along with a brief example of what it may be used for?

953


how do you specify the number of records to roll in a subfile ?

1230


which are control break logic indicators?

634


how does the runqry show the output?

877


what opcode could be used to test an alphanumeric field for all numeric values?

1062