Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Send Distribution (SNDDST) command allows you to send a distribution to a user, to a list of users, or to a distribution list.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
TYPE | Information to be sent | *MSG, *DOC, *FILE, *IDP, *DSTID, *LMSG | Required, Positional 1 |
TOUSRID | Recipient | Values (up to 300 repetitions): Element list | Optional, Positional 2 |
Element 1: User ID | Character value | ||
Element 2: Address | Character value | ||
Element 3: Recipient type | *PRI, *CC, *BCC | ||
TOINTNET | Internet Recipient | Values (up to 300 repetitions): Element list | Optional |
Element 1: Internet address | Character value, *NONE | ||
Element 2: Recipient type | *PRI, *CC, *BCC | ||
DSTD | Description | Character value | Optional, Positional 3 |
MSG | Message | Character value, *NONE, *DSTIDMSG | Optional |
LONGMSG | Long Message | Character value, *NONE | Optional |
CFMDEL | Confirmation of delivery | *NO, *YES | Optional |
SENSITIV | Sensitivity | *NONE, *PRIVATE, *PERSONAL, *CONFIDENTIAL | Optional |
PERSONAL | Personal | *NO, *YES | Optional |
IMPORTANCE | Content importance | *NORMAL, *LOW, *HIGH | Optional |
PTY | Priority | *NORMAL, *HIGH, *LOW | Optional |
USRID | User identifier | Single values: *CURRENT Other values: Element list |
Optional |
Element 1: User ID | Character value | ||
Element 2: Address | Character value | ||
DOCFILE | Document file | Single values: *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Document file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
DOCMBR | Document member | Name, *FIRST | Optional |
DOCTYPE | Document type | 2-65535, *DFT, *FFT, *RFT | Optional |
SNDFMT | Send format | *NOCHG, *NOTE, *FINALFORM | Optional |
SYSCOD | System code | Character value, *DFT | Optional |
DOCCHRID | Document character identifier | Single values: *SYSVAL, *DEVD Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer | ||
DSTID | Distribution identifier | Character value, *NONE | Optional |
DSTIDEXN | Distribution ID extension | 0-99, *NONE | Optional |
DOC | Document | Character value, *DOCID | Optional |
FLR | In folder | Character value, *NONE | Optional |
DOCID | Document identifier | Character value, *NONE | Optional |
IDPFILE | Profile file | Single values: *NONE, *DOCFILE, *DSTIDIDP Other values: Qualified object name |
Optional |
Qualifier 1: Profile file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
IDPMBR | Profile member | Name, *FIRST | Optional |
DOCD | Document description | Character value, *DFT, *DSTD | Optional |
AUTHOR | Author | Single values: *NONE, *USRID Other values (up to 50 repetitions): Character value |
Optional |
DOCCLS | Document class | Character value, *NONE | Optional |
KWD | Keyword | Single values: *NONE Other values (up to 50 repetitions): Character value |
Optional |
SUBJECT | Subject | Single values: *NONE, *DOCD Other values (up to 50 repetitions): Character value |
Optional |
DOCDATE | Document date | Date, *NONE, *CURRENT | Optional |
FILCAB | File cabinet location | Character value, *NONE | Optional |
CPYLST | Copy list | Single values: *NONE Other values (up to 50 repetitions): Character value |
Optional |
EXPDATE | Expiration date | Date, *NONE | Optional |
CRTDATE | Creation date | Date, *NONE, *CURRENT | Optional |
REFERENCE | Reference | Character value, *NONE | Optional |
ACTDATE | Action due date | Date, *NONE, *CURRENT | Optional |
RPYDATE | Reply requested | Element list | Optional |
Element 1: Date | Date, *NONE, *CURRENT, *ANY | ||
Element 2: Time | Time, *ENDOFDAY | ||
STATUS | Document status | Character value, *NONE | Optional |
CMPDATE | Completion date | Date, *NONE, *CURRENT | Optional |
PROJECT | Project | Character value, *NONE | Optional |
DOCLANGID | Language ID | Character value, *JOB | Optional |
DOCCNTRYID | Country or region ID | Character value, *JOB | Optional |
ALWALTRCP | Allow alternate recipient | *YES, *NO | Optional |
DISCLOSE | Disclose recipient | *YES, *NO | Optional |
ALWX400CNV | Allow X.400 conversion | *YES, *NO | Optional |
AUTUSR | Authorizing user | Single values: *NONE Other values: Element list |
Optional |
Element 1: User ID | Character value | ||
Element 2: Address | Character value | ||
DSTEXPDATE | Distribution expiry indicator | Element list | Optional |
Element 1: Date | Date, *NONE | ||
Element 2: Time | Time, *ENDOFDAY | ||
CMDCHRID | Command character identifier | Single values: *SYSVAL, *DEVD Other values: Element list |
Optional |
Element 1: Graphic character set | Integer | ||
Element 2: Code page | Integer |
Top |
Specifies the type of information that is sent and the parameters that are valid on this command.
Top |
Specifies one of the following:
A combination of user IDs and distribution lists can be used on the same command. Up to 300 user IDs and addresses can be specified.
If no user ID and address are specified for the TOUSRID parameter, an internet address must be specified on the TOINTNET parameter.
The possible User ID or List ID values are:
The possible User Address or List Qualifier values are:
The possible Recipient Type values are:
Top |
Specifies the internet address of one or more users to whom the distribution is being sent. If TOINTNET(*NONE) is specified, at least one user ID and address must be specified on the TOUSRID parameter. Up to 300 internet addresses can be specified.
The TOINTNET parameter is not allowed when the TYPE keyword is *MSG.
The possible Recipient Type values are:
Top |
Specifies the description of the distribution. A maximum of 44 characters can be specified. This parameter is required and can not start with a blank character or be all blank characters.
Top |
Specifies whether a short message is sent with the distribution.
Top |
Specify the text to send to the recipients as an final-form text document (FFTDCA).
The text must be formatted by using the following controls within the text.
The document is setup with 10 characters to the inch, the font ID is 11, the left margin at position 1, and the right margin at position 75. If :/N is not used to start a new line, the text will continue past the right margin and will not be viewable by some E-mail clients. Blanks are not removed from the text, but left in place for indentation and alignment. No extra text (ie. Recipient List, Date/Time, Subject, or Sender) is put into the document.
Technical note to programmers: Any of the FFTDCA controls (in hexadecimal) can be inserted in the text to provide more control of the format if the controls above are not enough.
Top |
Specifies whether the sender receives a confirmation of delivery notification when each receiver gets the distribution. Even though confirmation of delivery is not requested, the sender is still informed when the distribution is not delivered because of an user ID is not valid, a system failure, or a routing failure. If confirmation of delivery is requested, the sender is informed when the receiver receives, deletes, or runs another command against the distribution. To get this information, the sender must use the Query Distribution (QRYDST) command with *OUT specified on the Incoming or outgoing prompt (OPTION parameter).
Top |
Specifies the level of sensitivity defined by the X.400 standard. The four levels include normal, personal, private and company confidential. Private distributions cannot be viewed by a user working on behalf of another user.
Top |
Specifies whether the document distribution is private or not. This parameter is replaced by SENSITIV but the PERSONAL parameter can still be used. However, because this parameter may be removed in a later release, whenever possible use the SENSITIV parameter.
If PERSONAL(*YES) is used, the SENSITIV parameter must be omitted or it must be with the value SENSITIV(*NONE). If the command is prompted without this parameter specified, this parameter is not displayed.
Top |
Specify low, normal or high importance. This is an indication to the recipient of the content importance of the distribution. It is different from priority which relates to the speed with which the distribution was sent.
Top |
Specifies whether the distribution is sent using low priority, normal priority or high priority. For distributions to remote receivers, the priority determines which 'SNADS Next System Queue' is used. Normal priority distributions use the normal next system queue. Low priority distributions use the normal next system queue with the lowest priority available within that queue. High priority uses the priority next system queue. The difference between low, high and normal priority depends on information, specified by the user, on the Configuration Distribution Services (CFGDSTSRV) command. The handling of priority distributions by other office system nodes can vary, but generally the high priority distributions take the faster path when there is a choice of paths. For distribution to local receivers, the priority determines whether a message is sent to the receiver's message queue to notify the receiver of the distribution. No message is sent for normal distributions.
Top |
Specifies which user ID and user ID address should be associated with the request.
Top |
Specifies the names of the database file and the library that contains the document data. The database file is a user-defined file or the output file specified in either the Receive Distribution (RCVDST) command or the Retrieve Document (RTVDOC) command. If an output file is specified, only the data portion of the document data record is read from the output file. The prefix is removed from the document data record.
The possible library values are:
Top |
Specifies the document database file member that is used.
Top |
Specifies the type of document being used. This identifier is used by the system to determine whether the data stream can be handled properly.
Top |
Allows the user to specify the format of the document being sent.
Top |
Specifies the text used with the value specified on the Document type prompt (DOCTYPE parameter) to help uniquely identify the type of document being used. The receiver of the data stream determines the document data stream and processing requirements to edit, view, print, or change the document.
Top |
Specifies the character identifier (graphic character set and code page) for the document data being used. The character identifier is related to the display device used to create the document data.
Note: Both parts can be up to 5 digits in length.
Top |
Specifies the unique distribution identifier of the distribution. The distribution identifier is assigned by the system when the distribution is originated. Distribution identifiers can be found by using the Query Distribution (QRYDST) command. Identifiers are also returned from the Send Distribution (SNDDST) command.
Top |
Specifies the extension of the distribution identifier (if any) specified on the Distribution identifier prompt (DSTID parameter). This extension uniquely identifies duplicate distributions. This 2-digit extension has a value ranging from 00 through 99 that uniquely identifies duplicate distributions. For incoming distributions, this extension ranges from 01 through 99. For confirmation of delivery distributions, this extension must be 00.
Top |
Specifies the name of the document being sent.
Top |
Specifies the name of the folder that contains the document being sent. This is the user-assigned name given to the folder when it is created. If document name is specified on the Document prompt (DOC parameter), then *DOCID must not be specified.
Top |
Specifies the library-assigned name of the document. This is the name assigned to the document by the system when it was created. Documents filed outside the local system have only library-assigned document names. The library-assigned document names can be determined by using the Query Document Library (QRYDOCLIB) command or by the message returned from the File Document (FILDOC) command.
Library-assigned document names are 24 characters in length with the following format:
YYYYMMDDHHMNSSHSSNSNSNSN
where:
YYYY = year MM = month DD = day HH = hour MN = minute SS = second HS = hundredths of a second SNSNSNSN = system name
Top |
Specifies where the document profile information is located. If you specify this parameter, the remaining parameters after the Profile member prompt (IDPMBR parameter) are ignored, except the Command character identifier prompt (CMDCHRID parameter) and the Document character identifier prompt (DOCCHRID parameter).
The possible library values are:
Top |
Specifies the interchange document file member name being used. This parameter is used only when a database file name is also specified on the Profile file prompt (IDPFILE parameter).
Top |
Specifies a description for the document being distributed. This information is in the Document Interchange Architecture IDP document name field.
Top |
Specifies the author or authors of the document.
You can enter multiple values for this parameter.
Top |
Specifies the class associated with this document, such as MEMO, FORM, or SHEET.
Top |
Specifies the keywords that describe the document.
You can enter multiple values for this parameter.
Top |
Specifies the subject or subjects of the document.
You can enter multiple values for this parameter.
Top |
Specifies any date the user needs to assign to the document.
Top |
Specifies the location of the document. This parameter is intended to describe the location of printed documents. The interchange document profile (IDP) that refers to the printed document is distributed. This parameter is required if *IDP is also specified on the Information to be sent prompt (TYPE parameter) and *NONE is specified on the Profile file prompt (IDPFILE parameter).
Top |
Specifies the names of the users that receive this document.
You can enter multiple values for this parameter.
Top |
Specifies the date on which the document is no longer needed.
Top |
Specifies the date the document was created.
Top |
Specifies a reference associated with the document.
Top |
Specifies the due date for the requested action. If no action due date is specified and a reply request date is specified the action due date is set from the reply request date.
Top |
Specifies the date and time a reply to the distribution is requested. This applies only to primary recipients.
The possible Reply by date values are:
The possible Reply by time values are:
The time is specified in 24-hour format and can be specified with or without a time separator.
Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh=hours, mm=minutes, and ss=seconds. Valid values for hh range from 00 to 23. Valid values for mm and ss range from 00 to 59.
With a time separator, specify a string of 5 or 8 digits (hours and minutes, or hours, minutes, and seconds). The time separator specified by the system value QTIMSEM is used to separate the hours, minutes, and seconds. If the command is entered from the command line, the string must be entered in apostrophes. If a time separator other than the separator used for your job is used, the command fails. Valid values for hh range from 00 to 23. Valid values for mm and ss range from 00 to 59.
Top |
Specifies the user-defined status of the document. Examples of status are: In Process, Pending Approval, or Retired.
Top |
Specifies the date when the requested action is completed.
Top |
Specifies the project associated with the document.
Top |
Specifies the language identifier to be placed in this document's interchange document profile (IDP).
Note: This parameter is ignored if the Profile file prompt (IDPFILE parameter) is specified, or if *MSG or *DOC is specified on the Information to be sent prompt (TYPE parameter).
Top |
Specifies the country or region identifier to be placed in this document's interchange document profile (IDP).
Note: This parameter is ignored if the Profile file prompt (IDPFILE parameter) is specified, or if *MSG or *DOC is specified on the Information to be sent prompt (TYPE parameter).
Top |
Specify if the distribution can be delivered to an alternate recipient, determined by the receiving system. This function is used only by X.400 network systems. This function provides the ability to direct certain mail to a specific user.
The default of this field is *YES. Because the user might change the sensitivity field to private but might not change the alternate recipient field to no, The user might send a private item to an alternate recipient. No error message is generated for this condition.
Top |
Specifies whether or not each recipient gets a list of the other recipients.
Top |
Specifies whether an X.400 conversion is allowed on the distribution being submitted. In certain circumstances, the end user knows the capabilities of the recipient and may indicate that the distribution is not to be converted. The system administrator can define whether or not conversion is to take place. This field allows the user to override that setting on a message by message basis. For example, if the gateway allows conversion, the user could specify that conversion is to be prohibited. This will take precedence over the gateway setting. The distribution would then not be converted.
Note: This field is valid only for X.400 support. This field will not affect AS/400 data stream transformations, such as RFT to FFTDCA.
Top |
Specifies the user ID and address of the user that authorized the content of this distribution. The authorizing user will receive a copy of the distribution.
The possible User ID value is:
The possible User Address value is:
Top |
Specifies the date and time on which the distribution is no longer needed in the mail log.
The possible Distribution Expiration Date values are:
The possible Distribution Expiration Time values are:
The time is specified in a 24-hour format and can be specified with or without a time separator.
Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh=hours, mm=minutes, and ss=seconds. Valid values for hh range from 00 to 23. Valid values for mm and ss range from 00 to 59.
With a time separator, specify a string of 5 or 8 digits (hours and minutes, or hours, minutes, and seconds). The time separator specified by the system value QTIMSEM is used to separate the hours, minutes, and seconds. If the command is entered from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator used for your job is used, the command fails. Valid values for hh range from 00 to 23. Valid values for mm and ss range from 00 to 59.
Top |
Specifies the character identifier (graphic character set and code page) for the data being entered as command parameter values. The character identifier is related to the display device used to enter the command.
In some cases, the data is translated to a code page and character set that is interchangeable with other IBM OfficeVision/400 products. The interchangeable character set and code page is '697 500', except for the User identifier prompt (USRID parameter), Recipient prompt (TOUSRID parameter), and Distribution identifier prompt (DSTID parameter), for which it is '930 500'. In other cases, the code page and character set are attached to the field and sent with the field to allow the receiving terminal to correctly print and display the field.
The following parameters are translated:
The code page and character set is attached to the following parameters:
Single values
Element 1: Graphic character set
Element 2: Code page
Top |
Example 1: Sending a Distribution on Behalf of Another User
SNDDST TYPE(*FILE) TOUSRID((JACKSON RCH38DB)) DOCTYPE(20000) SYSCOD(BRANDX) DOCFILE(DEPT46ELIB/XTEXT) DOCMBR(GOLD1IPFS) PTY(*HIGH) USRID(JACOBSON RCH38NBS) DSTD('IPFS FOR GOLD1 PROJECT') CFMDEL(*YES) MSG('Update section 1.2.4. Return for final printing')
This command sends a distribution that is being sent by someone (such as a secretary) who is authorized to work on behalf of JACOBSON. The document being sent is a BRANDX text document that is sent to another user who also has the BRANDX text processor.
Example 2: Sending a Mail Log Entry
SNDDST TYPE(*DSTID) DSTID('NEWYORK SMITH 0204') DSTIDEXN(02) TOUSRID((JACKSON RCH38DB)) MSG(*DSTIDMSG) CFMDEL(*YES)
This command sends a mail log entry that is identified by the distribution document name NEWYORK SMITH 0204 that is distributed to user JACKSON at address RCH38DB. The message in the distribution document is distributed with the distribution.
Top |
*ESCAPE Messages
Top |