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

difference betwen keywords and opcodes

3 Answers  


RPG/400 faqs?

1 Answers   HSBC,


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

0 Answers  


Can an indexed file be accessed in arrival sequence in RPG?

3 Answers  


If I have a file with 5 record and that file has 2 Key field and I want to read the unique record of the file then how can we achieve it?

1 Answers  






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,


how do I declare a minor?

0 Answers   IBM,


Can a run time array be declare like below with no specified number of elements ? Is it possible ? DFLD_ARRAY 7 DIM() INZ(*blanks) What does this mean ? Does this mean that the number of array elements will be dynamically declared during run time ?

1 Answers   TCS,


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

0 Answers   iGate,


what is a rpg?

0 Answers   IBM,


how can we can we the data decimal error?how can we open such file in support

1 Answers  


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

3 Answers   IBM,


Categories