Write a Subject: header line to a message being created.
argument informationstatus = PMDF_write_subject (nq_context, subject)
| Argument | Data type | Access | Mechanism |
|---|---|---|---|
| nq_context | context pointer | read/write | reference |
| subject | descriptor | read | reference |
argument informationstatus = PMDFwriteSubject
(nq_context, subject, subject_len)
int PMDFwriteSubject (nq_context, subject, subject_len)
PMDF_nq **nq_context;
char *subject;
int subject_len;
nq_context
A message enqueue context created with PMDF_start_message_envelope.subject
Text to place in a Subject: header line; should not include the leading "Subject: ". Length may not exceed 65,535 bytes.subject_len
Length in bytes of subject.
PMDF_write_subject is a convenience routine for writing a Subject: header line to a message. The callReturn ValuesPMDF_write_subject (nq_context, 'Meeting at 10:30')is equivalent to the callPMDF_write_line (nq_context, 'Subject: Meeting at 10:30')PMDF_write_subject should be called after PMDF_start_message_header and prior to calling PMDF_start_message_body. If it is called after PMDF_start_message_body, then it's output will become part of the message body.
| PMDF__OK | Normal, successful completion. |
| PMDF__BADCONTEXT | Illegal or corrupt context. Subject: header line not written. |
| PMDF__INVSTRDES | Invalid string descriptor for subject: descriptor has an invalid value in its DSC$B_CLASS field. No Subject: line written. |