IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Edit Macro SETMSG question


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Aug 13, 2006 10:02 pm
Reply with quote

Try this:
Code:
ZEDSMSG = 'Finished Successfully'
ADDRESS ISREDIT "SETMSG MSG(ISRZ0001)"


O.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sun Aug 13, 2006 11:49 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Aug 14, 2006 11:09 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Question for file manager IBM Tools 7
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top