Is there a way to change the scope/prefix after spraying?
Hi,
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?
Thanks,
-Mike
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?
Thanks,
-Mike
- michael-mason
- Posts: 16
- Joined: Thu Jun 21, 2012 4:20 pm
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.
For what it's worth, providing the root scope also works, so that
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
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
- Tony Kirk
- Posts: 17
- Joined: Thu Jun 23, 2011 5:01 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest