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

Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


what is program status data structure?

1 Answers   IBM,


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

1 Answers   HCL,


What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?

2 Answers   CGI, Wipro,


Can more than one subfile record be displayed on one line?

7 Answers   IBM,


Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.

1 Answers   CTS, IBM, iGate,


1)how to do date validation in rpg? 2)how to delete dUPLICATE RECORDS?

12 Answers   IBM, Opus,


What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'

2 Answers  


how do I declare a table or array in rpg iv?

0 Answers   IBM,


How do you code file / field renames in ILE RPG?

4 Answers   Accenture, IBM,


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  


i 'm new to as/400.in an interview i was asked this question.give a practical example for passing information or data through local data area. I know only that data area is an object used to store tiny bits of data or it can store one value at a time and it is used to store frequently changing values or datas.thats all i know about data area can any one tell me how local data area and user defined data area are used to pass data between jobs with a example or coding.thanks in advance.

2 Answers   CTS,


Categories