Reading in Daily data

For questions and discussion related to reading in and working with data.
ac_1
Posts: 495
Joined: Thu Apr 15, 2010 6:30 am

Reading in Daily data

Unread post 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
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Reading in Daily data

Unread post 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.
ac_1
Posts: 495
Joined: Thu Apr 15, 2010 6:30 am

Re: Reading in Daily data

Unread post by ac_1 »

Great - many thanks!
Post Reply