moiaussi06
moiaussi06

Reputation: 221

long variable name when infile pipe delimited file into sas

I have a pipe delimited file when variable name is 40 bytes long. Is there an option in sas to specify the length?

Currently, SAS wouldn't read this file with lrecl= [a large enough number] dsd dlm='09'x.

Upvotes: 0

Views: 302

Answers (1)

Joe
Joe

Reputation: 63434

SAS variable names cannot be over 32 characters long. You can allow SAS to make a decision about the variable names (shortening automatically) but retain the long variable name as a label, which is often the simplest procedure. It shouldn't prevent it from loading, though.

However, more concerning is the fact that you say it is a pipe delimited file, but dlm='09'x, which is tab delimited. Is this just a typo/word choice issue or are you doing this incorrectly?

Upvotes: 1

Related Questions