Consultor Eletrônico



Kbase P56370: How to compile from the command line
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/02/2009
Status: Verified

GOAL:

How to compile from the command line

FACT(s) (Environment):

All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
OpenEdge Category: Language (4GL/ABL)

FIX:

To compile from the command line you need to do the following things:

1) Create a .p which contains the 4GL code that will in turn compile everything
that you want to be compiled. This can be done very simply by listing each
program separately in its own COMPILE statement. For example:

COMPILE SomeProgram.p SAVE.

You would need one COMPILE statement for each program to be compiled. For
situations where there are too many programs then you will need to use a
more complex 4GL program. Something similar to the following may work:

INPUT FROM OS-DIR(C:\SomeDirectory).

REPEAT:
... Read File Names and Do Other Processing Here ...
COMPILE SomeProgram SAVE.
END.

INPUT CLOSE.

2) Compile the program you created in step number 1 above to r-code.

3) Invoke that program from the command line using whatever startup parameters
are required (i.e. database connections) along with the -rx parameter. For
example:

PROWIN32 -db MyDatabase -H MyMachine -S MyService -N tcp -rx -p MyCompileProgram.r