9.132 LOGICAL_VIEW

Note: Built-In Function Rules     Usage Options

Specifies or re-specifies the name and basic attributes of a logical view / file that is to base on the file definition being edited.

Prior to using this Built-In Function an edit session must be commenced by using the START_FILE_EDIT Built-In Function.

After using this Built-In Function to define the basic logical view / file attributes, repetitively use the LOGICAL_KEY Built-In Function to specify or re-specify the key field name(s).

Allowable argument values and adopted default values are as described in Detailed Logical View Maintenance in the LANSA for i User Guide.

Warning: This Built-In Function cannot be used for a file of type "OTHER".

This is a Specialized Built-In Function for use in a Development Environment only.

Arguments

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Name of logical view.

1

10

 

 

2

A

Req

Description of logical view

1

40

 

 

3

A

Opt

Access path maintenance option Must be IMMED or DELAY. Default is IMMED.

1

7

 

 

4

A

Opt

Uniquely keyed file / view Must be YES or NO. Default is NO.

1

3

 

 

5

A

Opt

Dynamic record selection Must be Y or N. Default is N. Must be YES or NO. Default is NO.

1

3

 

 

 

Return Values

No

Type

Req/ Opt

Description

Min Len

Max Len

Min Dec

Max Dec

1

A

Req

Return code

OK = logical view defined

ER = fatal error detected

In case of "ER" return code error message(s) are issued automatically and the edit session ended without commitment.

2

2