Loading .df from command line

OmahaUser

New Member
I am trying to load .df from command line using this command:

DLC/bin/pro <db> -i -p load_df.p -param /path/to/db.df

I keep getting mismatch number of parameters passed to load_df.p.

Is it possible to load a .df from command line, I am trying to automate the load of .df's.

Thanks.
 
Use something like this:

Code:
/* loaddf.p
 */

define variable fname as character no-undo.

fname = session:parameter.

run prodict/load_df.p ( input fname ).

return.

pro dbname -p loaddf.p -param dfname.df
 
I can get it to work in a procedure editor but what I am trying to do is run it from a unix command line so that I can incorporate it into a script to automate the process.

Thanks.
 
That is what the code I posted is for. You need a "shim" to get the filename from the command line into load_df.p. Which is what the -param on the command line under the sample code is all about. Try it. You might be surprised ;)
 
Back
Top