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 we will read call stack?

4 Answers  


What are the commands that can be executed in CLP but not in RPG? Why?

1 Answers   CSC,


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

0 Answers  


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  


list down and describe the sub systems vailable

5 Answers   IBM,






RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.

1 Answers   IBM,


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,


I have a PF(ABC)with no key fields. PF(ABC)have 2 fields (cusno and cusname). Please let me know how can i read the cusno = 1150 directly from PF in CL and RPG program(Without creating the LF and without reading the complete file and then compare 1150)

3 Answers   Opus,


RPG/400 faqs?

1 Answers   HSBC,


can I touch the array during treatments?

0 Answers   IBM,


can i use UPDDTA command in rpg program in which contains a file

1 Answers   TCS,


I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....

1 Answers  


Categories