Thu Aug 18, 2022 10:22 am
Login Register Lost Password? Contact Us

Please Note: The HPCC Systems forums are moving to Stack Overflow. We invite you to post your questions on Stack Overflow utilizing the tag hpcc-ecl (https://stackoverflow.com/search?tab=newest&q=hpcc-ecl). This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.



how to run multiple ecl file using eclplus

Topics specific to the use of the ECL IDE

Wed Mar 13, 2013 9:33 am Change Time Zone

I'm a beginner.

my question is:

how to run multiple ecl file using eclplus , or how to organize multiple ecl run in one workunit when use eclplus.

in sunxg_mr.ecl:
Code: Select all
EXPORT  mac_sunxg_mr(RET_TYPE,in_file_name) := FUNCTIONMACRO
...
ENDMACRO;


in t1.ecl:
Code: Select all
import $ as MRLib;

MRLib.sunxg_mr.mac_sunxg_mr(MRLib.sunxg_mr.CELL_INTERF,'{~hpcctell::mr::20120614-000_*.csv}');


it's ok in ECL IDE, but report error when use eclplus, fellowing is the opration:
Code: Select all
D:\sunxg\ecl\test>eclplus @t1.ecl output=o.txt -ID:\sunxg\ecl\test -LD:\sunxg\ecl\test
Workunit W20130313-161244 submitted


error reported in eclwatch:
Code: Select all
eclcc   stdin: (3,7) : 2171: Object does not have a member named 'sunxg_mr'
eclcc   stdin: (3,7) : 2167: Unknown identifier "sunxg_mr"
eclcc   stdin: (3,16) : 2171: Object does not have a member named 'mac_sunxg_mr'
eclcc   stdin: (3,29) : 2171: Object does not have a member named 'mrlib'
eclcc   stdin: (3,35) : 2171: Object does not have a member named 'sunxg_mr'
eclcc   stdin: (3,44) : 2171: Object does not have a member named 'cell_interf'
sunxg
 
Posts: 1
Joined: Wed Mar 13, 2013 9:13 am

Thu Mar 14, 2013 3:25 pm Change Time Zone

Hi sunxg,

ECLPlus is gradually getting replaced by the ECL Command Line. Have you tried using the ECL command line instead of ECLPlus?

The last time I chatted with the developer he recommended that I use the ECL Command line. Ecl submitted to Eclplus would need to be self-contained. The ECL Command line calls the ECL Compiler (eclcc) which compiles it locally and thus resolves the imports.

Regards,

Bob
bforeman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1006
Joined: Wed Jun 29, 2011 7:13 pm


Return to ECL IDE

Who is online

Users browsing this forum: No registered users and 1 guest