You can use the Command-Line Utilities to export and import object definitions from one Optim™ Directory to another. Command-line processing is available in all Optim environments.
The following guidelines apply:
The syntax conventions that are used to describe the command-line import are as follows.
Use the following command-line syntax to import Optim Directory object definitions.
PR0CMND /IMPORT INput=impfilename
[ { PSTdirectory= | Directory=} pstdirectory ]
[ Output=rptfilename ]
[ OVERWrite[ + | - ] ]
[ ContinueOnError[ + | - ] ]
[ DBAlias=(currentdbalias, newdbalias, ...) ]
Use the following command-line syntax to import objects in the X:\FORIMPORT.TXT file from the command line, without overwriting any object definitions already in the Optim Directory. The process report is written to a file named X:\RESULTS.TXT and processing continues in the event of an error. The example also changes the DB Alias xxx to yyy, and xxx2 to yyy2 for the imported objects.
PR0CMND /IMPORT INPUT=X:\FORIMPORT.TXT
OUTPUT=X:\RESULTS.TXT OVERWRITE-
CONTINUEONERROR+ DBALIAS=(xxx, yyy, xxx2, yyy2)