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 » File Transfer

Post new topic  Reply to topic
 File Transfer « View previous topic :: View next topic » 
Author Message
abiram8
PostPosted: Thu Mar 13, 2003 5:29 am    Post subject: File Transfer Reply with quote

Master

Joined: 27 Mar 2002
Posts: 207
Location: India

Hi,

My requirment is to split the file into 32kb irrespective of its size

ex: if file size 33kb then 32 and 1 kb


And for the 32 kb I have to set priority as 0 and for the final segmented file I have set the priority to 9

this is required for the BS2000 (Siemens mainframe) file tranfr

Please let me know the procedure

Thanks
Abiram
Back to top
View user's profile Send private message Send e-mail
abiram8
PostPosted: Thu Mar 13, 2003 7:21 pm    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 207
Location: India

Hi,

The split of the file in exact 32kb (irrespective of the size ) since the receving application expects in pieces of 32kb


Abiram
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Thu Mar 13, 2003 10:25 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

You have pretty much described your own solution.

If your files are small (i.e. 200KB) then you can read the entire file into memory and then loop through it (by 32KB) sending the necessary messages. When you get to the last few bytes (<32KB) then set the correct priority and send the last message.

If the file is really large then just read 32KB from thr file send a message, read the next 32KB from the file and send a message, etc... When you get to the last few bytes (<32KB) then set the correct priority and send the last message.

later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » File Transfer
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.