Sometimes JMP is too helpful with the CR LF normalization for the OS it is running on. If you know exactly the byte sequence you want, make a blob and use SaveTextFile to save the blob. Something like (untested, but close...)
txt = "my\!ntext\!r.";
filename = SaveTextFile("$temp/x.bat", charToBlob( txt ) );
second edit: you can test like this
txt = "my\!ntext\!r.";
filename = SaveTextFile("$temp/x.bat", charToBlob( txt ) );
write(loadtextfile(filename,BLOB));
Char To Blob( "my~0Atext~0D.", "ascii~hex" )
which shows the binary data found in the re-loaded file. ~0A is the hex code for the line feed and 0D for the carriage return.
third edit: use \!N (capital N) if your JSL is running on windows. It will make the CRLF on Win, something else if running on Mac. Do NOT press return in the middle of a quoted string in the JMP editor window; that will only make a CR (on windows JMP, can't tell you about Mac JMP, except it will be different.)
For portable results (JSL running on Win and Mac), use \!r\!n (lower case r and n) AND the charToBlob() function with saveTextFile.
Craige