Posted: Wed Nov 01, 2006 9:40 am Post subject: How can I read a paragraph in DOS batch file
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
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.
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