Author |
Message
|
EnOne |
Posted: Tue Mar 28, 2006 9:19 am Post subject: invalid Carriage Return / Line Feed in esql files |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 100 Location: Kansas City
|
when I develop using the Message Broker Toolkit V5 everything looks normal
Code: |
CREATE COMPUTE MODULE TEST_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE; |
when i try to look at this file using notepad all of the Carriage Returns/Line Feeds have been converted to boxes. Which is what I expect for an invalid character. There are other developers where I work and they do not have this problem.
How do I change WBIMB so it saves the esql files in a format that I can use to see them correctly in notepad? |
|
Back to top |
|
 |
poker |
Posted: Tue Mar 28, 2006 9:23 am Post subject: |
|
|
Novice
Joined: 14 Mar 2006 Posts: 20
|
Is ur code working properly?
on the topic list, when u pasted everything looks good  |
|
Back to top |
|
 |
wschutz |
Posted: Tue Mar 28, 2006 10:09 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
There are other developers where I work and they do not have this problem. |
Well then, try to figure out whats different on their machines... are they looking at the same esql file as you are looking at or at an esql file in a workspace on their own machines.
Quote: |
How do I change WBIMB so it saves the esql files in a format that I can use to see them correctly in notepad? |
afaik, there's no setting for this, have you tried "wordpad"? _________________ -wayne |
|
Back to top |
|
 |
mgk |
Posted: Tue Mar 28, 2006 12:03 pm Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hi,
Quote: |
when i try to look at this file using notepad all of the Carriage Returns/Line Feeds have been converted to boxes. Which is what I expect for an invalid character |
It is not an invalid character, this is how notepad displays a CR character. This is because the file only contains CR characters to end the line, not a CR followed by an LF. Notepad needs both the CRLF characters together to display lines correctly. Try using a better editor than notepad, like the ESQL Editor in the toolkit . Or Emacs, Textpad, or even vi
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
EnOne |
Posted: Tue Mar 28, 2006 1:34 pm Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 100 Location: Kansas City
|
Yeah, I know that I can use pretty much any other editor other than notepad can see the code correctly but I was hoping that someone knew what character set WBIMB was saving the esql files to to make sure that it was truely saving the files in ASCII format. |
|
Back to top |
|
 |
fschofer |
Posted: Tue Mar 28, 2006 11:10 pm Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
its valid ASCII but the problem is that notepad cannot display it.
Quote: |
Generally, using a text editor is the simplest and most convenient way of converting a text file between different newline formats; most modern editors can read and write files using at least the different ASCII CR/LF conventions. Unfortunately, the standard Windows editor Notepad is not one of them, though Wordpad is. |
http://en.wikipedia.org/wiki/Newline
Greetings
Frank |
|
Back to top |
|
 |
EnOne |
Posted: Wed Mar 29, 2006 5:42 am Post subject: |
|
|
 Centurion
Joined: 09 Oct 2002 Posts: 100 Location: Kansas City
|
I think I'll change the default editor from notepad to wordpad for now. I'll post again if I find a solution that has the esql files opening in notepad. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 29, 2006 6:24 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The ESQL editor is fairly nice - except for the fact that it won't show line numbers ( ).
Since v5, I've seen no need to work with ESQL outside of Eclipse and the ESQL editor. 2.1 was a different story, though... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Mar 29, 2006 6:40 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
jefflowrey wrote: |
The ESQL editor is fairly nice - except for the fact that it won't show line numbers ( ) |
Gee...I always thought that was a line and column number on the bottom:
Quote: |
Writable : Insert : 14 : 46 |
or do you want them in the editing area itself? _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 29, 2006 6:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
wschutz wrote: |
or do you want them in the editing area itself? |
I'm a simple man, with simple wants. I want it to work the same way all of the other text based editors work - where there is an optional preference to show line numbers on the sidebar. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|