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 / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the necessary keyword for non-join logical file?

1169


Write a CL program which will run a batch job at 1 am every night

671


maximum number of subfiles that can defined in a rpg program for one display file is?

1030


how can you detect and handle a record lock situation?

1215


how many specifications are there in rpg/400? What are they?

1094






What is the use of jdftval in as400?

911


how can you check for a records existence without causing and i/o (chain/read)?

1292


what is sflrolval?

652


which of the following operations does not zero the field flda defined as 4,0?

703


WHAT is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?

2035


what is subfile?

948


what is join logical file?

1049


what is the clp command to access a query/400?

1357


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1736


what are all the contents of subfile?

989