XChancgCL is designed to only work on true text files.
Your files are in ..\QAWRITE\ folder which suggests the files are created with QAWRITE. This may be causing part of the problem. Have they been saves as text files, or just have a *.txt extebsion? IS there any header information on the files that would indicate they are not true text files?
Have you tried using "test" files created with wordpad or notepad vs. qawrite?
Yes, I am ignoring the change between Operating Systems and DOS windows vs. batch files. But those areas have been explored, so I am trying to consider other possible causes.
---------------------------------
Another thought...
It looks like you are trying to replace 2 CRLF codes with a single one. I have not tried this yet, but is it possible that you are missing a "/" character near the end?
C:\QA>xchangecl -t# c:\qa\write\bharat.txt /#13##10##13##10#/
/#13##10#/
Oops, never mind, wrong syntax. But if you are trying to make it all one line, then this may be more correct?
C:\QA>xchangecl -t# c:\qa\write\bharat.txt /#13##10##13##10#//
I think this syntax will remove all double CRLF codes and replace with null.
If you need to replace characters in position 321, how about using a RegEx utility insteac of XCL?
Actually you could do that with Sesame functions. Here is untested code:
var RemovePosition as Int
var vNewString as String
vRemovePosition=321 /Could be a user prompt
vNewString = @Left(OldString,vRemovePosition-1) + @MidStr(OldString,vRemovePosition+1, @Len(OldString))