Help using Base SAS procedures

specifying end-of-record character in PC-SAS INFILE statement

Reply
Occasional Contributor
Posts: 10

specifying end-of-record character in PC-SAS INFILE statement

I am using PC-SAS v 9.1.3 under Windows XP Pro.

I have a (large) flat file in which the variable-length records are delimited with 0Dx (carriage return).

How do I instruct SAS to use this as the EOR? I tried termstr=CR, but that triggered an error message. I am sure that there's an easy way to do this, but I just cannot figure out how to frame the query to get to it!

Thanks, folks.
Respected Advisor
Posts: 3,799

Re: specifying end-of-record character in PC-SAS INFILE statement

Posted in reply to dan_waldo
Try the infile statement option MAC.
Occasional Contributor
Posts: 10

Re: specifying end-of-record character in PC-SAS INFILE statement

Posted in reply to dan_waldo
Did the trick. Thank you!!
Ask a Question
Discussion stats
  • 2 replies
  • 94 views
  • 0 likes
  • 2 in conversation