Hello,
This is my first question on this board. I am in the process of writing a Rexx application to recover our system at DR. I am wanting to write (what I assume is a edit macro) to write instuctions at the top of each member, very much like the message about "the undo command is not available". This comes into the JCL with ==MSG> on the left.
How are these msg created? I can't find any place for an example. I know that I have seen some product installs that also create text above the JCL. I want to be able to create instructions for operations. I could always just code a comment "//*" but i wanted something slicker.
Any help/direction is greatly appreciated
Garrett
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
/* */
/* JS - INSERT A JOB STATEMENT AT THE BEGINNING OF THE */
/* DATASET BEING EDITED. */
/* */
/* AUTHOR - MAINFRAME JOURNAL */
/* CREATED - 12/07/1989 */
/* CHANGED - 06/07/2017 */
/* */
ISREDIT MACRO
SET ME = &NRSTR(&&&&SYSUID)
ISREDIT LINE_AFTER 0 = "//&SYSUID.XX JOB (AAB00,9250),+
'XXXXX XXXXXX -- 2559'," /* <-- CHANGE THIS PARM
ISREDIT LINE_AFTER 1 = "// CLASS=B," /* JOB
ISREDIT LINE_AFTER 2 = "// MSGCLASS=H," /* STATEMENT
ISREDIT LINE_AFTER 3 = "//* RESTART=PROCNAME.SXX," /* AND
ISREDIT LINE_AFTER 4 = "// NOTIFY=&ME" /* PARAMETERS
ISREDIT LINE_AFTER 5 = "//* I AM '&SYSUID..XXXX.JCL.PPXX(XXXXXXXX)'"
ISREDIT LINE_AFTER 6 = "//*"
ISREDIT LINE_AFTER 7 = "//*/*JOBPARM SYSAFF=MNTA <--- FOR ABEND-AID "
ISREDIT LINE_AFTER 8 = "//*/*JOBPARM SYSAFF=MNTB <--- FOR ABEND-AID "
ISREDIT LINE_AFTER 9 = "//* COMPILE WITH XPEDITER IF YOU WANT AN "
ISREDIT LINE_AFTER 10 = "//* ABEND-AID REPORT. "
ISREDIT LINE_AFTER 11 = "//*// JCLLIB ORDER=(XXXXXX.PROCLIB) <-"
ISREDIT LINE_AFTER 12 = "//*//JOBLIB DD DSN=XXXXXX.XXXX.LOD.PPXX, "
ISREDIT LINE_AFTER 13 = "//*// DISP=SHR "
ISREDIT LINE_AFTER 14 = "//*"
SET &ZEDSMSG = JOB STATEMENT INSERTED /* FILL SHORT MSG
SET &ZEDLMSG = A JOB STATEMENT HAS BEEN INSERTED AT THE BEGINNING +
OF THIS DATASET /* FILL LONG MSG
ISPEXEC SETMSG MSG(ISRZ000) /* DISPLAY SHORT MSG
******************************** Bottom of Data ********************************