BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MarkNicholas
Obsidian | Level 7

Dear,


I am in a support team and a set of users from a particular site are having a weird issue of unable to create a text file 'correctly'.

A simple dataset was exported to text file, but when they open text file in Notepad, the data is continuous without spaces but for all of us it displays as usual

However, when user opens that file in WordPad , it displays in a single column correctly.

I have attached "file.jpeg" showing the screenshots in it.

Dataset - see screenshot Dataset

When all of us open in Notepad -  See screenshot Normal

Problem when user opens in Notepad -  See screenshot Issue

file.JPG


Please see below points:

1)We are on Linux platform, our machine is Windows 7 ,running on SAS EG 6.1 (32-bit)

2) Used both known ways of exporting files

proc export
data=eb1
outfile="/<unixpath>/testfile.txt"
dbms=TAB replace;
putnames=no;
run;

data _null_ ;         
    set eb1 ;
    FILE '/<unixpath>/testfile.txt'  ; 
    PUT ebn2;
run ;

3)
When user creates text file , it opens with incorrect alignment. When we run it,it opens with correct alignment - with same code on same server.

4) proc setinit;run; returns same for all of us

5) The locale details in Windows machine are same.

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Notepad is a Windows program; you created your file in Linux. How did you transfer the file from Linux to Windows?

Looks like the transfer did not convert UNIX LF to Windows CR/LF. Notepad can't deal correctly with UNIX text files, Wordpad can.

View solution in original post

1 REPLY 1
Kurt_Bremser
Super User

Notepad is a Windows program; you created your file in Linux. How did you transfer the file from Linux to Windows?

Looks like the transfer did not convert UNIX LF to Windows CR/LF. Notepad can't deal correctly with UNIX text files, Wordpad can.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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