Multi Format LF

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 17

MULTI FORMAT LF

TEAM RED
GROUP 4
CONTENTS

1. Multi Record format Logical file.


2. Difference with simple LF, Multi record format LF.
3. Creation.
4. Updating data in multi format LF.
5. Viewing data in multi format LF.
6. Hands-on in AS 400
7. Conclusion
MULTI RECORD FORMAT LOGICAL FILE

• Record format allows us to present different views to different users.

• Multi record allows you to use records from two or more physical
files by referring to only one logical file.

• Since it is a view only LFs alone supports multi format and PFs don’t.
SIMPLE LOGICAL FILE VS MULTI RECORD FORMAT LOGICAL FILE

Simple logical file Multi record format LF


1 Record format of physical 2 or more record formats
file is associated with LF. can be used in a single
logical file.
2 record Multi format
formats LF

Single format
LF
HOW TO CREATE A MULTI RECORD FORMAT LF ?
 

• We need two or more PFs with different Record format names


and with a same key field.
• Give the same record format name in LF as we gave for PF.
• Multi format LF won’t work without key field in LF.
• This foreign key should be our primary key.
• These key fields are used to merge record from different
formats.
• *, an empty line can be used to separate different record
formats.
• *none separator is used if the key field is not common.
*none
separator

In second record format


EMPID is our primary key
no common key so
common to all records
*none is used
UPDATING DATA IN MULTI RECORD FORMAT LF

• Use command UPDDTA LFNAME.


• Press F6 to select different record format.
• Enter 1 to specify it.
• We can enter our data to different record formats.
F6 to select
record format
RETRIEVING DATA IN MULTI RECORD FORMAT LF

• Use WRKQRY and create a new query.


• In specify file selection give the name of Logical file and.
Give the record format you want to visualize.
• We can create each record format as individual queries.
• Press F5 to see Report view or Press F3 to save the query.
• Use command RUNQRY QRYNAME to see the entered data.
Different record format
selected
HANDS-ON IN AS 400
CONCLUSION

On certain cases multi member logic file is preferred over multi


format logical file
1. when keyed access is used with a multiple-format logical
file, it is possible to experience poor performance if one of the files
has very few records.
2. Even though there are multiple formats, the logical file has
only one index, the system might have to search all index entries
in order to find an entry from the small file.
3. Searching the index depends on the number of keys from each
file and the sequence of keys in the index.
REFERENCES

1. https://
www.ibm.com/docs/en/i/7.4?topic=clf-creating-logical-file-mor
e-than-one-record-format

2. https://flylib.com/books/en/1.251.1.137/1/
THANK YOU

1. Arun kumar velpula 4. Dibya Jha


2. Omkar Goud regoti 5. Brahma Reddythumma
3. Saktheesh V 6. Sai Manohar sirigadi

You might also like