BookmarkSubscribeRSS Feed
byeh2017
Quartz | Level 8

Hello, 

 

I am trying to import an excel of data that has a variable in Georgian script. I have imported other types of data in Georgian script before and have had no problems. With this excel file however, it converts all entries that have Georgian script into question marks. Attached is the excel file I am trying to import. I am using sas studio from SasU.

 

Here is the log:

 

 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 61         
 62         /* Generated Code (IMPORT) */
 63         /* Source File: hospital beds 2015.xls */
 64         /* Source Path: /folders/myfolders/janfeb */
 65         /* Code generated on: 4/11/17, 4:05 PM */
 66         
 67         %web_drop_table(JANFEB.HOSPITALBEDS2015);
 NOTE: Table JANFEB.HOSPITALBEDS2015 has been dropped.
 NOTE: PROCEDURE SQL used (Total process time):
       real time           0.06 seconds
       cpu time            0.05 seconds
       
 
 68         
 69         
 70         FILENAME REFFILE '/folders/myfolders/janfeb/hospital beds 2015.xls';
 71         
 72         PROC IMPORT DATAFILE=REFFILE
 73         DBMS=XLS
 74         OUT=JANFEB.HOSPITALBEDS2015;
 75         GETNAMES=YES;
 76         RUN;
 
 NOTE:    Variable Name Change.  Organization Name -> Organization_Name               
 NOTE:    Variable Name Change.  Quantity of Beds -> Quantity_of_Beds                
 NOTE: The import data set has 270 observations and 2 variables.
 NOTE: JANFEB.HOSPITALBEDS2015 data set was successfully created.
 NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.19 seconds
       cpu time            0.18 seconds
       
 
 77         
 78         PROC CONTENTS DATA=JANFEB.HOSPITALBEDS2015; RUN;
 
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.33 seconds
       cpu time            0.29 seconds
       
 
 79         
 80         
 81         %web_open_table(JANFEB.HOSPITALBEDS2015);
 82         
 83         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 96         

 

 

Here is the dataset:

 

data JANFEB.HOSPITALBEDS2015;
  infile datalines dsd truncover;
  input Organization_Name:$90. Quantity_of_Beds:BEST12.;
datalines4;
������ �� ������� ��������� ����.������ -,148
���������� �����������, ������ �� ������������ ����������� ������,90
���������� ���������� ������,20
����. ����������� ������,38
�� ������� ���������,24
���������� �����,83
��� ������������ �������,10
����. ����������������� �����������,150
���������� ���������� ������ �����������,8
����. ��������� �����������,120
������������ ������,5
������������ ������ ������,140
��� �����,6
��� ������� ������� ���������� �����������,133
��� �������,20
��� ������� ���������� ������,77
�� ���������� ������ ��������,50
��� ������� �������,15
��� ������� ���������� ������ ����,23
���� ������� �������������� �������,149
��� �����������-������,22
��� �� ���� 22,6
��� ����������� ������ �������,59
������� ���������� ������,92
# 5 ��������� �����������,158
������������ �� ������� �������� ������,250
��� ��������� ������������ ������,220
������ ���������� �������-������������� ����������� ����,14
��� ����,9
��� ���������������� ���. ������������ ������,27
��� ���� ��������� ���.���������� ������,10
��� ��� ����,32
��� �������,15
��������� ��������� ���������,25
��� ������������� �������,40
"��������, ����������� �� ���-������� ����������� ������",11
��������������� �������� ���������,10
���� ������� ���. ���������� ���������� �������,71
��� �.��������������� ������������� �������,8
��� �������� ���������� �������� �������,18
��� ������������ �� ����� ����������� ������,54
��� ����������� �� �������������� ���������� �������,16
�������� ���. ������� ���������� �����������,319
����. ������� ����������� ������������ ������,140
������� ����� �������,170
��.������ ������ ��������� ���. ���������������� �������,143
��������� ���.���� ��������� ���������,80
����. ������������� ���������� ���������� ������,8
��� ������������� ��������� ������ �������� �����������,11
��� ����������� ���. �������,61
��� ������� ������ ����� ��������,42
��������� ���������� ���������,25
�������������� ���,11
��������� ���,158
������ ���������� �� ��������� ���,40
���������� ���. �������� ������,258
��� ������ �� ������������ �������,33
��� ����� ������ �������,59
������ ���. ���������� ������,63
���������� ��������� �����������,56
������ ��������� ��������� ���,36
�� ������������,71
���������� ��������� ������� ����,6
�������� ���������� ����� ���������,7
��� ��-��-�� ���������,24
�.�������� ����������� ����������,36
������������� �������,40
��� ����-������,20
��� ������-� ���������� �����,26
��� ���-���-������� ���������-������������ �������,58
��� �.��������� ������������ ������,10
��� ����������� ��������� ������,15
��� ������ ��������,67
��� ����-2011,37
��� ������ ������������, ���������� �� ����������� ���������� �������,14
��� �����,5
��������� ���.��������� ������������ ���,14
���������� ���������,39
��� �������,23
��� ��������,4
��� �.������������ ����������������� ������� ��������,21
��� ��� ����� �������������� ���������,60
��� ��������� ������ ����������� ���,60
��� ���������� ���� �������,15
��� �������,11
��� ����,3
���������� ����� ������ �������,38
��� ����� ���������� ���������� ������,32
��� ������,34
��� ���������,3
������� ���������� ��������� �����������,70
������������ ������,7
�� ������������ ���������� ������,111
��� �.������������ ���.�������� ������������� �������� ������,36
�� ���������� �����������, ������� �� ��������� ����������� ���,120
�������� ���. ���������� �������������� �������,76
��� ������� �������,25
������������ ����������������� ������,15
"�����.���.-������,�������� ������ ������",6
�������� �� ����������� ���������� ����������� ��� ����,20
��������� ������������ ����������� ���������� ������,135
��� �������,10
��� ���� ���� ������,55
��� ������,16
��� ������,25
������ ������� ���������,6
��� ������,18
��� ����������,6
��� ��������,4
��� ������������� ��������� �� ��������� ������,4
��� ������,5
��� ����������,16
�� �������,6
���� ������� ������,11
��� �.������������ ���.�������������� �������,147
��� ����� ������������ �������,22
��� �������,201
���������� ��������� ������ ������� �������,6
��� �������� ��������� ���������,36
��� �����,81
������� ������� �������� ��������� ������,7
��� ������������,19
��� ������������ �����,10
��� ������� ������ �������� ���������� ���������,120
��� ����� �������� ������� ������,160
��� ������� �������,10
����������� ���������� �� �������������� ������,53
�������� ������� ��������� �����������,44
��� ���������,20
�������� ������ ������� �����,21
��� ����� ���������� ������,17
��������� �������� ������,68
������� ����������� # 1,16
��� - ��� - ������� �������,6
��� ����.�������.������ �������-����,24
���������� ����� ����������� ������,382
������������� ������� ��� ����,69
��������� ������� ������������,20
��� ����� ������� 21 �������,16
������������ ��������� �������-� �������,20
��� ���������� ������ �����������,3
��.����� �������� ���.������ �������,29
��� ������� �����������,67
������������ ������� �� ���� ���.���������� ������,87
������������ ������� ������������� �����,7
�� ������� �������,83
��� ������� �������� ���������� �����,62
��� ��� ���������,145
������� ���������,21
���� ��������� ��� ����������,8
��� ������ ���������������� �����������,25
��� ������� ���������� ������ ������,18
��� ������������ ���������� ������,72
��� ����������� ���������� ������,30
������� ������������ ������ ������,40
���������� ����� ��� ��������,16
��� �������� ������������� �������,30
�������� ����������� ������,61
��� ������� ���������� �����������,70
��� ��������� ������� ��������,20
��� ��������� ���������� �����������,10
������� �����,17
��� ������������ ���������� ������,25
��� ��������� ������� �������,29
��� ������� ����� ����������� ������,2
��� ����,3
��� ������� ���������� ������ �������,20
��� �������������� ��������� �����������,85
�������� ���.��������� ���������� ������������� ������,90
����� 2 ���������� �����,30
��.��������� ���. ���������� ������,20
�.�������� ���.������������� ��������� �������� ������,220
���� ��������� ��������� �������,30
������� � �,54
���������� ����� 3,60
�� ���������� �������� ������ ��� �� ��,122
����������.�� ������� ����������� ������,20
��� ��������� ������������ ������,30
�������� ��������� �����������,60
���������� ���������������� �����������,52
��� �.������� ���. ���-���-������� ������� ����,5
��� ���� 1,3
��� �������,50
�� ���������� ���������� ������ �������,20
�������� �����������,15
��� ������������,25
��� ������������,15
��� ����������� ��������� ������,15
��� ������������,33
������� ������������  ��������,65
��� ����� �������,20
�� ���������� ���������� ������ �������,15
��� ������������,46
�������� �����������-������������� �����������,127
��� ����������� ��������� ������,15
�� ���������� ���������� ������,19
��������� ������������ ������ ������,482
���������� ����������� ���.������,15
�� ���������� ���������� ������ ���������� ���������,160
����������� ���������������� �����������,30
��� ������������� ������� ���� �������,11
��� ����� �������-������������� �������,13
���������� ������ ������ ���������,15
�� ���������� ���������� ������ ���������,15
��� ������� ����������� ������,20
���������� �����,60
���������� ����� ����-����,32
��� ��������� �������,15
�� ���������� ������ ��������� ���������,15
�.������� ���. �������� ���������� �����,11
����� ������ ����������� ���������,35
�� ���������� ���������� ������ ���������,15
�� ���������� ������ ����� ���������,15
���������� �����,31
������������� ����������,10
�� ���������� ��������� �����������,40
��� ����������� ��������� ������,22
�� ������� ������ �� ������� ������,74
������� ����������� �� �������,110
��� ����� �� �������,20
��� �.����������� �������,23
��� ������,8
��� ��� ����,26
��� ��������� ��������� ������ ������,26
��� ��������� �����������-�����������,5
��� ������ ��� �������,57
������������ ����������� ������,90
������� �����������,45
���������� �����,35
��������� ������������ ������,29
��� ������� ������� ���������� ������,21
���������� �����������,112
��� ������� �������,61
��� ���������� ������� ���������� �����,23
��� ����� ���������� ������,54
��� ������������,25
��� ����� ���������� ������,15
����������� ��������� ������,15
��� ����,23
"��� ������������ ���������� �����, ������������� ������",28
��� ������� ������� ������� 1 ���������� �����,32
��� ���������,20
��� ��������� ����������� �������,19
������������ ����������� �������,146
��� ����������� ��������� ������,15
��� ����������� ��������� ������,25
��� ������� ���������� ������,20
��� �������,57
��� ����������� ��������� ������,5
��� ������� ���������� ���������� ������,5
��� ������� ���������� ������������� ������,15
��� �������,15
����. ������������� ����������� ����������,120
��� ����������� ��������� ������ �������,12
�� ���������� ���������� ������ ����������,82
��� ������� ���������� ������,76
��� ������� �����,24
��� ������������,38
��� ������� ����������� ���������� ������,25
��� ������������,15
��� ��������� ��������� ������,15
��� ������������,62
��� ����������� ���������� ������,13
��� ����������� ��������� ������,25
��� ����������� ��������� ������ �������,25
����������� ��������� ������,15
��� ��������� ��������� ������,25
��������� ����������� ��������� �.����,174
������������ ���������� �� �������������� ������,108
18 ������������ �� ����������� ���������� ������������,161
;;;;
1 REPLY 1
Oligolas
Barite | Level 11

Hi,

 

if your xls isn't a native excel file proc import won't work.

Try saving your XLS as XLSX and use DBMS=xlsx

 

If it works and you need to automate the conversion try this

 

Cheers

________________________

- Cheers -

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1 reply
  • 626 views
  • 0 likes
  • 2 in conversation