Page 1 of 1

Reading in Daily data

Posted: Tue Sep 14, 2021 3:12 am
by ac_1
Hi Tom,

I normally read in (irregular) daily data as:

OPEN DATA "path to file name"
DATA start end

How do I fill-in a numeric "end" value without actually specifying the numeric "end" in the DATA statement, i.e. is there a way to know the length-of-the-input-file from OPEN DATA and assign an "end" via e.g. COMPUTE?

Cheers,
Amarjit

Re: Reading in Daily data

Posted: Wed Sep 15, 2021 8:47 am
by TomDoan
Just leave it blank and it will read the entire file. You can then use

compute end=%allocend()

to find how long the data set was.

Re: Reading in Daily data

Posted: Wed Sep 15, 2021 10:19 am
by ac_1
Great - many thanks!