Most of the LANSA database I/O commands require the specification of a file name. The parameter name may be FROM_FILE, TO_FILE, INTO_FILE, etc. but in all cases, the way that the file name is specified is identical.
The following points apply to specifying a file name in any LANSA command:
For Visual LANSA, separate the file and library name using a space. In Visual LANSA, for example, the above TO_FILE parameters would be specified as:
On platforms other than IBM i, Visual LANSA will ignore the library.
If a library name is not specified, a default library name called *FIRST is used. This indicates that the library list of the job in which the function is being compiled should be searched (in order) to locate the required file. If the file cannot be found using this method then the first definition of the file that can be found in the LANSA dictionary should be used. In such cases a warning message will be issued.
Code generation varies for RDML functions and RDMLX code, and may cause a difference in which library is used where there are multiple files of the same name.