7 75 POINT

LANSA Technical

7.75 POINT

Except when using SELECT_SQL, the POINT command is used to "point", "re-direct" or "override" all I/O requests made to a file to:

  • Another file in the same library
  • Another file in another library
  • The same file in another library
  • A specific member within a file.

This command is provided for backward compatibility rather than for its specific functionality. See the Permanent File Overrides in the LANSA for i User Guide for a generally better mechanism for achieving similar functionality.

 

Portability Considerations

The POINT command is supported in RDMLX code for compatibility with existing RDML code. When executed on platforms other than IBM i it has no effect.

Code generation varies for RDML functions and RDMLX code, and a difference may be caused in the library that is used where there are multiple files of the same name. RDML function generation on IBM i matches up File references to Libraries using the Library List of the job that is compiling the object; if not found in the library list, the first File in the repository found in EBCDIC collation sequence will be used. RDMLX objects are generated on Windows, which does not have a Library List, and so the first file in the repository found in ANSI collation sequence order will be used. Thus if the POINT command specifies a library but an IO command does not (or vice versa), and there are multiple files of the same name, the RPG and C code generation may match different libraries.

 

Also See

7.75.1 POINT Parameters

7.75.2 POINT Comments/Warnings

7.75.3 POINT Examples

                                                         Required

 

  POINT -------- FILE --------- file name . *FIRST ------------->

                                            library name

 

 -----------------------------------------------------------------

                                                         Optional

 

             >-- TO_FILE - ---- *SAME -------------------------->

                                file name

 

             >-- TO_LIBRARY --- *LIBL -------------------------->

                                library name

 

             >-- TO_MEMBER ---- *FIRST -------------------------|

                                member name