DataGate® 16.0 for SQL Server Reference Guide
|
Data Access Considerations
The following table details important data access considerations when converting or communicating between DataGate® for IBM i, DataGate® for SQL Server, and the core DataGate® program.
Considerations
Item |
DG/400 |
DSS |
DataGate |
Arrival Access |
Relative Record Number is used for Sequential and Random access. |
Only Consecutive access is supported, but there is no guaranteed order of retrieval unless the file is indexed. The only random operation allowed is SetLL and this is only when used with *Start and *End. No other kind of seeking (SetGT,CHAIN) is allowed. |
Relative Record Number is used for Sequential and Random access. |
Format Name (see Note below) |
Given by file creator. |
Always 'R'followed by File Name. Note to AVR Users: The Format can be renamed in the DclDiskFile, using the RNMFMT keyword by providing a new name, it is not necessary to provide the existing Name in the RNMFMT. This allows the creation of single-source apps that can compile against DG/400 and DSS. |
Given by File creator. |
Open Query File |
Implemented with OpenQry. |
Select expression is used as the WHERE clause of a SELECT. The key field list is used as the ORDER BY clause. The SELECT expression is passed directly to the SQL analyzer with no interpretation. The expression must follow valid SQL Server syntax. Pay special attention to uses of logical operators. Use 'AND' and 'OR' not '&' and '|'. |
A temporary logical file is created using the SELECT expression as a SELECT/OMIT expression and the key field list to define the new key. |
NOTE:
Multi-format logical files are not supported on SQL Server. The
migrated code is normalized for SQL Server especially when I/O
commands target single-format record format names instead of the file
name but this does not change the application's behavior when
accessing files on the System i.
If the Rename keyword is
present in the legacy file description, the migrated RNMFMT keyword
will contain the legacy New Format Name. If the Rename keyword is
not present in the legacy file description, the migrated RNMFMT
keyword will contain the files Externally Described Record Format
name.