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

Answers were Sorted based on User's Feedback



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

Answer / hello

first correct ur question buddy

Is This Answer Correct ?    11 Yes 0 No

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

Answer / renjith

you can use KLIST in RPG program

Is This Answer Correct ?    11 Yes 5 No

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

Answer / rajesh n

In D Spec use KFLD and key field name.

Example:

KFLD Fld1.

Is This Answer Correct ?    5 Yes 6 No

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

Answer / sekhar

use LikeRec(RECFMT:*KEY)

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More RPG400 Interview Questions

how to find whether a date format is valid or not in RPG400 not in RPGILE.Can you please write the coding for this sir,i'm new to AS400.Please help.

2 Answers   iGate,


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

0 Answers  


As400 Command to find the Name of the Program to which a Particular Module is Bound..? Ex: IC210AMR (*MODULE) is bound with Other Modules which Forms Program Object as IC210ABP(*PGM) . As400 Command to find the IC210ABP Using IC210AMR..? Thanks

5 Answers   CTS,


check existence of one record without using chain or read?

1 Answers   IBM,


How can we receive values from a called procedure in RPG?

1 Answers  






The RP program is displaying records 11 times .But there are 10 records in a pf.(ie last record is displayed twice).How to display records only 10 times?

5 Answers  


1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?

1 Answers   NetCracker,


Errors in Sql query will be in which state?

1 Answers  


can anyone say,what is the use of operation extended H/N/P?

2 Answers  


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?

1 Answers   TCS,


Categories