Mon Mar 19, 2018 6:43 am
Login Register Lost Password? Contact Us

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: 12
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