Posted: Fri Dec 10, 2004 1:06 pm Post subject: Reading PDF from MQ into cics
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?
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.
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 ???).
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