BookmarkSubscribeRSS Feed
Ronein
Meteorite | Level 14

Hello friends

I have a problem.

I am using tera data query in order to create a table that contains 3318 rows.

I am exporting the table to a txt file.

Then I am using in SAS: File--Import data  and I get only 3281 rows.

As you can see  number of rows is not matched to original table.

I checked what happened and found that some rows values are located in specific field.

What do you suggest in order to solve this problem please?

 

 

 

2 REPLIES 2
andreas_lds
Jade | Level 19

You have to post code and log, so that we see what actually happened.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

How are you exporting the data, and to what format.  If you export a CSV file, and your data contains commas, then you will obviously have issues.  In these cases you can either enclose the data with commas in double quotes so the reader knows to read the whole block without delimeters, or you can switch to a delimeter that is not in your data, for example a pipe.  How you do this in teradata, well there should be an option at export to specify the delimiter.  

If of course its not the above then post some actual information about your problem, otherwise we are just guessing.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 530 views
  • 0 likes
  • 3 in conversation