SET SASDATA ;
FILE OUTIT ENCODING=ASCII LINESIZE=240 ;
The process works and the log shows the correct line output to the pc file. But when I browse the output with word pad, it concatenate the file into 1 long line. Looks like the carriage return is missing from each line. Does anybody have any idea how to write out a carriage return at the each line ?
I realized there are other ways to skin this cat but this is part of a macro that is writing out to different platforms and we are trying to avoid another JCL or data step.
As I understand it, this is a Windows NotePad problem. The data structure is correct. As a circumvention, open the file with WordPad, and if you save the file once, then you can open it with NotePad after.
Review the SAS Companion for z/OS documentation -- refer to the TERMSTR and ENCODING discussions (there are multiple references). Also, I recommend coding as few parameters as required, letting SAS defaults take unless absolutely required. I have no problem doing FTPs (EBCDIC-to-ASCII) from SAS FILENAME with FTP engine to Windows/Unix, except for the Windows NotePad/WordPad behavior differences.