/
getTimeSeries.ado
50 lines (48 loc) · 1.4 KB
/
getTimeSeries.ado
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* Copyright 2010,2014 Bank Of Italy
*
* Licensed under the EUPL, Version 1.1 or - as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of the Licence at:
*
*
* http://ec.europa.eu/idabc/eupl
*
* Unless required by applicable law or agreed to in
* writing, software distributed under the Licence is
* distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied.
* See the Licence for the specific language governing
* permissions and limitations under the Licence.
*/
/*
* Execute getTimeSeries call. Parameters:
*
* provider: the id of the data provider
* tskey: the SDMX identifier of the resource to be retrieved
* start: start time
* end: end time
* meta: handle or not metadata
* 0: only data (default)
* 1: data and metadata (can be very resource consuming)
* 2: only metadata
* force: if set to 1, eventual data in memory will be cleared
*
*/
program getTimeSeries
version 13
args provider tskey start end meta force
if _N > 0 {
if "`force'" != "1" {
display "Data would be lost. Please clear the dataset and retry."
exit
}
else {
clear
}
}
javacall it.bancaditalia.oss.sdmx.client.StataClientHandler getTimeSeries, args("`provider'" "`tskey'" "`start'" "`end'" "`meta'")
end