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

What is the name of default out queue when user logs inn to syatem with valid profile?

3 Answers   IBM,


Is it possible to call a subfile using CL. IF yes.. kindly help me out with explanation...?

3 Answers  


Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.

2 Answers  


How to print output from openquery in as400 ?

1 Answers   Four soft,


What are the types of identifiers?

0 Answers  






what is an online rpg?

0 Answers   IBM,


What is file identifier where we can use?

0 Answers  


what do you mean by SESSION/DEVOCE ERROR?

1 Answers   IBM,


difference between 1:%found and %equal built function in detail with example .

6 Answers   Polaris,


Setps to create .csv file on IFS folder in AS/400( V4R3)....?

3 Answers   TCS,


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

2 Answers  


how can an indexed file be used as arrival sequence in RPG?

3 Answers   IBM,


Categories