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 » General IBM MQ Support » How to recreate MQ objects using MQSC script/file

Post new topic  Reply to topic
 How to recreate MQ objects using MQSC script/file « View previous topic :: View next topic » 
Author Message
hp1411
PostPosted: Thu Nov 05, 2015 10:49 am    Post subject: How to recreate MQ objects using MQSC script/file Reply with quote

Newbie

Joined: 17 Oct 2015
Posts: 9

Hello

I have an QMGR.mqsc file that has MQSC commands for creating queues and channels.

Newbie question - how do I use this file to re-create all the objects if I have recreated the queue manager?

I thought I could do

cat QMGR.mqsc|runmqsc QMGR

but nothing is happening

Am I missing something?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 05, 2015 11:04 am    Post subject: Re: How to recreate MQ objects using MQSC script/file Reply with quote

Grand High Poobah

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

hp1411 wrote:
Am I missing something?


How Unix redirection works?

Code:

runmqsc QMGR < QMGR.mqsc

_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Nov 05, 2015 1:59 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

Using this format works for me:

Code:

cat QMGR.mqsc|runmqsc QMGR


With that shell command, the shell interpreter creates a pipe between the cat and runmqsc processes so that the stdout of cat is sent to the stdin of runmqsc.
_________________
Working with MQ since 2010.
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 » General IBM MQ Support » How to recreate MQ objects using MQSC script/file
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.