Thu Jul 07, 2022 7:53 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 ( This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.

Is there a way to change the scope/prefix after spraying?

Post questions or comments on how best to manage your big data problem

Thu Jul 05, 2012 2:33 pm Change Time Zone


I just sprayed some XML files, and I didn't specify a prefix for them. Now, when I look at the logical files, the scope is just '.'. So, to access the data, I guess I have to do something like: .:

This is ugly. Is there a way that I can change the scope after spraying?

Posts: 16
Joined: Thu Jun 21, 2012 4:20 pm

Thu Jul 05, 2012 7:00 pm Change Time Zone

I'll assume you sprayed the file without any prefix or directory (i.e. no "::" at all), a la "my_file_name_in_one_string" or similar.

When viewing the files in ECLWatch file lists, the "scope" displayed as ".::" (as a link) is probably to provide the means to select and filter by that root scope. When defined in your ECL, however, it is not needed, and the leading tilde will signal the name is fully qualified as is.

Code: Select all
my_dataset := ('~my_file_name_in_one_string'...);

For what it's worth, providing the root scope also works, so that

Code: Select all
my_dataset := ('~.::my_file_name_in_one_string'...);

appears to work, too.

Of course, you always have the ability to rename, at which time you can completely change the name/scope of the logical file (look for RenameLogicalFile).

If I missed something or more questions, let me know.

Tony Kirk
Posts: 17
Joined: Thu Jun 23, 2011 5:01 pm

Return to Managing Big Data

Who is online

Users browsing this forum: No registered users and 1 guest