Read using record format or File name
2 posters
Page 1 of 1
Read using record format or File name
Considering performance which one is better. Read using rec format name or file name? Why?
Thanks.
Raj
Thanks.
Raj
rajkumar400- Posts : 59
Join date : 2010-12-25
Re: Read using record format or File name
Read a PF with filename or record format - no difference,performance depends on the file size ie number of records...
Reading a Prog desc file,u should use only file name in factor2...
But READ a LF which has more than record format...
Say for example, i had a LF with 10 record format each recfmt contains 100 records...
A)Now if i read LF with filename as factor 2,it reads 10*100 ie 1000 records
B)If i read LF with particular record format ,then it reads records from that recfmt alone ie 100 records
FROM (A) and (B), B is faster , reading using recfmt is faster
reading 1000 rec by (A) is slower than to read 100 rec(B)...
Reading a Prog desc file,u should use only file name in factor2...
But READ a LF which has more than record format...
Say for example, i had a LF with 10 record format each recfmt contains 100 records...
A)Now if i read LF with filename as factor 2,it reads 10*100 ie 1000 records
B)If i read LF with particular record format ,then it reads records from that recfmt alone ie 100 records
FROM (A) and (B), B is faster , reading using recfmt is faster
reading 1000 rec by (A) is slower than to read 100 rec(B)...
soundhar- Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai
Similar topics
» 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?
» Read records without respective opcodes READ, READP... CHAIN
» How to read a record from SPLF and write into PF?
» File Record Access Details
» Multiple Format Logical file and Multiple logical files
» Read records without respective opcodes READ, READP... CHAIN
» How to read a record from SPLF and write into PF?
» File Record Access Details
» Multiple Format Logical file and Multiple logical files
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum