Help using Base SAS procedures

Distinguish among multiple INFILEs

Reply
N/A
Posts: 0

Distinguish among multiple INFILEs

Hi,

I want to read in several files using:

FILENAME FREF ('a' 'b') ...;

DATA ...;
INFILE FREF ...;

What is the best method to distinguish among files 'a' and 'b'? I want to now in each iteration of the data step which file the data step is processing?

Thanks in advance

//Dante
Respected Advisor
Posts: 4,173

Re: Distinguish among multiple INFILEs

Posted in reply to deleted_user
In the SAS doco for the "infile" statement are examples of how to read from multiple input files (and how to know from which one you're reading).

HTH
Patrick
Ask a Question
Discussion stats
  • 1 reply
  • 109 views
  • 0 likes
  • 2 in conversation