Author |
Message
|
mq_crazy |
Posted: Mon Feb 05, 2007 2:37 pm Post subject: AS400 MQ Samples |
|
|
 Master
Joined: 30 Jun 2004 Posts: 295
|
I do have MQ 6.0 Installed on AS400, but i don't find the sample programs like AMQ3PUT4, AMQ3GET4 ... under the QMQMSAMP library. I have checked that the MQ samples have been installed as part of the installation. Please help me... |
|
Back to top |
|
 |
pathipati |
Posted: Mon Feb 05, 2007 8:09 pm Post subject: |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
Make sure that Samples are installed.. |
|
Back to top |
|
 |
gregop |
Posted: Tue Feb 06, 2007 12:35 am Post subject: |
|
|
Voyager
Joined: 24 Nov 2006 Posts: 81
|
Do you have source files in QMQMSAMP ?
I think you may have to compile the programs yourself. |
|
Back to top |
|
 |
mq_crazy |
Posted: Tue Feb 06, 2007 6:36 am Post subject: |
|
|
 Master
Joined: 30 Jun 2004 Posts: 295
|
Yes they are. How should i compile them?? |
|
Back to top |
|
 |
Toronto_MQ |
Posted: Tue Feb 06, 2007 7:01 am Post subject: |
|
|
 Master
Joined: 10 Jul 2002 Posts: 263 Location: read my name
|
If you're just looking to use the sample get and put utilities, they're pre-compiled in library QMQM.
CALL QMQM/AMQSPUT0
Sample AMQSPUT0 start
Required parameter missing - queue name
Press ENTER to end terminal session.
CALL QMQM/AMQSGET4
Sample AMQSGET4 start
Required parameter missing - queue name
Press ENTER to end terminal session.
CALL QMQM/AMQSBCG4
AMQSBCG4 - starts here
**********************
Required parameter missing - queue name
Usage: QMQM/AMQSBCG4 QName [ QMgrName ]
Press ENTER to end terminal session.
Hope this helps.
Cheers
Steve |
|
Back to top |
|
 |
mq_crazy |
Posted: Thu Feb 08, 2007 12:08 pm Post subject: |
|
|
 Master
Joined: 30 Jun 2004 Posts: 295
|
I found the programs, but if i am trying to compile them i get the following error
Compiler not able to open the /COPY or /INCLUDE file;
directive ignored.
Please help..... |
|
Back to top |
|
 |
jeevan |
Posted: Thu Feb 22, 2007 5:04 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
mq_crazy wrote: |
I found the programs, but if i am trying to compile them i get the following error
Compiler not able to open the /COPY or /INCLUDE file;
directive ignored.
Please help..... |
As Toronto_MQ wrote, you do not have to compile. Just follow what Toronto_MQ has said, it works.
type AMQSPUT0 and preff f4, a panel comes up, fill necessary data and press enter
note: in iseries, the amqsget4/amqsout0 are pgm and have to call as
call (QMQM/AMQSPUT0) PARM ( Q, QMGR)
hope this helps |
|
Back to top |
|
 |
|