Author |
Message
|
m.arunprasad1 |
Posted: Tue Mar 12, 2013 7:19 pm Post subject: How to add a new line character at End Of my message |
|
|
Novice
Joined: 11 Feb 2013 Posts: 19
|
I am using Message Broker 6.0.2 version and I am generating a fixed length format message where I am getting the message in the expected format.
But when I open the message my cursor is at the top of the message where as the requirement is the cursor should be at the end of my message
Output Message
Code: |
110300000001 01 1012 TE TG af1 00000122T 0000000002000000000020 000000000100000000002003132
110300000002 01 1012 TE TG af1 00000122T 0000000002000000000020 000000000100000000002003132 |
Hex Version
Code: |
30 30 30--30 30 30 31 20 20 30 31 |110300000001 01|
00010 20 20 20 20 20 20 20 20--20 20 31 30 31 32 20 54 | 1012 T|
00020 45 20 54 47 20 20 61 66--31 20 20 20 20 20 20 20 |E TG af1 |
00030 20 20 20 20 20 20 30 30--30 30 30 31 32 32 54 20 | 00000122T |
00040 20 20 20 20 20 20 30 30--30 30 30 30 30 30 30 32 | 0000000002|
00050 30 30 30 30 30 30 30 30--30 30 32 30 20 20 30 30 |000000000020 00|
00060 30 30 30 30 30 30 30 31--30 30 30 30 30 30 30 30 |0000000100000000|
00070 30 30 32 30 30 33 31 33--32 20 20 0D 0A 31 31 30 |002003132.110|
00080 33 30 30 30 30 30 30 30--32 20 20 30 31 20 20 20 |300000002 01 |
00090 20 20 20 20 20 20 20 31--30 31 32 20 54 45 20 54 | 1012 TE T|
000A0 47 20 20 61 66 31 20 20--20 20 20 20 20 20 20 20 |G af1 |
000B0 20 20 20 30 30 30 30 30--31 32 32 54 20 20 20 20 | 00000122T |
000C0 20 20 20 30 30 30 30 30--30 30 30 30 32 30 30 30 | 0000000002000|
000D0 30 30 30 30 30 30 30 32--30 20 20 30 30 30 30 30 |000000020 00000|
000E0 30 30 30 30 31 30 30 30--30 30 30 30 30 30 30 32 |0000100000000002|
000F0 30 30 33 31 33 32 20 20-- |003132 |
|
(i.e I need to add a new line character(OD OA) at the end of my message)
Please Help  |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Mar 12, 2013 8:20 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
1) V6.0.2 is well out of support so unless you are paying IBM a whole heap of money for extended support, why are ypu still using such an old version.
2) This question has been asked many times before. Have you searched for one of the many solutions?
3) How are you 'opening' the message?
4) Why do you think that you need to add a CR/LF to the message?
5) Have you tried to move your cursor in code in order to meet your requirement? (Which might be wrong by the way.) _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
m.arunprasad1 |
Posted: Tue Mar 12, 2013 11:36 pm Post subject: |
|
|
Novice
Joined: 11 Feb 2013 Posts: 19
|
smdavies99 wrote: |
1) V6.0.2 is well out of support so unless you are paying IBM a whole heap of money for extended support, why are ypu still using such an old version.
I am aware, V6.0.2 is preety much old version, but our Business has been using this version and we have extended the support with IBM
2) This question has been asked many times before. Have you searched for one of the many solutions?
I found may thread stating to remove the newline character, but unable to find the one for adding the new line(OD OA) at the end of my message
3) How are you 'opening' the message?
I am opening the message with Notepad
4) Why do you think that you need to add a CR/LF to the message?
This is a Business Requirement. Also this file is being used by some other source. Please suggest me if it is possible, if not i will update them
5) Have you tried to move your cursor in code in order to meet your requirement? (Which might be wrong by the way.)
As you were telling this is not a right way |
Please help.. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Mar 13, 2013 12:54 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Add a group terminator to the outermost complex type. |
|
Back to top |
|
 |
m.arunprasad1 |
Posted: Wed Mar 13, 2013 3:13 am Post subject: |
|
|
Novice
Joined: 11 Feb 2013 Posts: 19
|
Thanks Kimbert.. That served my purpose.
 |
|
Back to top |
|
 |
|