Fri Nov 26, 2021 11:00 pm
Login Register Lost Password? Contact Us


Setting stored variable in standalone executable

Comments and questions related to the Enterprise Control Language

Fri Aug 25, 2017 8:38 pm Change Time Zone

My ECL program has "stored" variables. Eg,
Code: Select all
integer day := 27 : stored('day');
integer month := 7 : stored('month');
integer year := 1996 : stored('year');


I can set these parameters when using ecl run using the -X parameter. Is there a way to set stored variables in a standalone program? Specifically, I compile as:

Code: Select all
eclcc wrapper.ecl


Help doesn't help.

Code: Select all
$  ./a.out --help
Usage: a.out [options]

Options:
        --daliServers=[host1,...]       : List of Dali servers to use
        --tracelevel=[integer]  : Amount of information to dump on logs
        --stdlog=[boolean]      : Standard log format (based on tracelevel)
        --logfile       : Outputs to logfile, rather than stdout
        --help|-h       : This message


Appears to ignore -X flag. (Output for second call should be 1.)

Code: Select all
$ ./a.out
0
$ ./a.out -Xday=28
0
vin
 
Posts: 28
Joined: Tue Feb 10, 2015 8:12 pm

Wed Sep 06, 2017 4:23 pm Change Time Zone

If the stand alone executable is compiled using the hthor engine (-platform=hthor), then you can use:

Code: Select all
./a.out /day=28


However that doesn't appear to be supported for the default (roxie) engine. I imagine it would be relatively simple to fix, so please open a JIRA and we can investigate further.
ghalliday
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 198
Joined: Wed May 18, 2011 9:48 am


Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest

cron