How do you do indexing in a physical file?

Answers were Sorted based on User's Feedback



How do you do indexing in a physical file?..

Answer / rizwan

Indexing is nothing but keying a Physical File.
If you specify a key field for a Physical file,then the
Physical file is referred as Indexed Physical File Or Keyed
Physical File.

Is This Answer Correct ?    8 Yes 0 No

How do you do indexing in a physical file?..

Answer / ken

Set key order in PF.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More RPG400 Interview Questions

suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .

4 Answers   CSC,


How to print Superscript / Subscript from RPG400

1 Answers  


How to declare the dynamic(run time) array in rpgle? can you please give example

2 Answers   Polaris,


what is importance of 'MAPFLD' IN OPNQRYF FILE ?

2 Answers  


what is program status data structure?

1 Answers   IBM,






What is the compilation option that has to he specified while compiling an RPC program which uses a file having date data type field?

3 Answers   HSBC, IBM,


If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.

3 Answers  


A rpg or clp command to find if the file field is defined as a character or numeric field.

1 Answers   IBM,


Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

0 Answers  


What is the difference between copybooks and subprocedures in as400?

0 Answers  


Categories