3 6 7 Share

LANSA Technical

3.6.7 Share

Specify whether or not this file (and any of its associated logical views) should be opened with the option to share an open data path.

Note that this value only affects the way that the I/O module (and hence RDML applications) open the file at run time. To actually get the physical file and logical files defined to the operating system as SHARE(*YES) or SHARE(*NO) for the benefit of external application programs, refer to the 3.6.20 CRTPF and CHGPF Parameter.

Default = NO (unchecked/not selected).

Warnings

  • This option relates to the opening of the file's open data path when used in I/O modules and *DBOPTIMISE programs.
  • This option does not relate to the creation or changing of the database file attributes.

Platform Considerations

  • IBM i: This file attribute applies to IBM i databases only.
  • IBM i: Despite the fact that IBM recommends data path sharing as one of the fundamental design considerations for efficient applications, the default for LANSA created files is NO (UNCHECKED or unselected). That is, do not share open data paths. The reason for this is that the I/O module concept implicitly emulates an open data path, because one active I/O module is shared by all RDML functions (within a job) that are accessing a file.
  • IBM i: Generally use option NO (UNCHECKED/not selected). That is do not share an open data path, except in the special situation where the file is only being used as a 'joined record format' for data that is dynamically created by the IBM OPNQRYF (open query file) command.

 

Ý 3.6 File Attributes