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 » MA01 - read from file write to Q

Post new topic  Reply to topic
 MA01 - read from file write to Q « View previous topic :: View next topic » 
Author Message
n3wb1e96
PostPosted: Fri Nov 27, 2009 7:23 am    Post subject: MA01 - read from file write to Q Reply with quote

Newbie

Joined: 12 Nov 2008
Posts: 9

I'm having some issues using a file as input to the Q program on windows (XP). I want the whole file to be used as a single message.

If I use the option 'q -m MB7QMGR -f "C:\testFile.xml" -o MYQUEUE.IN', as expected, each line in the input file is put as a separate message to the queue.

I therefore tried - 'q -m MB7QMGR -F "C:\testFile.xml" -o MYQUEUE.IN' but I get -
"MQSeries Q Program by Paul Clarke [ V5.0.0 Build:Jul 15 2008 ]
Sorry to use a load/unload file you must either be loading or unloading
Specify either '-i' or '-o'"

I've tried several variations but have not been able to achieve what I want. Can a fresh pair of eyes help me out?

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Nov 27, 2009 7:37 am    Post subject: Re: MA01 - read from file write to Q Reply with quote

Grand High Poobah

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

n3wb1e96 wrote:
I've tried several variations but have not been able to achieve what I want. Can a fresh pair of eyes help me out?


I wasn't aware that support pac could be used for what you want.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 27, 2009 8:00 am    Post subject: Re: MA01 - read from file write to Q Reply with quote

Grand High Poobah

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

n3wb1e96 wrote:
I'm having some issues using a file as input to the Q program on windows (XP). I want the whole file to be used as a single message.

If I use the option 'q -m MB7QMGR -f "C:\testFile.xml" -o MYQUEUE.IN', as expected, each line in the input file is put as a separate message to the queue.

I therefore tried - 'q -m MB7QMGR -F "C:\testFile.xml" -o MYQUEUE.IN' but I get -
"MQSeries Q Program by Paul Clarke [ V5.0.0 Build:Jul 15 2008 ]
Sorry to use a load/unload file you must either be loading or unloading
Specify either '-i' or '-o'"

I've tried several variations but have not been able to achieve what I want. Can a fresh pair of eyes help me out?

Thanks
Review the documentation of the support pack.
Sounds to me like you are using -o where you should be using -i ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
n3wb1e96
PostPosted: Fri Nov 27, 2009 8:09 am    Post subject: Reply with quote

Newbie

Joined: 12 Nov 2008
Posts: 9

Thanks for your responses so far.

I had tried the -i option but it yielded the same response - Sorry to use a load/unload file you must either be loading or unloading Specify either '-i' or '-o'" .

From what I can see, the documentation does allude to the possibility of being able to use a file as input to a queue...
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 27, 2009 8:13 am    Post subject: Reply with quote

Grand High Poobah

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

n3wb1e96 wrote:
Thanks for your responses so far.

I had tried the -i option but it yielded the same response - Sorry to use a load/unload file you must either be loading or unloading Specify either '-i' or '-o'" .

From what I can see, the documentation does allude to the possibility of being able to use a file as input to a queue...

Did you use the parameters in the EXACT order of the documentation?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
n3wb1e96
PostPosted: Mon Nov 30, 2009 8:57 am    Post subject: Reply with quote

Newbie

Joined: 12 Nov 2008
Posts: 9

The documentation doesn't specify the order in which to use the parameters. It only gives an alphabetical listing of the parameters... In the absence of a guide on the order of using the parameters I guess I'll have to continue with different combinations of parameters....
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Nov 30, 2009 9:21 am    Post subject: Reply with quote

Grand High Poobah

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

n3wb1e96 wrote:
From what I can see, the documentation does allude to the possibility of being able to use a file as input to a queue...


I still think that refers to the specific file, but do post the solution if you discover different.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dyevin
PostPosted: Wed Aug 04, 2010 1:56 pm    Post subject: Reply with quote

Novice

Joined: 27 May 2003
Posts: 11
Location: Phoenix, Arizona

I encountered the same error that you did when specifying the -F flag. I simply specified -o before -F in my command stream and was able to successfully read the file and create a single message in my output queue.
Back to top
View user's profile Send private message
pdmenon
PostPosted: Wed Aug 04, 2010 11:24 pm    Post subject: Reply with quote

Voyager

Joined: 05 Apr 2010
Posts: 80

If you want the whole file to be used as a single message, you can use RFHUTIL where in, just load the file(preferably text file) and write in the desired queue.

If you already know, pls ignore this...
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Aug 05, 2010 12:56 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

i gave it a quick try, and it seems to be related to the parameter sequence....

Code:
./q -o MQIVP.QL.Q1 -m CST1 -F mqput.rexx
MQSeries Q Program by Paul Clarke [ V4.5 Build:Sep 18 2006 ]
Connecting ...
connected to 'CST1'.

./q -F mqput.rexx  -o MQIVP.QL.Q1 -m CST1
MQSeries Q Program by Paul Clarke [ V4.5 Build:Sep 18 2006 ]
Sorry to use a load/unload file you must either be loading or unloading
Specify either '-i' or '-o'

_________________
Regards, Butcher
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 » MA01 - read from file write to Q
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.