ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexGeneral IBM MQ Support#char for QMGR name

Post new topicReply to topic Goto page 1, 2  Next
#char for QMGR name View previous topic :: View next topic
Author Message
RAKI
PostPosted: Wed Dec 16, 2009 3:57 pm Post subject: #char for QMGR name Reply with quote

Novice

Joined: 02 Dec 2009
Posts: 23

Hi folks,

Just a quick Question ....what is the max # of char name that can be used for QMGR name ????

We are using the MQ v 6

Thanks in advance !
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 16, 2009 5:27 pm Post subject: Re: #char for QMGR name Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

RAKI wrote:
Hi folks,

Just a quick Question ....what is the max # of char name that can be used for QMGR name ????

We are using the MQ v 6

Thanks in advance !

It should be specified in the programing manual or in its appendixes describing the structures...(MQMD etc... MQCONNX...)

So &
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Dec 16, 2009 5:46 pm Post subject: Re: #char for QMGR name Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

RAKI wrote:
what is the max # of char name that can be used for QMGR name ????

We are using the MQ v 6


It's the number of characters given in the constant provided to describe the max length of a queue manager name. It's also given in the documentation where it describes what characters are acceptable for use in a queue manager's name. And how many of them.

I doubt posting this quick question here was that much quicker than looking it up.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Dec 16, 2009 10:47 pm Post subject: Re: #char for QMGR name Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Vitor wrote:
It's the number of characters given in the constant provided to describe the max length of a queue manager name.

MQ_Q_MGR_NAME_LENGTH?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 17, 2009 4:51 am Post subject: Re: #char for QMGR name Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

rekarm01 wrote:
Vitor wrote:
It's the number of characters given in the constant provided to describe the max length of a queue manager name.

MQ_Q_MGR_NAME_LENGTH?


Quite so, but I was trying to encourage reasearch.

A little fishing is good for the sole....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RAKI
PostPosted: Thu Dec 17, 2009 8:13 am Post subject: Reply with quote

Novice

Joined: 02 Dec 2009
Posts: 23

"It should be specified in the programing manual "

Can let me know which programing manual it is ????
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 17, 2009 9:41 am Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

RAKI wrote:
"Can let me know which programing manual it is ????


Well there's only 2 so a simple process of elimination should quickly turn it up. Especially as you've been given 2 search terms to use....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
RAKI
PostPosted: Thu Dec 17, 2009 1:02 pm Post subject: Reply with quote

Novice

Joined: 02 Dec 2009
Posts: 23

Guys thanks for the help anyhow this is what it is
MQ_Q_MGR_NAME_LENGTH= The length is 48 characters.
This defines the length of the queue manager name field.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 17, 2009 2:26 pm Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

RAKI wrote:
This defines the length of the queue manager name field.


And for extra points:

- what chatracters are valid?
- what link in the Infocenter describes this?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Dec 17, 2009 3:12 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
what chatracters are valid?

Vanna White got this half-right.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Thu Dec 17, 2009 4:18 pm Post subject: Re: #char for QMGR name Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Vitor wrote:
And for extra points:

So is that 48 characters, or 48 bytes?
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Dec 22, 2009 4:20 pm Post subject: Re: #char for QMGR name Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

rekarm01 wrote:
Vitor wrote:
And for extra points:

So is that 48 characters, or 48 bytes?

48 single-byte characters. So yes and yes, in that order.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Dec 22, 2009 4:42 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
48 single-byte characters. So yes and yes, in that order.

For clarity, WMQ has predefined elementary data types.

. MQBYTE - Byte
. MQBYTEn – String of n bytes
. MQCHAR – Single-byte character
. MQCHARn – String of n single-byte characters

MQBYTE and MQCHAR are different. Further reading in the WMQ APR and APG delineate how MQBYTE and MQCHAR behave and are treated by WMQ internals.

From the APR:
MQBYTE - byte
The MQBYTE data type represents a single byte of data. No particular
interpretation is placed on the byte; it is treated as a string of bits, and not as a binary number or character. No special alignment is required.

When MQBYTE data is sent between queue managers that use different character sets or encodings, the MQBYTE data is not converted in any way. The MsgId and CorrelId fields in the MQMD structure are like this.

MQCHAR - character
The MQCHAR data type represents a single-byte character, or one byte of a double-byte or multi-byte character. No special alignment is required.
When MQCHAR data is sent between queue managers that use different character sets or encodings, the MQCHAR data usually requires conversion in order for the data to be interpreted correctly. The queue manager does this automatically for MQCHAR data in the MQMD structure. Conversion of MQCHAR data in the application message data is controlled by the MQGMO_CONVERT option specified on the MQGET call; see the description of this option in “MQGMO – Get-message options” on page 126 for further details.

From the WMQ System Admin manual for UNIX and Windows, the crtmqm control command:
Required parameters
QMgrName
The name of the queue manager to create. The name can contain up to 48 characters.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mvic
PostPosted: Tue Dec 22, 2009 4:51 pm Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

bruce2359 wrote:
From the WMQ System Admin manual for UNIX and Windows, the crtmqm control command:
Required parameters
QMgrName
The name of the queue manager to create. The name can contain up to 48 characters.

This does assume single-byte characters. So 48 characters == 48 bytes in the scope of that particular piece of advice.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Dec 22, 2009 4:56 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
So 48 characters == 48 bytes in the scope of that particular piece of advice.

For precision, and in MQ-speak, MQCHAR48 == MQCHAR48.

My point is that MQBYTE, while the same size (8-bits) as an MQCHAR, is not treated the same by WMQ. So, technically, operationally, annoyingly, a byte is not == a character.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum IndexGeneral IBM MQ Support#char for QMGR name
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.