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
what is the necessary keyword for non-join logical file?
Write a CL program which will run a batch job at 1 am every night
maximum number of subfiles that can defined in a rpg program for one display file is?
how can you detect and handle a record lock situation?
how many specifications are there in rpg/400? What are they?
What is the use of jdftval in as400?
how can you check for a records existence without causing and i/o (chain/read)?
what is sflrolval?
which of the following operations does not zero the field flda defined as 4,0?
WHAT is STORED PROCEDURE CONCEPT IN AS400 WITH EXAMPLE?
what is subfile?
what is join logical file?
what is the clp command to access a query/400?
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)
what are all the contents of subfile?