Details
-
Bug
-
Status: Resolved
-
Not specified
-
Resolution: Invalid
-
8.4.0
-
None
-
None
Description
It appears that ecl run does not support running MACROs or FUNCTIONs.
I have simplified the code for this Jira:
Macro
//echoTest1.ecl
EXPORT echoTest1(inVal='hello world') := MACRO
OUTPUT(inVal);
ENDMACRO;
then:
ecl run hthor "C:\Users\Public\Documents\HPCC Systems\ECL\My Files\MyProgrammersGuide\echoTest1.ecl" --input "<request><inVal>'gbye'</inVal></request>" --ecl-only
W20211202-151145
state: failed
eclcc: (1,0): Error C3: Query is empty
1 error(s), 0 warning(s)
Function
//echoTest2.ecl
EXPORT echoTest2(STRING inVal='hello world') := FUNCTION
RETURN OUTPUT(inVal);
END;
then:
C:\Program Files (x86)\HPCCSystems\8.4.0\clienttools\bin>ecl run hthor "C:\Users\Public\Documents\HPCC Systems\ECL\My Files\MyProgrammersGuide\echoTest2.ecl" --input "<request><inVal>'gbye'</inVal></request>" --ecl-only
W20211202-153719
state: failed
eclcc: (1,0): Error C3: Query is empty
1 error(s), 0 warning(s)