The NDO File Command rule commands are used to interface with the Rules and Formatter. They allow a user to read an NDO file type from memory, write an NDO file type to memory, or pass an NDO file type from memory to the Sybase Adapter. Multiple NDO data trees can be processed in one inbound map run, but only one NDO data tree can be processed in each outbound map run.
NDO File Command – choose from:
Put NDO File – converts a sequential memory file (of NDO file type) to an NDO data tree for delivery to the Sybase Adapter. After the Put NDO File command is executed, the sequential memory file is empty and ready to be populated again with Write NDO File commands.
For a file to be delivered to the Rules and Formatter,
the map must encounter and execute a Put NDO File command. If the
system encounters and executes only Write NDO File commands, the
file will never be converted and delivered to the Sybase Adapter.
Read NDO File – the first time this command is executed, the program converts an NDO data tree acquired from the Sybase Adapter to a sequential memory file (of NDO file type) that has the same name as the schema node of the NDO data tree. After this, and every other time the command is executed, the program reads a record in the sequential memory file (of NDO file type).
Write NDO File – writes a record to a sequential memory file (of NDO file type).
The Write NDO File command only creates
an internal ECMap memory file. The Put NDO File command actually
delivers the file to the Rules and Formatter. If the user does not
include a Put NDO File command in the map or the map does not encounter
and execute a Put NDO File command., the file will never be converted
and delivered to the Sybase Adapter.
NDO File Name – the name of both the ECMap sequential file name (of NDO file type) and the name of the schema node in the NDO data tree. For the Put NDO File rule command, the entry in this text box refers to both the sequential file and the NDO data tree. For the Read NDO File and Write NDO File rule commands, the entry in this text box refers to the sequential file. When you select the up arrow, the Files/Databases window displays next to the Rule Command window. If you double-click a file on the Files/Databases window, the program automatically populates the NDO File Name text box with that file name.
NDO File Record – the name of both a record in the ECMap sequential file and the name of a record (or container) node in the NDO data tree. For the Put NDO File rule command, the entry in this text box is meaningless. For the Read NDO File and Write NDO File rule commands, the entry in this text box refers to a record in the sequential file. When you select the up arrow, the Records/ Tables window displays next to the Rule Command window. If you double-click a record on the Records/Tables window, the program populates the NDO File Record text box with that record name and the NDO File Name text box with the file containing that record.