Author |
Message
|
Cogito-Ergo-Sum |
Posted: Mon Oct 23, 2006 10:07 am Post subject: Values in CMQMDV |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Hi,
I am looking into the CMQMDV member for the MQ message descriptor variables and their values. A question popped in my mind. Are these values constant in every installation ?
Thanks. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
kevinf2349 |
Posted: Mon Oct 23, 2006 10:26 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Yes they should be...... Of course there is no way of us telling if your site sysprogs have had their grubby little fingers in there 'tweaking' things.
You could tell by looking at the directory stats. |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Mon Oct 23, 2006 10:35 am Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
After posting the topic, I thought, probably, these values would not be constant across. For example, MQMD-ENCODING and MQMD-CODEDCHARSETID. Can these values be expected to be constant ?
(I am still talking about z/OS.) _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
kevinf2349 |
Posted: Mon Oct 23, 2006 11:10 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Because they set the default for encoding to MQENC_NATIVE and CCSID to MQCCSI_Q_MGR ... problem solved
 |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Mon Oct 23, 2006 11:13 am Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Yes, Kevin, I see your point. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 21, 2006 2:41 pm Post subject: |
|
|
Guest
|
CMQMDV is a copy-book (COBOL) or include-file (C). It is shipped with the MQ product. It sets initial values for attributes for MQ structures (like MQMD), to be used by application programmers.
Refer to the Application Programming Reference, Application Programming Guide |
|
Back to top |
|
 |
wschutz |
Posted: Tue Nov 21, 2006 2:45 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
and, of course, things like MQAT-DEFAULT (in CMQV) are going to change from Windows to UNIX to iSeries etc..... _________________ -wayne |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Nov 21, 2006 2:49 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
CMQMDV is a copy-book (COBOL) or include-file (C). It is shipped with the MQ product. It sets initial values for attributes for MQ structures (like MQMD), to be used by application programmers.
|
Yes, true ....but the initial question was
Quote: |
Are these values constant in every installation ? |
|
|
Back to top |
|
 |
wschutz |
Posted: Tue Nov 21, 2006 2:52 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
and, of course, constants like *VERSION can change as well...
it depends on what is meant by "installation" .... given the same platform and level of MQ (version and rp), they should be the same. _________________ -wayne |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Tue Nov 21, 2006 4:02 pm Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Hi,
My question is something like this. Given two identical z/OS machines (as far as MQ is concerned), is it fair to assume that the values of the variables would be the same ? _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
wschutz |
Posted: Tue Nov 21, 2006 4:14 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I can't think of anything that would be different in that case ... what motivates this question, anyways? _________________ -wayne |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Nov 21, 2006 4:15 pm Post subject: |
|
|
Guest
|
Yes, the IBM-supplied "initial values" include-files/copy-books will be identical for the same release and maintenance level of MQ. The include files are copied into application program source to give programmers images of mq structures and their initial values (not defaults). |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Tue Nov 21, 2006 4:25 pm Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Thanks, Bruce.
Wayne,
Assume that, there is a COBOL program which copies the said copybook. And, this COBOL program is to be generic so that it runs on other z/OS machines too. Now, if the default values are too random, then the program would have to be recompiled with that particular machine's copybook.
So, I wanted to know, if the copybook values remain constant; unless, explicitly changed by customer's request. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
wschutz |
Posted: Tue Nov 21, 2006 4:31 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I don't think you need worry about that issue. Certainly, the values aren't "random" ... aside from the exceptions mentioned here, a program compiled on one MVS system will always work on other MVS systems, as long as there isn't a "feature" issue (meaning the program takes advantage of some feature that isn't available on a ported bac-level qmgr). _________________ -wayne |
|
Back to top |
|
 |
Cogito-Ergo-Sum |
Posted: Tue Nov 21, 2006 4:35 pm Post subject: |
|
|
 Master
Joined: 07 Feb 2006 Posts: 293 Location: Bengaluru, India
|
Thank you, Wayne, very much for clarifying. _________________ ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes |
|
Back to top |
|
 |
|