Dear all,
I have the following problem
I have a list of files that identify countries.
In need to merge recursively each file with the remaining files in the list
For example suppose the files are defined in the file list below
local filelist "AT BE BG CY CZ DE DK"
I need to merge the first file AT recursively with the subsequent files BE BG CY CZ DE DK
Subsequently I need to merge the second file BE with the subsequent files BG CY CZ DE DK
And so forth
The problem is that I do not know how to move the index over a list which is not made by numbers
If the list is made by numbers I would increment the loop by using ++`x’
I tried using the macro `ferest()’ but for some reason it skips one position
Here an example using instead of merge
local filelist "AT BE BG CY CZ DE DK"
foreach x of local filelist {
display "`x'"
display "`ferest()'"
local filelist "`ferest()'"
}
What am I missing?
Thank you in advance
I have the following problem
I have a list of files that identify countries.
In need to merge recursively each file with the remaining files in the list
For example suppose the files are defined in the file list below
local filelist "AT BE BG CY CZ DE DK"
I need to merge the first file AT recursively with the subsequent files BE BG CY CZ DE DK
Subsequently I need to merge the second file BE with the subsequent files BG CY CZ DE DK
And so forth
The problem is that I do not know how to move the index over a list which is not made by numbers
If the list is made by numbers I would increment the loop by using ++`x’
I tried using the macro `ferest()’ but for some reason it skips one position
Here an example using instead of merge
local filelist "AT BE BG CY CZ DE DK"
foreach x of local filelist {
display "`x'"
display "`ferest()'"
local filelist "`ferest()'"
}
What am I missing?
Thank you in advance
Comment