BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Meilan
SAS Employee

I am using loadTable action to import data from a .csv file. I have many character variables and I want to define a fixed length for them.

Is there a way to define the length of the character variables (equivalent to 'RawLength' of the output) in loadTable? 

 

Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
JosvanderVelden
SAS Super FREQ
Starting with Viya 3.4 you can use informat in the loadTable action. There is an example in the documentation: https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=caspg&docsetTarget=p15gor...
Meilan
SAS Employee

Thank you so much!

I learned from the documentation that besides 'informat', I can also use 'length' to solve my problem.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 863 views
  • 0 likes
  • 2 in conversation