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
Creating the MSG test
-
- Posts: 239
- Joined: Wed Dec 04, 2013 11:08 pm
- Skillset: COBOL, JCL, ISPF.
- Referer: While searching the Internet for answers.
- Location: Richfield, MN, USA
Re: Creating the MSG test
I don't know REXX, but this is the edit macro I use to insert a JOB statement at the beginning of some JCL. Customize for your use:
Code: Select all
----+----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 ********************************
.... Terry
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Creating the MSG test
Check the LINE_AFTER command in the ISPF Edit and Edit Macros manual
- prino
- Posts: 641
- Joined: Wed Mar 11, 2009 12:22 am
- Skillset: PL/I - CICS - DB2 - IDMS - REXX - JCL, most in excess of three decades
- Referer: Google
- Location: Vilnius, Lithuania
- Contact:
Re: Creating the MSG test
A totally bogus request. You cannot create messages when opening a member, unless you set up a site-wide initial macro, and that's unlikely to be something you want to carry over to a DR site, where you're way more interested in just getting TSO and ISPF to start without also having to customize them.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
robert.ah.prins @ the.17+Gb.Google thingy
-
- Posts: 130
- Joined: Tue Feb 01, 2011 7:12 pm
- Skillset: JCL, TWS, IBM Utilities
- Referer: Found on web
Re: Creating the MSG test
Certainly LINE_AFTER is the way to go with this, and you can specify that you want the lines to be added as message lines rather than defaulting to data lines, eg; "isredit line_after 0 = noteline".
As Prino has pointed out, you would have to give some consideration to how this macro would be invoked, but if you a are writing a Rexx application that edits the dataset, then you can just specify the MACRO parameter after your ISPEXEC EDIT statement.
As Prino has pointed out, you would have to give some consideration to how this macro would be invoked, but if you a are writing a Rexx application that edits the dataset, then you can just specify the MACRO parameter after your ISPEXEC EDIT statement.
- Pedro
- Posts: 686
- Joined: Thu Jul 31, 2008 9:59 pm
- Skillset: ISPF
- Referer: google
- Location: Silicon Valley
Re: Creating the MSG test
t you want the lines to be added as message lines rather than defaulting to data lines, eg; "isredit line_after 0 = noteline".
The poster specifically mentioned message lines, rather than noteline, it would be msgline:
Code: Select all
"isredit line_after 0 = msgline 'some text' "
Pedro Vera
-
- Posts: 130
- Joined: Tue Feb 01, 2011 7:12 pm
- Skillset: JCL, TWS, IBM Utilities
- Referer: Found on web
Re: Creating the MSG test
Pedro wrote:t you want the lines to be added as message lines rather than defaulting to data lines, eg; "isredit line_after 0 = noteline".
The poster specifically mentioned message lines, rather than noteline, it would be msgline:Code: Select all
"isredit line_after 0 = msgline 'some text' "
Apologies for any confusion, I did refer to messages in my text but then put note in my example. Although from the sound of the original requirement, it seems that a NOTE would be more appropriate than a MESSAGE.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 8
- 4492
-
by steve-myers
View the latest post
Sat Oct 16, 2021 8:59 pm
-
- 6
- 3206
-
by willy jensen
View the latest post
Thu Dec 05, 2024 11:59 pm
-
-
Need help in a rexx scenario for creating and updating PDS
by princesam89 » Fri Feb 02, 2024 4:20 pm » in CLIST & REXX - 3
- 2411
-
by willy jensen
View the latest post
Sat Feb 03, 2024 8:07 pm
-
-
-
Creating Unix Directory using COBOL in Unix 0n Z/OS
by Heisenberg » Mon Jun 26, 2023 4:36 pm » in IBM Cobol - 2
- 3054
-
by Robert Sample
View the latest post
Wed Jul 05, 2023 6:36 pm
-