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

What is significance of a file designated as a Primary file in Rpg400 program....also what's use of secoundry file

1 Answers  


how can i retrieve the field name from display file at run time? Devendra Singh Tomar

3 Answers  


how many variables can we declare in cl pgm?

13 Answers  


what is the rpg system?

0 Answers   IBM,


How can we override a file during runtime in rpg?

0 Answers  






What is the RPG cycle?

3 Answers   CSC,


suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?

1 Answers  


what is edit word and edit code

0 Answers   Cap Gemini,


Write the subfile logic program for the given concept. Load the data to the subfile depends upon the designation where designation is not a key field?

2 Answers   TCS,


Hi, I am getting the error in RPG (All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored.) Please suggest any

2 Answers   Satyam,


How can i keyed a flat file in RPGLE

5 Answers   IBM, Wipro,


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

0 Answers   IBM,


Categories