Reading Multiple Files

For questions and discussion related to reading in and working with data.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Reading Multiple Files

Unread post by msrahman »

I am using RATS to read two attached files. It can read the first file but cannot read the second one. I have attached the output. Any advice?
Attachments
output.rpf
(4.13 KiB) Downloaded 1097 times
UK_Final_One.xls
(93 KiB) Downloaded 1091 times
US_Final_One.xls
(86.5 KiB) Downloaded 1045 times
US_UK_Experiment.rpf
(1.16 KiB) Downloaded 1069 times
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Reading Multiple Files

Unread post by TomDoan »

Add sheet="Sheet3" option to the second DATA instruction. It looks like you must have deleted sheets 1 and 2.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Re: Reading Multiple Files

Unread post by msrahman »

I followed your instruction. But it is not working

--------------------------------------------------------------------------

open UK_Final_one.xls
data(for=XLS,org=cols,sheet="sheet3")
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Reading Multiple Files

Unread post by TomDoan »

Aren't you getting a

## IO53. Probable Error with OPEN US_FINAL_ONE.XLS. Is UNIT parameter missing?

message? The syntax on

open US_Final_One.xls
open UK_Final_one.xls

is wrong. You need

open data US_Final_One.xls
open data UK_Final_one.xls

instead.
Post Reply