I am using STRTOFILE to write text from a CURSOR to a text file. I am appending CHR(13) to each new string. After doing so, the file appears fine when using MODIFY COMMAND. But when using Notepad or importing on a mainframe, the file appears as one long string, with an embedded CRLF. Any ideas woudl be greatly appreciated. Here is the code;
lc_StringToWrite = "D" + Parcel + '01' + Status + ;
STUFF(ALLTRIM(STRTRAN(TRANSFORM(Twshp_Due,'9999999.99'),'.')),1,0,REPLICATE('0',(8-LEN(ALLTRIM(STRTRAN(TRANSFORM(Twshp_Due,'9999999.99'),'.')))))) + ;
STUFF(ALLTRIM(STRTRAN(TRANSFORM(School_Due,'9999999.99'),'.')),1,0,REPLICATE('0',(8-LEN(ALLTRIM(STRTRAN(TRANSFORM(School_Due,'9999999.99'),'.')))))) + ;
CHR(13)
IF STRTOFILE(lc_StringToWrite, "&lc_DiskFile", 1) # 0
...
ELSE
...
ENDIF
lc_StringToWrite = "D" + Parcel + '01' + Status + ;
STUFF(ALLTRIM(STRTRAN(TRANSFORM(Twshp_Due,'9999999.99'),'.')),1,0,REPLICATE('0',(8-LEN(ALLTRIM(STRTRAN(TRANSFORM(Twshp_Due,'9999999.99'),'.')))))) + ;
STUFF(ALLTRIM(STRTRAN(TRANSFORM(School_Due,'9999999.99'),'.')),1,0,REPLICATE('0',(8-LEN(ALLTRIM(STRTRAN(TRANSFORM(School_Due,'9999999.99'),'.')))))) + ;
CHR(13)
IF STRTOFILE(lc_StringToWrite, "&lc_DiskFile", 1) # 0
...
ELSE
...
ENDIF