How to Generate Files from the Command Line |
It is possible to generate flat files and database files from the command line. These include a .CON, a .JOB, and an .ESI file, and user statement and database installation files. One of the main advantages of generating flat files from the command line is that a USoft application does not need to be opened and that the generated files can be distributed to several client machines. To generate the .ESI file for the TRAVEL application, for example, use the following command line : usd.exe -database DB001 -app TRAVEL -u TRAVELUSER -pw traveluser -oracle -messagesToFile -generate C:\Usd70\app\TRAVEL_70.esi This option does not start up the GUI, and the process is exited once the file is created. An alternative manner is to replace the generate option with: -exe "esi-create-schema-file(TRAVEL_70) application-exit(IMMEDIATE)" This will start up the GUI, but will exit the application once the file is created. The esi-create-schema-file() part of the command can be replaced with:
app USD
app USD
app USD
app USD
app USD You can also replace the exe option with: -run "<script file name>" where a script file contains all actions to be executed. In this case, the application exits automatically. |