Using a Macintosh SAS Program File in SAS for Windows
PROBLEM: The SAS program that I saved in a Macintosh SAS session doesn't format properly when I try to use it in SAS for Windows. (Specifically, all the program statements are on a single line, with 'funny characters' [empty squares, for example] at the point where each line should end.) REASON: Files saved from a SAS window (such as the Program Editor) are ASCII files. In the Macintosh, each line is terminated with a Carriage Return (ASCII 13). ASCII files in DOS, however, need both a Line Feed and a Carriage Return (ASCII 13 and 10). When files come to DOS with only a Carriage Return (like those created on a Macintosh), the lines appear merged together in a single line. SOLUTION: To add the proper character for the DOS Line Feed/ Carriage Return(LF/CR), Open the file in BBEdit, then click Save As and before saving, click Options and choose DOS line breaks. Here are step-by-step instructions: 1. Save file from SAS window 2. Open BBEdit (it's in Productivity & Other Tools>Viewers and Utilities) 3. Click File>Open and choose the file you want to convert 4. Click File>Save As and choose a new file name (or you can click File>Save and save to the same name, if you wish) 5. Before saving, click Options, then in the 'Line Breaks' field, choose DOS from the pull-down menu 6. Click OK, then Save, to finish the conversion.