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 can I read a paragraph in DOS batch file

Post new topic  Reply to topic
 How can I read a paragraph in DOS batch file « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Wed Nov 01, 2006 9:40 am    Post subject: How can I read a paragraph in DOS batch file Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

I need to read a text file a paragraph at a time, and send that message to a local queue of a queue manager. I know the second part, but can someone give some hints how i can put the first part in loop.

it shuld be like this:

for %i "read in t until a paragraph comes" in (filename.txt) Do

save the read material in a file testfile
amqsput queuename qmgr <testfile


Thanks
Back to top
View user's profile Send private message
ramires
PostPosted: Wed Nov 01, 2006 11:52 am    Post subject: Reply with quote

Knight

Joined: 24 Jun 2001
Posts: 523
Location: Portugal - Lisboa

why don't you put filename.txt to a queue?

amqsput queuename qmgr <filename.txt

Regards
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 01, 2006 11:54 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Or write a real application to solve the real need.

amqsput is a sample program and is not really intended for use in any kind of automated workflow or business workflow.

The "Q" support pack is a bit more flexible - but I'd still actually write a real program (or buy one!) for any real production need.
_________________
I am *not* the model of the modern major general.
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 can I read a paragraph in DOS batch 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.