logical file with reade
2 posters
Page 1 of 1
logical file with reade
I'm reading a logical file with READE.
In which order the records with the same key field value will appear?
Is there a guaranty that the records with the same key field value will be read in a sequential order i.e. how they are situated in the physical file?
Regards,
Muthuraman
In which order the records with the same key field value will appear?
Is there a guaranty that the records with the same key field value will be read in a sequential order i.e. how they are situated in the physical file?
Regards,
Muthuraman
muthuraman- Posts : 42
Join date : 2009-08-28
Re: logical file with reade
Hi,
I hv a PF -File1 , upddta as following order
100 AAAA
101 BBBB
100 CCCC
102 DDDD
100 EEEE
I hv a LF-file2,without using any keywords like LIFO...
From RPG
Codings:
Ffile2 IF E K DISK
C *LOVAL SETLLfile2
C READEfile2 31
C *IN31 DOWEQ*OFF
C EMPCDE DSPLY
C EMPNAM DSPLY
C READEfile2 31
C ENDDO
C SETON LR
Then it wil read the sequential records with the same order oly as it is entered in PF-file1...
AS follows:
100 AAAA
100 CCCC
100 EEEE
Ok if i use LIFO in my LF-File2 then the records will be displayed as follows,
100 EEEE
100 CCCC
100 AAAA
I hv a PF -File1 , upddta as following order
100 AAAA
101 BBBB
100 CCCC
102 DDDD
100 EEEE
I hv a LF-file2,without using any keywords like LIFO...
From RPG
Codings:
Ffile2 IF E K DISK
C *LOVAL SETLLfile2
C READEfile2 31
C *IN31 DOWEQ*OFF
C EMPCDE DSPLY
C EMPNAM DSPLY
C READEfile2 31
C ENDDO
C SETON LR
Then it wil read the sequential records with the same order oly as it is entered in PF-file1...
AS follows:
100 AAAA
100 CCCC
100 EEEE
Ok if i use LIFO in my LF-File2 then the records will be displayed as follows,
100 EEEE
100 CCCC
100 AAAA
soundhar- Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai
Similar topics
» What are the reasons a logical file may be "dropped" during the File definition load process?
» Do the multi format logical file need to have same key field attributes for each record format? what is the significance of K *None in such Logical files?
» Physical File & Logical File
» Phyical File & Logical File.
» Multiple Format Logical file and Multiple logical files
» Do the multi format logical file need to have same key field attributes for each record format? what is the significance of K *None in such Logical files?
» Physical File & Logical File
» Phyical File & Logical File.
» Multiple Format Logical file and Multiple logical files
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum