Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Viewing all articles
Browse latest Browse all 310

Leading Zeros: NotePad; Excel; SAS

$
0
0
Hello,

I have a dataset saved as 'txt'. It is composed of four variables, a mix of numeric and character, '|' delimited. I am trying to import this file into SAS.

Issue: I have a variable within these four that occassionally presents with leading zeros. The variable has been stripped of its decimals and if it has a leading zero, this serves as a place holder for future placement of decimals in variable. When I import this dataset into SAS or Excel I lose the leading zero. I need the zero so I can place the decimals back into the number.

I am happy to do this in Excel, but I am coming across the same issue. I have imported it as 'csv' as well and still lose my zeros.

This is a huge data file (very long). I have split it into three files as well to get it into excel. Ideally I would not mind importing it into Excel, adding the decimals back than going from there, but I cannot do this since I keep losing the leading zeros.

Any help would be appreciated.

Viewing all articles
Browse latest Browse all 310

Trending Articles