The SAS Output Delivery System and reporting techniques

Modify code SAS

Reply
Occasional Contributor
Posts: 5

Modify code SAS

Hello

I want to import file that contain text (with tabulation and space in first off the line) :
File :
----------------
toto
tititi
toto
----------------
in the first line i have 2 spaces
in the 2 line tabulation
in the 3 line i have 1 space

The result of import

Proc print data=f; run;
Obs state

1 toto
2 tititi
3 toto

How to do o keep the space for the obs 1 and 3??

thanks
Sorry for my english
SAS Super FREQ
Posts: 8,866

Re: Modify code SAS

Posted in reply to parametreSEG
Hi:
This does not seem like an ODS or Base Reporting (PRINT, REPORT, TABULATE) question. If you have problems using PROC IMPORT or writing a DATA step program to import in a way that preserves leading spaces in a variable field, your best bet for help is to contact Tech Support for help with the INFORMATS that you use to read your file.


To send a question to Tech Support, go to http://support.sas.com/ and in the left-hand navigation pane, click on the link entitled "Submit a Problem".

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 117 views
  • 0 likes
  • 2 in conversation