Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


How can i keyed a flat file in RPGLE

Answers were Sorted based on User's Feedback



How can i keyed a flat file in RPGLE..

Answer / sd

Can be done through RRN.

Is This Answer Correct ?    16 Yes 8 No

How can i keyed a flat file in RPGLE..

Answer / syam

Sd's answer is correct.

FMASTER IF F 96 96 DISK A
F KRECNO RRN

Is This Answer Correct ?    7 Yes 0 No

How can i keyed a flat file in RPGLE..

Answer / rajesh

YOU CAN CREATE A LF WITH KEY

R PF1 PFILE(PF1)
K PF1

Is This Answer Correct ?    7 Yes 1 No

How can i keyed a flat file in RPGLE..

Answer / jvn

Declaration of file
F abcd UF A F 100 10 A I DISK
KEYLOC(1)
file name pgm desc Record len Key len &type

The above file type declaration means file 'ABCD' is a
program described file of record length 100, key field
length 10 of type character and the file is indexed with
the position of key field starting from position 1 as per
the KEYLOC value.

I abcd xy
I 1 11 keyfield_name

They key field can be subsequently defined as per the
example above.

Is This Answer Correct ?    5 Yes 0 No

How can i keyed a flat file in RPGLE..

Answer / surendra y mudliar

Flat file can be read using RRN for random access.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More RPG400 Interview Questions

can anybody help me that what is the procedure of debugging the service program?

3 Answers   CSC,


how we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?

8 Answers  


suppose a job is running for 15 minutes after that it goes to message wait? what are the impact analysis

1 Answers  


How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

6 Answers   CSC,


How to select highest score of each subject or how to select highest income of every month?

0 Answers  






Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


what is ment by "MDT"

2 Answers   TCS,


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

1 Answers   CSC,


What is the RPG cycle?

3 Answers   CSC,


Can anybody tell me, does CL/400 handle LEVEL check while running the CL program....? plz share your experience...

4 Answers  


can i use unique key in LF

3 Answers   TCS,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


Categories