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

How to update physical file using logical file with example?

574


How to read a pf in reverse(from last record to first) using cl?

589


What is the batch job?

564


How to index LF by relative record no (RRN)

2821


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

588






How to change the batch job to interactive job?

569


How many maximum record format a logical file have?

571


I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?

630


Can we concatenate fields in physical file? If yes how can we do?

580


What is FORMAT keyword and its use?

189


When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?

557


There is one string as A B C and wanted to display string as Shri A Shri B Shri C, how we can do this in sql? If we have around 100 values in string like this, each value should be displayed with initials as Shri.

720


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?

622


How to retrieve a physical file after deleting that?

576


What is the use of member in pf?

529