How to create a key field for a logical file inside RPG?

Answer Posted / rajesh n

In D Spec use KFLD and key field name.

Example:

KFLD Fld1.

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is file information data structure?

1372


How can we know running job is batch or interactive?

654


what is program status data structure?

1385


How to declare the pull button in AS/400..

1878


what is data area and how it is used in rpg program ?

756






1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

493


how can you display specific subfile page on the screen in unequal subfile?

673


how do I preserve and clean the array?

671


What is a record lock error?

1265


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

751


What is the purpose of record level identifier?

728


What is ment by record level identifier?

654


what is a rpg?

701


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5403


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

548