View previous topic :: View next topic
|
Author |
Message |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Try this:
Code: |
ZEDSMSG = 'Finished Successfully'
ADDRESS ISREDIT "SETMSG MSG(ISRZ0001)"
|
O. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Create the message you want according to what happened. Put a short message in ZEDSMSG and a long one in ZEDLMSG. If ZEDSMSG is not set, only the long message will apear.
O. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You are right. The return code within a macro will be 0 for CREATED and REPLACED. You can check member existence using SYSDSN just before the REPLACE command, keeping its RC, and then, based on the RC of the REPLACE command you can construct the appropriate message into ZEDSMSG.
O. |
|
Back to top |
|
|
|