how can we write LF using flatfile.

Answer Posted / nirosh

BLDINDEX MLR?WS?,28,8,ML.RETUR,,DUPKEY
BLDINDEX ML.HIS?WS?,9,6,ML.INVHS,,DUPKEY,,17,5

TYPE BLDINDEX in system 36 environment & F4

BLDINDEX PROCEDURE Optional-*
Ignored-%
Crtes an alternat index for a physical file




Name of file to be CREATED . . NIROSH
Start posit for 1st field of key 1-4096 6
Length of first field . . . . . 1-120 5
Start posit for 2nd field of key 1-4096 1
Length of 2nd field . 1-120 5
Start posit for 3rd field of key 1-4096
Length of 3RD field 1-120
Name of PHYSICAL FILE . . . ML.CRDR
Creation date of physical file
Allow duplicate keys DUPKEY,NODUPKEY DUPKEY
Prefer disk locn A1,A2,A3,A4,block number

Enter

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between access path and open data path?

601


How many maximum record format a logical file have?

590


Suppose I have a pf,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in pf?

640


Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?

628


Last statement of any rpg program is lr?

618






What is the primary file?

588


I have a pf, it contains 5 members, how to access particular member data from logical file?

531


How to index LF by relative record no (RRN)

2835


What is the interactive job? What is the batch job?

588


What is open data path?

583


How to find the list of source physical files in a library?

624


What is the interactive job? What is the batch job? How to change the batch job to interactive job?

632


What is the batch job?

574


How to update physical file using logical file with example?

584


How to know the particular record in pf with out reading?

592