Author |
Message
|
alma |
Posted: Thu Dec 22, 2011 8:33 am Post subject: Simple text message |
|
|
 Apprentice
Joined: 26 Jan 2011 Posts: 36
|
Hi,
Can somebody help me how I can send simple text message to the output.
It wouldn't be XML or CSV or anything else just the simple, normal text with date and time data.
Thenk you.
 |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 22, 2011 8:36 am Post subject: Re: Simple text message |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alma wrote: |
Can somebody help me how I can send simple text message to the output. |
What output? File, WMQ message, email, TCP/IP?
alma wrote: |
It wouldn't be XML or CSV or anything else just the simple, normal text with date and time data. |
So already it has structure: some text & a timestamp. Already it's not "simple".
In any event, you need a message set to write to any output. Even if the message set has only 1 element you're rolling by hand. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
alma |
Posted: Thu Dec 22, 2011 8:44 am Post subject: |
|
|
 Apprentice
Joined: 26 Jan 2011 Posts: 36
|
Hi Vitor,
I want to send a simple sentence with timestamp in it.
No need to XML tags or CSV separators.
Thanks for yor answer.
I can send it in XMLNSC domain, but is not suitable now. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Dec 22, 2011 8:47 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So you are confused about how to construct an unmodeled stream of data, that happens to consist of a set of characters, and then another set of characters that is dynamically configured, and then potentially a third set of characters.
And you are confused then about how to send this constructed stream of characters to an "output" of some kind.
This indicates that you have failed to understand any of the training you have had on Broker.
or that you have failed to take any training and are desparately hoping, despite copious evidence to the contrary, that this site will provide you with free training.
Read, think, try, repeat. |
|
Back to top |
|
 |
alma |
Posted: Thu Dec 22, 2011 9:01 am Post subject: |
|
|
 Apprentice
Joined: 26 Jan 2011 Posts: 36
|
Hi mqjeff,
You are right. I'm not a top MB developer not at all. I thought I would get a small help here.
Now I know why I will not come here so frequently.
I'm sure you are genius in everything.
Bye.
 |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 22, 2011 9:06 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alma wrote: |
I want to send a simple sentence with timestamp in it.
No need to XML tags or CSV separators. |
But you still need a message set. It doesn't need an XML format or any separators.
alma wrote: |
I can send it in XMLNSC domain, but is not suitable now. |
No, it wouldn't be. Because it produces XML not text.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Dec 22, 2011 9:07 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
alma wrote: |
I thought I would get a small help here. |
And if you read my post, you will see that I did give you some small help. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 22, 2011 9:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alma wrote: |
You are right. I'm not a top MB developer not at all. |
This much is obvious.
alma wrote: |
I thought I would get a small help here. |
I thought you did. I apologise for not giving you the answer you expected but that's just how the product works.
alma wrote: |
Now I know why I will not come here so frequently. |
We'll miss you. Honest.
alma wrote: |
I'm sure you are genius in everything. |
Certainly so far as WMB goes.
Ensure the door doesn't strike anything on your way out.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Dec 22, 2011 9:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
But you still need a message set. |
No, you don't. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Dec 22, 2011 9:18 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
And in the spirit of the season,
Look out, he's behind you... _________________ 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 |
|
 |
Vitor |
Posted: Thu Dec 22, 2011 9:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
But you still need a message set. |
No, you don't. |
No, strictly you don't, but if you need to ask you should stick with using one rather than the alternative.
Remember, not everyone has your genius....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
alma |
Posted: Thu Dec 22, 2011 2:32 pm Post subject: |
|
|
 Apprentice
Joined: 26 Jan 2011 Posts: 36
|
Execuse me, please.
But when my colleagues held the christmas party on the ground floor and I work on the first floor because my job depend on it, because my boss find out this job at the end of this year and of course when I have finished it but XMLNSC domain and suddenly it turned out that it was not good I have no humor to puzzle about your mystic answer.
And I don't want a free training just a helping sentence.
For example:
"Maybe TDS will help you."
Thank you. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Dec 22, 2011 3:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alma wrote: |
when my colleagues held the christmas party on the ground floor and I work on the first floor because my job depend on it |
I don't offer career advice for reasons obvious to anyone who's familiar with my career but IMHO if you job depends on completing a task you're not trained to do in an unrealistic timescale it's not a job worth holding on to.
alma wrote: |
my boss find out this job at the end of this year and of course when I have finished it but XMLNSC domain and suddenly it turned out that it was not good |
So your boss is as good with requirements as he is with training? I stick with my assertion above.
alma wrote: |
I have no humor to puzzle about your mystic answer. |
And we have no humor to deal with your problems. If you don't like the advice you're being given here or the way it's being given, seek help elsewhere.
alma wrote: |
I don't want a free training just a helping sentence. |
No, you want the answer spelt out. I've told you twice what to do.
alma wrote: |
For example:
"Maybe TDS will help you." |
TDS will not help you. Additional reading skills and/or an attitude adjustment might. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Sat Dec 24, 2011 9:40 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
As it's Christmas...something like this will work:
Code: |
SET OutputRoot.BLOB.BLOB = CAST "This is my output string" AS BLOB CCSID 1208; |
|
|
Back to top |
|
 |
mqjeff |
Posted: Sat Dec 24, 2011 10:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
kimbert wrote: |
As it's Christmas...something like this will work:
Code: |
SET OutputRoot.BLOB.BLOB = CAST "This is my output string" AS BLOB CCSID 1208; |
|
More strictly,
Code: |
set myString = 'This is my starter string'||CAST(CURRENT_TIMESTAMP AS CHARACTER FORMAT 'T')||'This is my trailer string';
Set OutputRoot.BLOB.BLOB = CAST(myString as BLOB CCSID 1200); |
If you had taken the time to READ the information center and THINK about what you wanted to do, and TRIED a few things, you would have SOLVED THIS YOURSELF a couple of days ago.
And you wouldn't still be struggling with it, and you wouldn't still be angry about the people who post here. |
|
Back to top |
|
 |
|