You can start a single-user batch session against a running database using:

The PROWIN command in Windows

The BPRO command in UNIX

In Windows, the syntax of the PROWIN command is:
prowin db-name -1 -b –p procedure-name [> output-file]
In UNIX, the syntax of the BPRO command is:
bpro db-name -p procedure-name [> output-file]
Note: You can also start a single-user batch session against a database in character mode using the _PROGRES command in either Windows or UNIX. It has the same syntax as PROWIN.

Assume that the appdb database is offline and there is an OpenEdge procedure file, dispcust.p, which displays customer information.

In Windows, you can run dispcust.p in a single-user batch session against the appdb database and output the results to a text file, dispcust.txt:
prowin appdb -1 –b –p dispcust.p > dispcust.txt
In UNIX, you can perform the same task using this command:
bpro appdb –p dispcust.p > dispcust.txt
After the batch job runs completely, the session ends and the database shuts down.