Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to prevent truncation of string?

Status
Not open for further replies.

pmal

Programmer
Feb 8, 2006
2
US
I am trying to import text file (txt; coma delimited; char variable in double quotes;) into SAS (v8) dataset. Text file has a char variable with a length = 300. When data set is created data string in char variable is truncated up to 255. Is there any way to avoid trucation of the data?
 
Use a length statement to set the length of the variable you are reading in.
Code:
  length char_variable $300;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top