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 Index » IBM MQ API Support » Compiling saveqmgr on iSeries

Post new topic  Reply to topic
 Compiling saveqmgr on iSeries « View previous topic :: View next topic » 
Author Message
interactivechannel
PostPosted: Thu Jul 03, 2003 3:15 am    Post subject: Compiling saveqmgr on iSeries Reply with quote

Voyager

Joined: 20 May 2003
Posts: 94
Location: uk

Previously I have used a remote queue manager to cheat at getting AS400 queue manager objects (saveqmgr -r ..). For a change I thought I'd do things properly and experienced some pain along the way, as the readme file with Supportpac MS03 didn't fulfil my needs.

First of all you need a host with the 'ILE C Compiler, 5722WDS option 51' installed to build TMKMAKE. Later on I needed the QSYSINC library, so it's worth checking if you already have this.

Whilst finding out about the compiler I came across this article, which contained a number of commands that weren't in the readme. http://www.mcpressonline.com/mc?50@84.bBtaagtRaNO.0@.214a3151 Section: Building TMKMAKE from Scratch with a C Compiler
CALL PGM(QUSRTOOL/UNPACKAGE) PARM('QATTCL' 1)
CALL PGM(QUSRTOOL/UNPACKAGE) PARM('QATTSYSC' 1)
CALL PGM(QUSRTOOL/UNPACKAGE) PARM('QATTCMD' 1)
CRTLIB TMKMAKE
CRTCLPGM PGM(TMKMAKE/TMKINST) SRCFILE(QUSRTOOL/QATTCL)
CALL PGM(TMKMAKE/TMKINST) PARM(TMKMAKE)

The readme suggested
CRTCLPGM PGM(libr1/TMKINST) SRCFILE(QUSRTOOL/QATTCL)
or
CRTCLMOD MODULE(libr1/TMKINST) SRCFILE(QUSRTOOL/QATTCL)
CRTPGM PGM(libr1/TMKINST) MODULE(libr1/TMKINST)
The first command in the readme is the same as the penultimate in the article, but the second and third (CRTCLMOD/CRTPGM) differ. All these commands were issued whilst getting to the final solution, however the commands from the article may be sufficient on their own - if I do this again I'll find out.

The libraries and files were created and the package ftp'ed, as instructed in the readme.
The following commands were then issued
CRTCLPGM PGM(MS03/QSAVEQMGR) SRCFILE(MS03/QCLSRC) SRCMBR(SAVEQMGR) REPLACE(*YES)
CRTCMD CMD(MS03/QSAVEQMGR) PGM(*LIBL/QSAVEQMGR) SRCFILE(MS03/QCMDSRC) SRCMBR(SAVEQMGR) REPLACE(*YES)
Note: The command in the readme has SRCMBR(QSAVEQMGR), which didn't exist.

The readme then says to enter the command TMKMAKE. This worked fine and I then went on to starting the command server and trying to run my new toy, but got a meaningless error message. This is because TMKMAKE has picked up its default makefile and compiled a load of stuff that has nothing to do with MQ. What you actually need to enter is
TMKMAKE MS03/QMAKSRC
I used F4 to enter the parameters, so it could be something like
TMKMAKE MAKEFILE(MS03/QMAKSRC)

My last problem could be UK related, as the compiler didn't like $ signs in the makefile. These were replaced with £ (a lucky guess) and I could finally save the MQ definitions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Compiling saveqmgr on iSeries
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.