i have one physical file which is having two logical files.
logical a have unique keyword and logical b doesnt have a
unique keyword. can i give duplicate values while updating
through physical file. if no why?

Answers were Sorted based on User's Feedback



i have one physical file which is having two logical files. logical a have unique keyword and logi..

Answer / syam

You cannot update Physical file or Logical File.
duplicate key

Is This Answer Correct ?    15 Yes 1 No

i have one physical file which is having two logical files. logical a have unique keyword and logi..

Answer / rajesh

While updating the Physical file, it looks for constraints
on all the all logicals defined over it.

Is This Answer Correct ?    14 Yes 1 No

i have one physical file which is having two logical files. logical a have unique keyword and logi..

Answer / sumit gupta

Whenever you update physical file, then it checks for all
file level keyword that specifies on logical file if any.
If no logical then simple update will perform.
In this, before updating your physical file temporary
program will get the UNIQUE specified as file level keyword
on 1 logical file.
And thus it through error, Duplicate key error in another
database member

Is This Answer Correct ?    1 Yes 0 No

i have one physical file which is having two logical files. logical a have unique keyword and logi..

Answer / ankur

no u can not give duplicate value while updating through
physical file. Because logical file based on physical file
and having accesspath that is base on physical file
accesspath.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More IBM AS400 AllOther Interview Questions

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.

2 Answers  


during input operation which indicator position is seton if there is a record lock?

1 Answers   IBM,


what does opcode post do ?

1 Answers   IBM,


how many printer files can be defined in f specs ?

1 Answers   IBM,


When does the DFT keyword in PF be used?

1 Answers  


What are all the compiler directive statements?

1 Answers  


which are the figurative constants used in rpg?

0 Answers   IBM,


how do you read data area in an rpg program?

1 Answers   IBM,


What is access path in as400?

0 Answers  


define the purpose of the *cat function?

1 Answers   IBM,


An rpg program is processing an openquery file.The file is declared in update mode in F spec.Can we update this file? Please explain?

3 Answers  


what is the difference between udate and the system date?

1 Answers   IBM,


Categories