PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Read using record format or File name

View previous topic View next topic Go down

Read using record format or File name

Post  rajkumar400 on Mon Dec 27, 2010 2:19 pm

Considering performance which one is better. Read using rec format name or file name? Why?

Thanks.
Raj

rajkumar400

Posts : 59
Join date : 2010-12-25

View user profile

Back to top Go down

Re: Read using record format or File name

Post  soundhar on Wed Dec 29, 2010 1:19 pm

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)...


soundhar

Posts : 67
Join date : 2010-07-14
Location : Vridhachalam/chennai

View user profile

Back to top Go down

Re: Read using record format or File name

Post  rajkumar400 on Wed Dec 29, 2010 10:54 pm

Thanks.

rajkumar400

Posts : 59
Join date : 2010-12-25

View user profile

Back to top Go down

Re: Read using record format or File name

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum