Fri Dec 03, 2021 3:41 am
Login Register Lost Password? Contact Us


Problems loading a superfile with QUOTE

Comments and questions related to the Enterprise Control Language

Mon Oct 24, 2011 5:46 pm Change Time Zone

The following
rdata := DATASET(rr_in_dir+'::'+rr_file, record_defs.ResourceRecord,
CSV(MAXLENGTH(8192), QUOTE(''), SEPARATOR(['\t', ' '])));

compiles fine but then when sent to thor it returns the following error
In fact it returns error even when you do QUOTE('\'') or QUOTE(['\'']), see below

<Error><source>eclcc</source><code>3000</code><message> Compile/Link failed for W20111024-173834 (see 'eclcc.log' for details)</message></Error>
<Warning><source>eclcc</source><code>0</code><message></message></Warning>
<Warning><source>eclcc</source><code>0</code><message>---------- compiler output --------------</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp: In member function ‘virtual size32_t cAc2::transform(ARowBuilder&, unsigned int*, const char**)’:</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp:315: error: invalid conversion from ‘const char*’ to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp:315: error: initializing argument 2 of ‘unsigned int user2(size32_t, char*, size32_t, char*)’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp:315: warning: deprecated conversion from string constant to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp:315: error: invalid conversion from ‘const char*’ to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp:315: error: initializing argument 5 of ‘void user1(bool&, size32_t&, void*&, size32_t, char*, size32_t, char*, long long unsigned int)’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-173834.cpp:315: warning: deprecated conversion from string constant to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message></message></Warning>
<Warning><source>eclcc</source><code>0</code><message>--------- end compiler output -----------</message></Warning>

rdata := DATASET(rr_in_dir+'::'+rr_file, record_defs.ResourceRecord,
CSV(MAXLENGTH(8192), QUOTE('\''), SEPARATOR(['\t', ' '])));

<Error><source>eclcc</source><code>3000</code><message> Compile/Link failed for W20111024-174313 (see 'eclcc.log' for details)</message></Error>
<Warning><source>eclcc</source><code>0</code><message></message></Warning>
<Warning><source>eclcc</source><code>0</code><message>---------- compiler output --------------</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp: In member function ‘virtual size32_t cAc2::transform(ARowBuilder&, unsigned int*, const char**)’:</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp:315: error: invalid conversion from ‘const char*’ to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp:315: error: initializing argument 2 of ‘unsigned int user2(size32_t, char*, size32_t, char*)’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp:315: warning: deprecated conversion from string constant to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp:315: error: invalid conversion from ‘const char*’ to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp:315: error: initializing argument 5 of ‘void user1(bool&, size32_t&, void*&, size32_t, char*, size32_t, char*, long long unsigned int)’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174313.cpp:315: warning: deprecated conversion from string constant to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message></message></Warning>
<Warning><source>eclcc</source><code>0</code><message>--------- end compiler output -----------</message></Warning>

rdata := DATASET(rr_in_dir+'::'+rr_file, record_defs.ResourceRecord,
CSV(MAXLENGTH(8192), QUOTE(['\'']), SEPARATOR(['\t', ' '])));

<Error><source>eclcc</source><code>3000</code><message> Compile/Link failed for W20111024-174552 (see 'eclcc.log' for details)</message></Error>
<Warning><source>eclcc</source><code>0</code><message></message></Warning>
<Warning><source>eclcc</source><code>0</code><message>---------- compiler output --------------</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp: In member function ‘virtual size32_t cAc2::transform(ARowBuilder&, unsigned int*, const char**)’:</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp:315: error: invalid conversion from ‘const char*’ to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp:315: error: initializing argument 2 of ‘unsigned int user2(size32_t, char*, size32_t, char*)’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp:315: warning: deprecated conversion from string constant to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp:315: error: invalid conversion from ‘const char*’ to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp:315: error: initializing argument 5 of ‘void user1(bool&, size32_t&, void*&, size32_t, char*, size32_t, char*, long long unsigned int)’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message>W20111024-174552.cpp:315: warning: deprecated conversion from string constant to ‘char*’</message></Warning>
<Warning><source>eclcc</source><code>0</code><message></message></Warning>
<Warning><source>eclcc</source><code>0</code><message>--------- end compiler output -----------</message></Warning>
nvasil
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 105
Joined: Mon Oct 17, 2011 6:48 pm

Tue Oct 25, 2011 1:55 am Change Time Zone

It turns out it was fixed a week ago in the latest release. Now it works
nvasil
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 105
Joined: Mon Oct 17, 2011 6:48 pm


Return to ECL

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron