Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

YMLDML - Delete e-mail send order

&pagelevel(5)&pagelevel

You can use this macro to delete e-mail send orders transferred to the ASTI subsystem that have not yet been processed. For orders that have already been processed, the macro YMLDML deletes the information on the associated execution status in the ASTI-internal tables. The associated SYS files under the user ID of the mail sender are also deleted.

Entry names or SVC number(s)

SVC 20 (decimal)

UNIT=940, FUNCTION=22, VERSION=1 | 2

Macro call format and operand description

YMLDML

FL= *TU / *TPR

,VERSION= 1 / 2

,ORDER= *ALL / *SINGLE

,ORDERID= <var: char:16>

,OWNER= *OWN / *ALL / *OTHER

,USERID= <var: char:8>

,OPTFILE= *NONE / <var: char:54>

FL=
Function area

*TU
An SVC interface is generated.

*TPR
A CALL interface is generated.

VERSION=
Selects the interface version.

1
Selects the old interface version.

2
Selects the new interface version, which offers the operand OPTFILE and an additional return code.

ORDER=
Specifies which e-mail send order is to be deleted.

*ALL
All the user’s e-mail send orders that have not yet been executed are deleted.

*SINGLE
The e-mail send order specified in the ORDERID parameter is deleted.

ORDERID=
If ORDER=*SINGLE is specified, this parameter determines the ID of the e-mail send order to be deleted.

<IDENTIFIER>
Variable in which the order ID is stored or register containing the address of a variable in which the order ID is stored.

OWNER=
Specifies the user whose e-mail send orders are deleted.

*OWN
Only delete the caller’s e-mail send orders.

*ALL
Delete the e-mail send orders of all users. Callers without TSOS authorization get the same result here as with *OWN.

*OTHER
Delete the e-mail send orders of the user specified in the USERID parameter (only permitted for callers with TSOS authorization).

USERID
Specifies the user ID whose e-mail send orders are deleted.

<IDENTIFIER>
Variable in which the user ID is stored or register containing the address of a variable in which the user ID is stored.

OPTFILE=
With this operand a user option file can be specified. The operand is available only with VERSION=2. Currently there is no user option which would influence the behaviour of YMLDML, but because this may change in the future it is recommended to supply by now the OPTFILE operand of the YDLDML call with the same value as done with the YMLSML and YMLCML calls.

*NONE
No file defined.

<IDENTIFIER>
Variable containing the name of the user option file or register containing the address of the name of the user option file.

Return codes

SRC2

SRC1

MRC

MRC name

Meaning

00

00

0000

YMLDSUCC

No error found.

00

01

0001

YMLDPARE

Parameter error.

00

20

0002

YMLDINTE

Internal error.

00

40

0003

YMLDONTF

Order not found.

00

40

0004

YMLDIPRV

Insufficient authorization.

00

40

0005

YMLDWROW

Order does not belong to the specified owner.

00

40

0006

YMLDFTSK

Order sent by external task.

00

40

0007

YMLDANAV

ASTI not available.

00

20

0008

YMLDASTI

Unexpected ASTI error.

00

40

0009

YMLDSNAV

Service MAILCLNT not available.

SRC1/2 = sub-return code 1/2 in hexadecimal notation
MRC = main return code in hexadecimal notation

Macro call parameters

The data structure for the macro call parameters of YMLDML is composed as follows:

VERSION=1:

Distance

Identifier

Value

Meaning


YMLDPARL


Parameter area.

000

YMLDHDR


Function header.

008

YMLDIND


Input parameters.

008

YMLDOIDI


ID of the order to be deleted if YMLDORDS=YMLDOSNG is specified.

018

YMLDORDS


Specifies which orders are to be deleted.


YMLDOALL

1

All orders that have not yet been executed are deleted.


YMLDOSNG

2

The order specified under YMLDOIDI is deleted.

019

YMLDOWNS


Specifies the user whose orders are to be deleted.


YMLDWOWN

1

Only orders of the caller are deleted.


YMLDWALL

2

All orders that have not yet been sent are deleted.


YMLDWOTH

3

Orders of the user specified under YMLUSID are deleted.

01A

YMLDRSV1


Reserved area.

01C

YMLDUSID


User ID whose orders are to be deleted.

024

YMLDOUTD


Output parameters.

024

YMLDARET


If the YMLDML call returns the return code YMLDASTI, this field contains the ASTI return code.

VERSION=2:

Distance

Identifier

Value

Meaning


YMLDPARL


Parameter area

000

YMLDHDR


Function header

008

YMLDIND


Input parameters

008

YMLDOIDI


ID of the order to be deleted if YMLDORDS=YMLDOSNG

018

YMLDORDS


Specifies which orders are to be deleted.


YMLDOALL

1

All orders that have not yet been sent are deleted.


YMLDOSNG

2

The order specified under YMLDOIDI is deleted.

019

YMLDOWNS


Specifies the user whose orders are to be deleted.


YMLDWOWN

1

Only orders of the caller are deleted.


YMLDWALL

2

All orders that have not yet been sent are deleted.


YMLDWOTH

3

Orders of the user specified under YMLDUSID are deleted.

01A

YMLDUSID


User id whose orders are to be deleted.

022

YMLDOPTF


User option file

058

YMLDOUTD


Output parameters

058

YMLDARET


If the YMLDML call returns the return code YMLDASTI, this field contains the ASTI return code.

05C

YMLDMID


Message ID

063

YMLDRSV1


Reserved area


Supplementary notes to the output parameters:

YMLDMID

This field contains a YML message key for a message describing the occured error. This is normally the same message as a corresponding DELETE-MAIL-ORDER command call would deliver.


Listing of the expansion of the data structure for the macro call parameters

Expansion:

XPAND=      PARAM

                                          YMLSML MF=D,XPAND=PARA
                              YMLDML MF=D
                   1          MFTST MF=D,PREFIX=Y,MACID=MLD,ALIGN=F,
                   1                DMACID=MLD,SUPPORT=(E,D,C,M,L),DNAME=MLDPARL
000000             2 YMLDPARL DSECT ,
                   1 *   Parameter area
                   1 YMLDHDR  FHDR  MF=(C,YMLD),EQUATES=NO    FHDR
                   1 *   main return codes
        00000000   1 YMLDSUCC EQU   0                         No error detected
        00000001   1 YMLDPARE EQU   1                         Parameter error
        00000002   1 YMLDINTE EQU   2                         Internal error
        00000003   1 YMLDONTF EQU   3                         Order not found
        00000004   1 YMLDIPRV EQU   4                         Insufficient privileges
        00000005   1 YMLDWROW EQU   5                         Order not owned by specified
                   1 *                                        owner
        00000006   1 YMLDFTSK EQU   6                         Order issued by foreign task
        00000007   1 YMLDANAV EQU   7                         Subsystem ASTI not available
        00000008   1 YMLDASTI EQU   8                         Unexpected ASTI error
                   1 *
                   1 *
000008             1 YMLDIND  DS    0XL28                     Input parameters
000008             1 YMLDOIDI DS    CL16                      Order Id
000018             1 YMLDORDS DS    FL1                       Order specification
                   1 *   order
        00000001   1 YMLDOALL EQU   1                         ALL
        00000002   1 YMLDOSNG EQU   2                         SINGLE
                   1 *
000019             1 YMLDOWNS DS    FL1                       Owner specification
                   1 *   owner
        00000001   1 YMLDWOWN EQU   1                         OWN
        00000002   1 YMLDWALL EQU   2                         ALL
        00000003   1 YMLDWOTH EQU   3                         OTHER
                   1 *
00001A             1 YMLDRSV1 DS    CL2                       Reserved
00001C             1 YMLDUSID DS    CL8                       User id of owner
                   1 *
                   1 *
000024             1 YMLDOUTD DS    0XL4                      Output parameters
000024             1 YMLDARET DS    F                         Return code from ASTI
                   1 *
        00000028   1 YMLD#    EQU   *-YMLDHDR