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 » Reading PDF from MQ into cics

Post new topic  Reply to topic
 Reading PDF from MQ into cics « View previous topic :: View next topic » 
Author Message
sreenath
PostPosted: Fri Dec 10, 2004 1:06 pm    Post subject: Reading PDF from MQ into cics Reply with quote

Newbie

Joined: 10 Dec 2004
Posts: 2

I am going developing an CICS application which should reads a queue, copy the pdf to another que and email those documents as attachments. In this regard i like to know few things. (Queue contains PDF documents as messages)

1. How to read a pdf document into cics program? (Does MQGET call reads hole document into working storage variable section)
2. Can we use MQPUT call to write pdf to queue.
3. Can we attach pdf to mail without reading document into cics program?

I am new to MQ any suggestions are welcome.

Thanks,
Sree
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 10, 2004 1:34 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you mean an Adobe Portable Document Format pdf document? Or some other PDF document?

Adobe PDFs are either plain text or binary, depending on how they are built. MQSeries does not generally care about the contents of an MQ message, unless you instruct it to care. So you should be able to insert this data into an MQSeries message regardless of whether it is built as a binary file or a text file.

MQSeries has no built in SMTP capabilities. You will have to write a program in SOMETHING that can read an MQ message and construct an email message. You could use CICS for that if you wanted. If you can find a CICS mechanism for sending email.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sreenath
PostPosted: Mon Dec 13, 2004 12:05 pm    Post subject: Reply with quote

Newbie

Joined: 10 Dec 2004
Posts: 2

Thanks for your repply jefflowrey. I want to read Adobe Portable Document only. If you know can u tell how Binary data is read in COBOL CICS program if record lenght is 20000 (PIC ???).
Back to top
View user's profile Send private message
kman
PostPosted: Tue Dec 14, 2004 12:23 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

I am guessing here..
you should use PIC S9(9) BINARY. That should be able to read binary data. This is COBOL specific. It is not WMQ.

guessing..
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Reading PDF from MQ into cics
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.