How can i keyed a flat file in RPGLE
Answers were Sorted based on User's Feedback
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 |
Answer / rajesh
YOU CAN CREATE A LF WITH KEY
R PF1 PFILE(PF1)
K PF1
Is This Answer Correct ? | 7 Yes | 1 No |
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 |
Answer / surendra y mudliar
Flat file can be read using RRN for random access.
Is This Answer Correct ? | 5 Yes | 1 No |
difference betwen keywords and opcodes
RPG/400 faqs?
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.
Can an indexed file be accessed in arrival sequence in RPG?
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?
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.
how do I declare a minor?
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 ?
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
what is a rpg?
how can we can we the data decimal error?how can we open such file in support
how can an indexed file be used as arrival sequence in RPG?