Kbase P124384: How to pass the name of a .df file to prodict/load_df.p from the command line?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  24/04/2009 |
|
Status: Verified
GOAL:
How to pass the name of a .df file to prodict/load_df.p from the command line?
GOAL:
Is it possible to invoke prodict/load_df.p directly from the OS command line?
FACT(s) (Environment):
All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x
FIX:
No, it is not possible to invoke the prodict/load_df.p procedure directly from the 4GL/ABL session startup command line because the procedure expects a CHARACTER INPUT PARAMETER which can only be passed through a RUN statement.
To pass the name of a .df file to the prodict/load_df.p procedure from the 4GL/ABL session startup command line, use the -param client session startup parameter to pass the name of the .df file to a procedure that runs the prodict/load_df.p procedure with the SESSION:PARAMETER attribute as the required CHARACTER INPUT PARAMETER as per the following example:
1. Create a one line procedure containing the following RUN statement and save it as myload.p in the 4GL/ABL session working directory:
RUN prodict/load_df.p (SESSION:PARAMETER).
2. Assuming that the database name is databasename and that the .df file name is filename.df, start the 4GL/ABL session using one of the following command lines:
pro databasename -1 -p myload.p -param filename.df , character (TTY) clients in single user mode
mpro databasename -p myload.p -param filename.df , character (TTY) clients in multi-user mode
prowin32 databasename -1 -p myload.p -param filename.df , graphical (GUI) clients in single user mode.
prowin32 databasename -p myload.p -param filename.df ,graphical (GUI) clients in single multi-user mode.