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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 339 views
  • 0 likes
  • 2 in conversation