Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / prabhu

Yes, After adding the key field try CHGPF.

I believe adding key fields and CHGPF will not change the record identifier so here no need to recompile your programs.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More IBM AS400 AllOther Interview Questions

How are the objects stored on AS/400?

1 Answers  


using dfu, user will be able to ___________ from physical file?

0 Answers   IBM,


What is the use of OVRPRTF ?

1 Answers  


what is rpg fixed logic cycle?

0 Answers   IBM,


How to change file attributes such as size, file wait time, record wait time etc., permanently?

1 Answers  


which are the figurative constants used in rpg?

0 Answers   IBM,


What is the use of OVRDBF ?

1 Answers  


what are the various types of device files?

1 Answers   IBM,


what is overlay?

0 Answers   IBM,


What is Group Job?

1 Answers  


What is the use purpose of CRTCMD?

1 Answers  


Can be OVRDBF command mentioned after OPNQRYF command in CL?

1 Answers  


Categories