Change data source (CD)
The command allows opening a data source or switching to another data source context. Not passing any parameter will show a list of opened data sources preceded by a data source number (dsid). Passing a dot (.) as parameter will close the current data source.
Parameters:
- dsname - data source name as defined in the catalog or configuration or ini-file section.
- dsid - data source identifier for opened data source (internal number).
- * - create a copy of current data source.
- . - close currently selected data source
- -Dn - re-direct command to data source referenced by internal number n.
Syntax:
CD [dsname|*|dsid|.] -Dn:
Examples:
cd // Displays currently opened data sources
cd ProjectDB // Open data source 'ProjectDB' (must be defined in
// catalog or ini-file
cd 2 // Switch to data source 2 (must have been opened calling CD)
cd . // Close current data source and switch to previous.
cd * -D2 // Create a data source copy from data source 2
cd . -D3 // Close data source 3