what is the use of UNIQUEUE KEY WORD?
what is the difference between PFILE AND REF?

Answer Posted / sj

UNIQUE - Its file level keyword in PF. If you specify this
keyword then duplicate key values are not allowed in PF.
Ex. IF key field is cusno then no duplicate records are
allowed in cusno field

PFILE: Its logical file keyword to specify the Physical
file name.

REF: To specify the file name where the field discriptions
are present.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define what a data area is along with a brief example of what it may be used for?

958


I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.

2262


What is the maximum number of subfiles that can be specified in a display file?

1141


which indicator is used for read?

625


what is the difference between normal upddta to pf and updating using dfu program?

753






what are the three line types in rlu ?

1478


how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?

930


how does the runqry show the output?

879


What Is Ddm ?

1030


can a indexed file be accessed in arrival sequence in rpg program?

934


What is file information data structure(infds) in as400?

968


how you get the relative record in a subfile in which cursor is located?

612


how can I automatically refresh a web page?

632


what is the purpose of indicators in rpg?

1080


What is the as400 called now?

542