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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 480 views
  • 0 likes
  • 2 in conversation