Re: :Re: Message IRX0006I running an edit macro CLIST

2017-09-01 Thread Jesse 1 Robinson
I had not checked before, but there's nothing there.

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Dan D
Sent: Friday, September 01, 2017 12:44 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: :Re: Message IRX0006I running an edit macro CLIST

Hi Skip,

Have you checked the ISPF command table for your command?

=3.9 then change the table to ISP.
We have quite a few CLISTs there ...
   WHOAMI3  SELECT CMD(%WHOAMI)
Then a WHOAMI CLIST that checks for ISPF and pops up a window with user info.  
If it's not within ISPF it just WRITES the info.  As it can run outside ISPF it 
can't have an ISREDIT statement.

Dan D.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: :Re: Message IRX0006I running an edit macro CLIST

2017-09-01 Thread Dan D
Hi Skip,

Have you checked the ISPF command table for your command?

=3.9 then change the table to ISP.
We have quite a few CLISTs there ...
   WHOAMI3  SELECT CMD(%WHOAMI)
Then a WHOAMI CLIST that checks for ISPF and pops up a window with user info.  
If it's not within ISPF it just WRITES the info.  As it can run outside ISPF it 
can't have an ISREDIT statement.

Dan D.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-29 Thread CM Poncelet
Ah yes, that makes sense. I did not realise that ISPEXEC SELECT
PGM(J00YCKAL) PARM(JLRCL) actually processed the dataset being edited.
So ISREDIT MACRO is required in that case.
 
Cheers, CP
 

On 29/08/2017 17:54, Jesse 1 Robinson wrote:
> I have no stake in defending the JEM CLIST, but AFAIK 'ISREDIT MACRO' is 
> required in order to run it from the command line with just 'jem'. For better 
> or for worse, that's how people use the product. You're in edit on a JCL 
> member. Before submitting, you execute JEM to increase your chances of 
> getting a clean run. It does more than check JCL syntax. It also tries to 
> check that data sets referred to actually exist and that in general the logic 
> flow is at least superficially valid. Invoked as simply as possible. 
>
> PROC is not required for this function. Up to now, PROC never got in the way 
> of successful execution. 
>
> .
> .
> J.O.Skip Robinson
> Southern California Edison Company
> Electric Dragon Team Paddler 
> SHARE MVS Program Co-Manager
> 323-715-0595 Mobile
> 626-543-6132 Office ⇐=== NEW
> robin...@sce.com
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of CM Poncelet
> Sent: Monday, August 28, 2017 6:04 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: (External):Re: :Re: Message IRX0006I running an edit macro CLIST
>
> FWIW
>
> The oddity is that there are *no* edit macro statements after "ISREDIT MACRO 
> (PARMSTR)". So why is an edit macro declared in the Clist?
>  
> E.g. "ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.can be issued directly 
> from the Clist proc and does not need an edit macro to do that.
>  
> Sure, edit macros are normally invoked from the command line in edit mode. 
> But they can also be invoked by Clist and REXX procs, and then not from the 
> command line. So if JEM is a Clist that in turn invokes an edit macro, then 
> 'TSO JEM + any parms' would be used to invoke JEM as a Clist (and ISPF option 
> 6 could invoke it simply as 'JEM + any parms'). So, is JEM meant to be 
> invoked as a Clist ("PROC 0 ...") or as an edit macro ("ISREDIT MACRO 
> ()")?
>  
> I give up.
>  
> Cheers, CP
>  
>
> On 28/08/2017 15:52, Jesse 1 Robinson wrote:
>> That is exactly the case. Like most (maybe all) edit macros), JEM is 
>> executed directly on the command line. Running it as TSO command (tso 
>> jem) would fail to establish the proper connection to ISPF. I tried 
>> that and got
>>
>> EDIT MACRO ERROR
>> EDIT MACRO INITIALIZATION FAILURE.  CHECK EDIT MACRO CLIST.
>>
>> I did not see Paul Feller's post except as quoted by CM Poncelet. As CM 
>> notes, there are two parms: DSJNAME and PARMSTR. It seems odd that one is 
>> defined on the PROC statement and the other on the ISREDIT MACRO statement, 
>> but that's the way it's supplied to the customer. 
>>
>> I have no problem learning that an old loophole has been closed. But closed 
>> is closed, and what fails in one place should fail everywhere with the fix 
>> is place. The person who first reported the problem here is a true mainframe 
>> veteran. He uses JEM more than anyone else I know. 
>> .
>> .
>> J.O.Skip Robinson
>> Southern California Edison Company
>> Electric Dragon Team Paddler
>> SHARE MVS Program Co-Manager
>> 323-715-0595 Mobile
>> 626-543-6132 Office ⇐=== NEW
>> robin...@sce.com
>>
>>
>> -Original Message-
>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
>> On Behalf Of Lizette Koehler
>> Sent: Sunday, August 27, 2017 8:31 PM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: (External):Re: Message IRX0006I running an edit macro CLIST
>>
>> Typically the user is EDITing a PDS Member with JCL and enters JEM on 
>> the command line
>>
>> Lizette
>>
>>
>>> -Original Message-
>>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
>>> On Behalf Of CM Poncelet
>>> Sent: Sunday, August 27, 2017 7:11 PM
>>> To: IBM-MAIN@LISTSERV.UA.EDU
>>> Subject: Re: Message IRX0006I running an edit macro CLIST
>>>
>>> There are two parms for this Clist: DSJNAME and PARMSTR. How is JEM invoked?
>>> (E.g. it could be invoked as "TSO JEM HLQ.DSJN1.THEREST MACPARM2".)
>>>
>>> On 27/08/2017 18:25, Feller, Paul wrote:
>>>> One last comment.  We run the same software and have not had an 
>>>> issue in
>>> three different SYSPLEX environments.  I looked to the most recent 
>&g

Re: Message IRX0006I running an edit macro CLIST

2017-08-29 Thread Jesse 1 Robinson
I have no stake in defending the JEM CLIST, but AFAIK 'ISREDIT MACRO' is 
required in order to run it from the command line with just 'jem'. For better 
or for worse, that's how people use the product. You're in edit on a JCL 
member. Before submitting, you execute JEM to increase your chances of getting 
a clean run. It does more than check JCL syntax. It also tries to check that 
data sets referred to actually exist and that in general the logic flow is at 
least superficially valid. Invoked as simply as possible. 

PROC is not required for this function. Up to now, PROC never got in the way of 
successful execution. 

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of CM Poncelet
Sent: Monday, August 28, 2017 6:04 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: :Re: Message IRX0006I running an edit macro CLIST

FWIW

The oddity is that there are *no* edit macro statements after "ISREDIT MACRO 
(PARMSTR)". So why is an edit macro declared in the Clist?
 
E.g. "ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.can be issued directly from 
the Clist proc and does not need an edit macro to do that.
 
Sure, edit macros are normally invoked from the command line in edit mode. But 
they can also be invoked by Clist and REXX procs, and then not from the command 
line. So if JEM is a Clist that in turn invokes an edit macro, then 'TSO JEM + 
any parms' would be used to invoke JEM as a Clist (and ISPF option 6 could 
invoke it simply as 'JEM + any parms'). So, is JEM meant to be invoked as a 
Clist ("PROC 0 ...") or as an edit macro ("ISREDIT MACRO ()")?
 
I give up.
 
Cheers, CP
 

On 28/08/2017 15:52, Jesse 1 Robinson wrote:
> That is exactly the case. Like most (maybe all) edit macros), JEM is 
> executed directly on the command line. Running it as TSO command (tso 
> jem) would fail to establish the proper connection to ISPF. I tried 
> that and got
>
> EDIT MACRO ERROR
> EDIT MACRO INITIALIZATION FAILURE.  CHECK EDIT MACRO CLIST.
>
> I did not see Paul Feller's post except as quoted by CM Poncelet. As CM 
> notes, there are two parms: DSJNAME and PARMSTR. It seems odd that one is 
> defined on the PROC statement and the other on the ISREDIT MACRO statement, 
> but that's the way it's supplied to the customer. 
>
> I have no problem learning that an old loophole has been closed. But closed 
> is closed, and what fails in one place should fail everywhere with the fix is 
> place. The person who first reported the problem here is a true mainframe 
> veteran. He uses JEM more than anyone else I know. 
> .
> .
> J.O.Skip Robinson
> Southern California Edison Company
> Electric Dragon Team Paddler
> SHARE MVS Program Co-Manager
> 323-715-0595 Mobile
> 626-543-6132 Office ⇐=== NEW
> robin...@sce.com
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
> On Behalf Of Lizette Koehler
> Sent: Sunday, August 27, 2017 8:31 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: (External):Re: Message IRX0006I running an edit macro CLIST
>
> Typically the user is EDITing a PDS Member with JCL and enters JEM on 
> the command line
>
> Lizette
>
>
>> -Original Message-
>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
>> On Behalf Of CM Poncelet
>> Sent: Sunday, August 27, 2017 7:11 PM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Re: Message IRX0006I running an edit macro CLIST
>>
>> There are two parms for this Clist: DSJNAME and PARMSTR. How is JEM invoked?
>> (E.g. it could be invoked as "TSO JEM HLQ.DSJN1.THEREST MACPARM2".)
>>
>> On 27/08/2017 18:25, Feller, Paul wrote:
>>> One last comment.  We run the same software and have not had an 
>>> issue in
>> three different SYSPLEX environments.  I looked to the most recent 
>> versions of the software we have.  The JEM CLIST is shipped that way from 
>> the vendor.
>> Very interesting.
>>>
>>> BROWSESYSI.JOBSCAN.R790.AJJSCLST.HS(JEM) - 01. Line 00 Col 001
>> 080
>>>  Command ===>  Scroll ===>
>> CSR
>>> * Top of Data
>> *
>>>   PROC 0  DJSNAME(X.X)
>>>   CONTROL END(ENDO) NOMSG NOFLUSH
>>> /*CONTROL END(ENDO) MSG LIST CONLIST SYMLIST NOFLUSH /*S80725*/
>>>   ISREDIT MACRO (PARMSTR)
>>>
>>>   IF  = 

Re: :Re: Message IRX0006I running an edit macro CLIST

2017-08-28 Thread Paul Gilmartin
On Tue, 29 Aug 2017 04:37:19 +0100, CM Poncelet wrote:
>
>... made the "ISREDIT MACRO (PARMSTR)" statement wholly irrelevant
>(because no actual *edit* commands then followed it). All the commands
>that *did* follow it could be issued in native Clist or REXX, without a
>preceding "ISREDIT MACRO" statement.
>  
But you might risk a "NOT AN EDIT MACRO" error in its absence.

>BTW I use "ADDRESS" only for "ADDRESS IPCS", to avoid having to juggle
>between "ADDRESS TSO/MVS/ISREDIT/ISPEXEC/whatever-else".
> 
Does this make me the opposite extreme?  In a 432-line Rexx EXEC:

509 $ grep -i address ...
address 'ISREDIT' 'MACRO (Arg1)'   /* Use Edit macro argument  */
address 'ISPEXEC' 'VGET (ZSCREENI) SHARED'
address 'SYSCALL'
address 'SDSF'
address 'SYSCALL' 'open (G.9LOG)' ,
address 'SYSCALL' 'pipe G.9PIPE.'
address 'SYSCALL'
address 'SYSCALL'
address 'SYSCALL'
address 'TSO' 'RECEIVE INDD('arg( 1 )')';  end
address 'MVS' 'EXECIO 1 DISKW' G.9CTRL '( finis stem Content.'
address 'MVS' 'EXECIO 2 DISKW' G.9IEBOUT '(finis stem Header.'
address 'ATTCHMVS' 'IEBGENER PARM1 PARM2'
address 'SYSCALL'
address 'SYSCALL' 'mkdir (Head) 777'  /* less umask */
address 'SYSCALL' 'strerror (errno) (errnojr) emsg.'

... ?  (Mr. Natural sez, Use the right tool for the job.)

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: :Re: Message IRX0006I running an edit macro CLIST

2017-08-28 Thread CM Poncelet
*Any* commands that can be issued in a Clist or REXX proc (e.g. "ISPEXEC
SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.)can also be issued in an edit
macro. But *only edit* statements (e.g. "EXCLUDE ALL P'¬'" then "CHANGE
ALL P'.' ' ' NX" etc.) can be issued in edit macros. The point I was
making was that *no* edit commands (that could be issued *only* in edit
macros) were being issued after the "ISREDIT MACRO (PARMSTR)" - which
thus made the "ISREDIT MACRO (PARMSTR)" statement wholly irrelevant
(because no actual *edit* commands then followed it). All the commands
that *did* follow it could be issued in native Clist or REXX, without a
preceding "ISREDIT MACRO" statement.
 
BTW I use "ADDRESS" only for "ADDRESS IPCS", to avoid having to juggle
between "ADDRESS TSO/MVS/ISREDIT/ISPEXEC/whatever-else".
 
Cheers, CP
 


On 29/08/2017 02:13, Paul Gilmartin wrote:
> On Tue, 29 Aug 2017 02:04:25 +0100, CM Poncelet  wrote:
>
>> FWIW
>>
>> The oddity is that there are *no* edit macro statements after "ISREDIT
>> MACRO (PARMSTR)". So why is an edit macro declared in the Clist?
>>  
>> E.g. "ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.can be issued
>> directly from the Clist proc and does not need an edit macro to do that.
>>  
>> Sure, edit macros are normally invoked from the command line in edit
>> mode. But they can also be invoked by Clist and REXX procs, and then not
> >from the command line. So if JEM is a Clist that in turn invokes an edit
>> macro, then 'TSO JEM + any parms' would be used to invoke JEM as a Clist
>> (and ISPF option 6 could invoke it simply as 'JEM + any parms'). So, is
>> JEM meant to be invoked as a Clist ("PROC 0 ...") or as an edit macro
>> ("ISREDIT MACRO ()")?
>>  
>> I give up.
>>  
> In Rexx, I have done in at least one case:
> address 'ISREDIT' 'MACRO (Arg1)'   /* Use Edit macro argument  */
> if RC<>0 then Arg1 = arg( 1 )  /* else use Rexx argument.  */
>
> ... This works in Edit as a macro (just for convenience; it depends on no
> ISREDIT commands), TSO READY, IRXJCL, and OMVS, with no code changes.
>
> -- gil
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> .
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: :Re: Message IRX0006I running an edit macro CLIST

2017-08-28 Thread Paul Gilmartin
On Tue, 29 Aug 2017 02:04:25 +0100, CM Poncelet  wrote:

>FWIW
>
>The oddity is that there are *no* edit macro statements after "ISREDIT
>MACRO (PARMSTR)". So why is an edit macro declared in the Clist?
> 
>E.g. "ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.can be issued
>directly from the Clist proc and does not need an edit macro to do that.
> 
>Sure, edit macros are normally invoked from the command line in edit
>mode. But they can also be invoked by Clist and REXX procs, and then not
>from the command line. So if JEM is a Clist that in turn invokes an edit
>macro, then 'TSO JEM + any parms' would be used to invoke JEM as a Clist
>(and ISPF option 6 could invoke it simply as 'JEM + any parms'). So, is
>JEM meant to be invoked as a Clist ("PROC 0 ...") or as an edit macro
>("ISREDIT MACRO ()")?
> 
>I give up.
> 
In Rexx, I have done in at least one case:
address 'ISREDIT' 'MACRO (Arg1)'   /* Use Edit macro argument  */
if RC<>0 then Arg1 = arg( 1 )  /* else use Rexx argument.  */

... This works in Edit as a macro (just for convenience; it depends on no
ISREDIT commands), TSO READY, IRXJCL, and OMVS, with no code changes.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: :Re: Message IRX0006I running an edit macro CLIST

2017-08-28 Thread CM Poncelet
FWIW

The oddity is that there are *no* edit macro statements after "ISREDIT
MACRO (PARMSTR)". So why is an edit macro declared in the Clist?
 
E.g. "ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.can be issued
directly from the Clist proc and does not need an edit macro to do that.
 
Sure, edit macros are normally invoked from the command line in edit
mode. But they can also be invoked by Clist and REXX procs, and then not
from the command line. So if JEM is a Clist that in turn invokes an edit
macro, then 'TSO JEM + any parms' would be used to invoke JEM as a Clist
(and ISPF option 6 could invoke it simply as 'JEM + any parms'). So, is
JEM meant to be invoked as a Clist ("PROC 0 ...") or as an edit macro
("ISREDIT MACRO ()")?
 
I give up.
 
Cheers, CP
 

On 28/08/2017 15:52, Jesse 1 Robinson wrote:
> That is exactly the case. Like most (maybe all) edit macros), JEM is executed 
> directly on the command line. Running it as TSO command (tso jem) would fail 
> to establish the proper connection to ISPF. I tried that and got 
>
> EDIT MACRO ERROR
> EDIT MACRO INITIALIZATION FAILURE.  CHECK EDIT MACRO CLIST.
>
> I did not see Paul Feller's post except as quoted by CM Poncelet. As CM 
> notes, there are two parms: DSJNAME and PARMSTR. It seems odd that one is 
> defined on the PROC statement and the other on the ISREDIT MACRO statement, 
> but that's the way it's supplied to the customer. 
>
> I have no problem learning that an old loophole has been closed. But closed 
> is closed, and what fails in one place should fail everywhere with the fix is 
> place. The person who first reported the problem here is a true mainframe 
> veteran. He uses JEM more than anyone else I know. 
> .
> .
> J.O.Skip Robinson
> Southern California Edison Company
> Electric Dragon Team Paddler 
> SHARE MVS Program Co-Manager
> 323-715-0595 Mobile
> 626-543-6132 Office ⇐=== NEW
> robin...@sce.com
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of Lizette Koehler
> Sent: Sunday, August 27, 2017 8:31 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: (External):Re: Message IRX0006I running an edit macro CLIST
>
> Typically the user is EDITing a PDS Member with JCL and enters JEM on the 
> command line
>
> Lizette
>
>
>> -Original Message-
>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
>> On Behalf Of CM Poncelet
>> Sent: Sunday, August 27, 2017 7:11 PM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Re: Message IRX0006I running an edit macro CLIST
>>
>> There are two parms for this Clist: DSJNAME and PARMSTR. How is JEM invoked?
>> (E.g. it could be invoked as "TSO JEM HLQ.DSJN1.THEREST MACPARM2".)
>>
>> On 27/08/2017 18:25, Feller, Paul wrote:
>>> One last comment.  We run the same software and have not had an 
>>> issue in
>> three different SYSPLEX environments.  I looked to the most recent 
>> versions of the software we have.  The JEM CLIST is shipped that way from 
>> the vendor.
>> Very interesting.
>>>
>>> BROWSESYSI.JOBSCAN.R790.AJJSCLST.HS(JEM) - 01. Line 00 Col 001
>> 080
>>>  Command ===>  Scroll ===>
>> CSR
>>> * Top of Data
>> *
>>>   PROC 0  DJSNAME(X.X)
>>>   CONTROL END(ENDO) NOMSG NOFLUSH
>>> /*CONTROL END(ENDO) MSG LIST CONLIST SYMLIST NOFLUSH /*S80725*/
>>>   ISREDIT MACRO (PARMSTR)
>>>
>>>   IF  = (X.X) THEN +
>>> DO
>>> ISPEXEC SETMSG MSG(JM022R)/*JTE30780*/
>>> GOTO ENDING
>>> ENDO
>>>
>>> /*    ALLOCATE RUN CONTROL LIBRARY
>>>ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)   /*JTE30780*/
>>>IF  NE 0 THEN +
>>>  DO
>>>SET  = 'N'  /*813647 */
>>>ALLOC DDN(JLRCL) DSN('') SHR
>>>  ENDO
>>>
>>> /*    CALL THE JEM SUPERVISOR 
>>>   ISPEXEC SELECT PGM(J0AYEMU) PARM(PR(E) ) 
>>> /*JTE30780*/
>>>
>>>   ENDING: +
>>>       ISPEXEC VGET (ZSPLIT)
>>>   IF () = (YES) THEN +
>>> EXIT
>>>   IF  = 'N' THEN FREE DDN(JLRCL)
>>>   EXIT
>>> ***

:Re: Message IRX0006I running an edit macro CLIST

2017-08-28 Thread Jesse 1 Robinson
That is exactly the case. Like most (maybe all) edit macros), JEM is executed 
directly on the command line. Running it as TSO command (tso jem) would fail to 
establish the proper connection to ISPF. I tried that and got 

EDIT MACRO ERROR
EDIT MACRO INITIALIZATION FAILURE.  CHECK EDIT MACRO CLIST.

I did not see Paul Feller's post except as quoted by CM Poncelet. As CM notes, 
there are two parms: DSJNAME and PARMSTR. It seems odd that one is defined on 
the PROC statement and the other on the ISREDIT MACRO statement, but that's the 
way it's supplied to the customer. 

I have no problem learning that an old loophole has been closed. But closed is 
closed, and what fails in one place should fail everywhere with the fix is 
place. The person who first reported the problem here is a true mainframe 
veteran. He uses JEM more than anyone else I know. 
.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Lizette Koehler
Sent: Sunday, August 27, 2017 8:31 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: Message IRX0006I running an edit macro CLIST

Typically the user is EDITing a PDS Member with JCL and enters JEM on the 
command line

Lizette


> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
> On Behalf Of CM Poncelet
> Sent: Sunday, August 27, 2017 7:11 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Message IRX0006I running an edit macro CLIST
> 
> There are two parms for this Clist: DSJNAME and PARMSTR. How is JEM invoked?
> (E.g. it could be invoked as "TSO JEM HLQ.DSJN1.THEREST MACPARM2".)
> 
> On 27/08/2017 18:25, Feller, Paul wrote:
> > One last comment.  We run the same software and have not had an 
> > issue in
> three different SYSPLEX environments.  I looked to the most recent 
> versions of the software we have.  The JEM CLIST is shipped that way from the 
> vendor.
> Very interesting.
> >
> >
> > BROWSESYSI.JOBSCAN.R790.AJJSCLST.HS(JEM) - 01. Line 00 Col 001
> 080
> >  Command ===>  Scroll ===>
> CSR
> > * Top of Data
> *
> >   PROC 0  DJSNAME(X.X)
> >   CONTROL END(ENDO) NOMSG NOFLUSH
> > /*CONTROL END(ENDO) MSG LIST CONLIST SYMLIST NOFLUSH /*S80725*/
> >   ISREDIT MACRO (PARMSTR)
> >
> >   IF  = (X.X) THEN +
> > DO
> > ISPEXEC SETMSG MSG(JM022R)/*JTE30780*/
> > GOTO ENDING
> > ENDO
> >
> > /*    ALLOCATE RUN CONTROL LIBRARY
> >ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)   /*JTE30780*/
> >IF  NE 0 THEN +
> >  DO
> >SET  = 'N'  /*813647 */
> >ALLOC DDN(JLRCL) DSN('') SHR
> >  ENDO
> >
> > /*    CALL THE JEM SUPERVISOR 
> >   ISPEXEC SELECT PGM(J0AYEMU) PARM(PR(E) ) 
> > /*JTE30780*/
> >
> >   ENDING: +
> >   ISPEXEC VGET (ZSPLIT)
> >   IF () = (YES) THEN +
> > EXIT
> >   IF  = 'N' THEN FREE DDN(JLRCL)
> >   EXIT
> >  Bottom of Data
> > ***
> >
> > Thanks..
> >
> > Paul Feller
> > AGT Mainframe Technical Support
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List 
> > [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Jesse 1 Robinson
> > Sent: Sunday, August 27, 2017 12:11
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: Message IRX0006I running an edit macro CLIST
> >
> > I never knew of this restriction on edit macros. Looking through the 
> > same
> library for others, I find a few other CLISTs that have 'PROC' at the 
> top; most do not. It looks like JEM was constructed to allow an 
> alternate load library to be specified on invocation for testing 
> purposes. I removed the PROC statement and now it works. BTW I did not 
> take the step of closing the opening comment with '*/'; that is not 
> required for CLIST in general. Also, there is no other copy of JEM except 
> this one in SYSPROC.
> >
> > So mysteries remain. My favorite user complaint: this used to work 
> > and now
> it doesn't; what happened? Eve

Re: Message IRX0006I running an edit macro CLIST

2017-08-28 Thread Paul Gilmartin
On Mon, 28 Aug 2017 02:59:02 +0100, CM Poncelet wrote:
> 
>As for the 'mysteries', I would guess that IBM published a PTF to
>*enforce* the rule that edit macros should always begin with 'ISREDIT
>MACRO' - and had previously been ignored. ...
>  
For Rexx, at least, I've always experienced an error when there was no
ADDRESS ISREDIT MACRO.  But there may have been some obscure path
where it was not reported for CLISTs.

The behavior was silly.  An entire EXEC could execute successfully then
have an error reported when it exited.

And if the ISPF developers hadn't been Rexx-ignorant, they would have:
o Supported PARSE ARG
o Made the inital command environment ISREDIT rather than TSO.  (That would
  correspond to the way XEDIT macros work in CMS.)

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-27 Thread Lizette Koehler
Typically the user is EDITing a PDS Member with JCL and enters JEM on the 
command line

Lizette


> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of CM Poncelet
> Sent: Sunday, August 27, 2017 7:11 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Message IRX0006I running an edit macro CLIST
> 
> There are two parms for this Clist: DSJNAME and PARMSTR. How is JEM invoked?
> (E.g. it could be invoked as "TSO JEM HLQ.DSJN1.THEREST MACPARM2".)
> 
> On 27/08/2017 18:25, Feller, Paul wrote:
> > One last comment.  We run the same software and have not had an issue in
> three different SYSPLEX environments.  I looked to the most recent versions
> of the software we have.  The JEM CLIST is shipped that way from the vendor.
> Very interesting.
> >
> >
> > BROWSESYSI.JOBSCAN.R790.AJJSCLST.HS(JEM) - 01. Line 00 Col 001
> 080
> >  Command ===>  Scroll ===>
> CSR
> > * Top of Data
> *
> >   PROC 0  DJSNAME(X.X)
> >   CONTROL END(ENDO) NOMSG NOFLUSH
> > /*CONTROL END(ENDO) MSG LIST CONLIST SYMLIST NOFLUSH /*S80725*/
> >   ISREDIT MACRO (PARMSTR)
> >
> >   IF  = (X.X) THEN +
> > DO
> > ISPEXEC SETMSG MSG(JM022R)/*JTE30780*/
> > GOTO ENDING
> > ENDO
> >
> > /*    ALLOCATE RUN CONTROL LIBRARY
> >ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)   /*JTE30780*/
> >IF  NE 0 THEN +
> >  DO
> >SET  = 'N'  /*813647 */
> >ALLOC DDN(JLRCL) DSN('') SHR
> >  ENDO
> >
> > /*    CALL THE JEM SUPERVISOR 
> >   ISPEXEC SELECT PGM(J0AYEMU) PARM(PR(E) ) /*JTE30780*/
> >
> >   ENDING: +
> >   ISPEXEC VGET (ZSPLIT)
> >   IF () = (YES) THEN +
> > EXIT
> >   IF  = 'N' THEN FREE DDN(JLRCL)
> >   EXIT
> >  Bottom of Data
> > ***
> >
> > Thanks..
> >
> > Paul Feller
> > AGT Mainframe Technical Support
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of Jesse 1 Robinson
> > Sent: Sunday, August 27, 2017 12:11
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: Message IRX0006I running an edit macro CLIST
> >
> > I never knew of this restriction on edit macros. Looking through the same
> library for others, I find a few other CLISTs that have 'PROC' at the top;
> most do not. It looks like JEM was constructed to allow an alternate load
> library to be specified on invocation for testing purposes. I removed the
> PROC statement and now it works. BTW I did not take the step of closing the
> opening comment with '*/'; that is not required for CLIST in general. Also,
> there is no other copy of JEM except this one in SYSPROC.
> >
> > So mysteries remain. My favorite user complaint: this used to work and now
> it doesn't; what happened? Even more mysterious, the same CLIST continues to
> work on other sysplexes at the same z/OS maintenance level. In any case, the
> immediate problem is solved, for which I'm once again grateful to this List.
> >
> > .
> > .
> > J.O.Skip Robinson
> > Southern California Edison Company
> > Electric Dragon Team Paddler
> > SHARE MVS Program Co-Manager
> > 323-715-0595 Mobile
> > 626-543-6132 Office ⇐=== NEW
> > robin...@sce.com
> >
> >
> > -Original Message-
> > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU]
> > On Behalf Of CM Poncelet
> > Sent: Saturday, August 26, 2017 2:36 PM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: (External):Re: Message IRX0006I running an edit macro CLIST
> >
> > FWIW
> > (a) The "ISREDIT MACRO" should be the *1st* executable statement; there
> should be no "PROC 0 " in edit macros - unless the edit macro is
> actually embedded in the Clist (a bit unusual).
> > (b) Anyquotes should be enclosed in both '/*' and '*/' open/closing chars,
> even in Clist.
> >
> > The usual way to invoke an edit macro in Clist, e.g. in batch, is of
> > the
> > form:
> >
> > code the Clist to invoke the edit macro ...
>

Re: Message IRX0006I running an edit macro CLIST

2017-08-27 Thread CM Poncelet
There are two parms for this Clist: DSJNAME and PARMSTR. How is JEM
invoked? (E.g. it could be invoked as "TSO JEM HLQ.DSJN1.THEREST MACPARM2".)

On 27/08/2017 18:25, Feller, Paul wrote:
> One last comment.  We run the same software and have not had an issue in 
> three different SYSPLEX environments.  I looked to the most recent versions 
> of the software we have.  The JEM CLIST is shipped that way from the vendor.  
> Very interesting.
>
>
> BROWSESYSI.JOBSCAN.R790.AJJSCLST.HS(JEM) - 01. Line 00 Col 001 080
>  Command ===>  Scroll ===> 
> CSR 
> * Top of Data 
> *
>   PROC 0  DJSNAME(X.X)
>  
>   CONTROL END(ENDO) NOMSG NOFLUSH 
>  
> /*CONTROL END(ENDO) MSG LIST CONLIST SYMLIST NOFLUSH /*S80725*/   
>  
>   ISREDIT MACRO (PARMSTR) 
>  
>   
>  
>   IF  = (X.X) THEN +  
>  
> DO
>  
> ISPEXEC SETMSG MSG(JM022R)/*JTE30780*/
>  
> GOTO ENDING   
>  
> ENDO  
>  
>   
>  
> /*    ALLOCATE RUN CONTROL LIBRARY
>  
>ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)   /*JTE30780*/
>  
>IF  NE 0 THEN + 
>  
>  DO   
>  
>SET  = 'N'  /*813647 */ 
>  
>ALLOC DDN(JLRCL) DSN('') SHR 
>  
>  ENDO 
>  
>   
>  
> /*    CALL THE JEM SUPERVISOR 
>  
>   ISPEXEC SELECT PGM(J0AYEMU) PARM(PR(E) ) /*JTE30780*/   
>  
>   
>  
>   ENDING: +   
>  
>   ISPEXEC VGET (ZSPLIT)   
>  
>   IF () = (YES) THEN + 
>  
> EXIT  
>  
>   IF  = 'N' THEN FREE DDN(JLRCL)   
>  
>   EXIT
>  
>  Bottom of Data 
> ***
>
> Thanks..
>
> Paul Feller
> AGT Mainframe Technical Support
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of Jesse 1 Robinson
> Sent: Sunday, August 27, 2017 12:11
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Message IRX0006I running an edit macro CLIST
>
> I never knew of this restriction on edit macros. Looking through the same 
> library for others, I find a few other CLISTs that have 'PROC' at the top; 
> most do not. It looks like JEM was constructed to allow an alternate load 
> library to be specified on invocation for testing purposes. I removed the 
> PROC statement and now it works. BTW I did not take the step of closing the 
> opening comment with '*/'; that is not required for CLIST in general. Also, 
> there is no other copy of JEM except this one in SYSPROC.
>
> So mysteries remain. My favorite user complaint: this used to work and now it 
> doesn't; what happened? Even more mysterious, the same CLIST continues to 
> work on other sysplexes at the same z/OS maintenance level. In any case, the 
> immediate problem is solved, for which I'm once again grateful to this List. 
>
> .
> .
> J.O.Skip Robinson
> Southern California Edison Company
> Electric Dragon Team Paddler 
> SHARE MVS Program Co-Manager
> 323-715-0595 Mobile
> 626-543-6132 Office ⇐=== NEW
> robin...@sce.com
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of CM Poncelet
> Sent: Saturday, August 26, 2017 2:36 PM

Re: Message IRX0006I running an edit macro CLIST

2017-08-27 Thread CM Poncelet
The reason Clist comments do not need '*/' closing chars is that Clist
lines ending with only a space imply 'end-of-line'. They would need to
end with a '+' or '-' char to indicate they continued on to next line.
REXX requires both '/*' and '*/' to indicate start and end of comments
(same as in SMP/E's PTFs etc.) I enclose my Clist comments in '/*' and
'*/' just to be sure.
 
As for the 'mysteries', I would guess that IBM published a PTF to
*enforce* the rule that edit macros should always begin with 'ISREDIT
MACRO' - and had previously been ignored. You could spend some time
cross-checking which PTFs had been applied in the SMP/E CSIs of LPARs
that did not work when 'PROC' was coded in edit macros (as opposed to
the LPARs that did still work), but I would not bother. It seems to be
some left-over glitch that IBM decided to fix.
 
Cheers, Chris Poncelet (retired sysprog)
 
 
 


On 27/08/2017 18:11, Jesse 1 Robinson wrote:
> I never knew of this restriction on edit macros. Looking through the same 
> library for others, I find a few other CLISTs that have 'PROC' at the top; 
> most do not. It looks like JEM was constructed to allow an alternate load 
> library to be specified on invocation for testing purposes. I removed the 
> PROC statement and now it works. BTW I did not take the step of closing the 
> opening comment with '*/'; that is not required for CLIST in general. Also, 
> there is no other copy of JEM except this one in SYSPROC.
>
> So mysteries remain. My favorite user complaint: this used to work and now it 
> doesn't; what happened? Even more mysterious, the same CLIST continues to 
> work on other sysplexes at the same z/OS maintenance level. In any case, the 
> immediate problem is solved, for which I'm once again grateful to this List. 
>
> .
> .
> J.O.Skip Robinson
> Southern California Edison Company
> Electric Dragon Team Paddler 
> SHARE MVS Program Co-Manager
> 323-715-0595 Mobile
> 626-543-6132 Office ⇐=== NEW
> robin...@sce.com
>
>
> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of CM Poncelet
> Sent: Saturday, August 26, 2017 2:36 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: (External):Re: Message IRX0006I running an edit macro CLIST
>
> FWIW
> (a) The "ISREDIT MACRO" should be the *1st* executable statement; there 
> should be no "PROC 0 " in edit macros - unless the edit macro is 
> actually embedded in the Clist (a bit unusual).
> (b) Anyquotes should be enclosed in both '/*' and '*/' open/closing chars, 
> even in Clist.
>  
> The usual way to invoke an edit macro in Clist, e.g. in batch, is of the
> form:
>
> code the Clist to invoke the edit macro ...
>   PROC 0  DJSNAME(SPP.JOBSCAN)
> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>   CONTROL END(ENDO) NOMSG NOFLUSH
>   ISPEXEC VPUT PARMSTR SHARED  /* store whatever PARMSTR is for macro */
>   ISPEXEC EDIT DATASET('') MACRO()
>   ISPEXEC VGET RC SHARED /* get the macro RC from shared pool */
>   ... finish off the Clist ...
>   EXIT CODE()
>  
> and code the macro as a separate member  ...
>   ISREDIT MACRO  /* specify no parms if invoked by a Clist */
>   CONTROL END(ENDO) NOMSG NOFLUSH
>   ISPEXEC VGET PARMSTR SHARED  /* get the macro parms from shared pool */
>   ...  ...
>   ... save whatever the macro (MAX)CC is, as e.g. RC ...
>   ISPEXEC VPUT RC SHARED  /* store whatever the RC is for Clist */
>   ISREDIT END  /* return to Clist */
>  
> Both the Clist and edit macro should be members of a PDS on 
> DDNAME=SYSPROC.HTH, CP  
>
>  
>
>
>
> On 26/08/2017 20:48, Lizette Koehler wrote:
>> Did you use ISRDDN and search for JEM?  Just to verify what you see.
>>
>> Only time I see this is when a CLIST is on SYSEXEC
>>
>>
>> Lizette
>>
>>
>>> -Original Message-
>>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
>>> On Behalf Of Jesse 1 Robinson
>>> Sent: Saturday, August 26, 2017 8:27 AM
>>> To: IBM-MAIN@LISTSERV.UA.EDU
>>> Subject: Message IRX0006I running an edit macro CLIST
>>>
>>> OK, this is a weird one. We have an old CLIST that runs as an ISPF 
>>> edit macro. On one sysplex only, this CLIST fails with a *Rexx* error 
>>> message:
>>>
>>> IRX0006I Error running JEM, line 2: Unmatched "/*" or quote
>>>
>>> The actual line being complained about is included here:
>>>
>>>   PROC 0  DJSNAME(SPP.JOBSCAN)
>>> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>>>   CONTROL END(ENDO) NOMSG NOFLUSH
>>>   ISREDIT MACRO (PARMSTR)
>>>
>>> Of cours

Re: Message IRX0006I running an edit macro CLIST

2017-08-27 Thread Feller, Paul
One last comment.  We run the same software and have not had an issue in three 
different SYSPLEX environments.  I looked to the most recent versions of the 
software we have.  The JEM CLIST is shipped that way from the vendor.  Very 
interesting.


BROWSESYSI.JOBSCAN.R790.AJJSCLST.HS(JEM) - 01. Line 00 Col 001 080
 Command ===>  Scroll ===> CSR 
* Top of Data *
  PROC 0  DJSNAME(X.X) 
  CONTROL END(ENDO) NOMSG NOFLUSH  
/*CONTROL END(ENDO) MSG LIST CONLIST SYMLIST NOFLUSH /*S80725*/
  ISREDIT MACRO (PARMSTR)  
   
  IF  = (X.X) THEN +   
DO 
ISPEXEC SETMSG MSG(JM022R)/*JTE30780*/ 
GOTO ENDING
ENDO   
   
/*    ALLOCATE RUN CONTROL LIBRARY 
   ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)   /*JTE30780*/ 
   IF  NE 0 THEN +  
 DO
   SET  = 'N'  /*813647 */  
   ALLOC DDN(JLRCL) DSN('') SHR  
 ENDO  
   
/*    CALL THE JEM SUPERVISOR  
  ISPEXEC SELECT PGM(J0AYEMU) PARM(PR(E) ) /*JTE30780*/
   
  ENDING: +
  ISPEXEC VGET (ZSPLIT)
  IF () = (YES) THEN +  
EXIT   
  IF  = 'N' THEN FREE DDN(JLRCL)
  EXIT 
 Bottom of Data ***

Thanks..

Paul Feller
AGT Mainframe Technical Support

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Jesse 1 Robinson
Sent: Sunday, August 27, 2017 12:11
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Message IRX0006I running an edit macro CLIST

I never knew of this restriction on edit macros. Looking through the same 
library for others, I find a few other CLISTs that have 'PROC' at the top; most 
do not. It looks like JEM was constructed to allow an alternate load library to 
be specified on invocation for testing purposes. I removed the PROC statement 
and now it works. BTW I did not take the step of closing the opening comment 
with '*/'; that is not required for CLIST in general. Also, there is no other 
copy of JEM except this one in SYSPROC.

So mysteries remain. My favorite user complaint: this used to work and now it 
doesn't; what happened? Even more mysterious, the same CLIST continues to work 
on other sysplexes at the same z/OS maintenance level. In any case, the 
immediate problem is solved, for which I'm once again grateful to this List. 

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of CM Poncelet
Sent: Saturday, August 26, 2017 2:36 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: Message IRX0006I running an edit macro CLIST

FWIW
(a) The "ISREDIT MACRO" should be the *1st* executable statement; there should 
be no "PROC 0 " in edit macros - unless the edit macro is actually 
embedded in the Clist (a bit unusual).
(b) Anyquotes should be enclosed in both '/*' and '*/' open/closing chars, even 
in Clist.
 
The usual way to invoke an edit macro in Clist, e.g. in batch, is of the
form:

code the Clist to invoke the edit macro ...
  PROC 0  DJSNAME(SPP.JOBSCAN)
/* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
  CONTROL END(ENDO) NOMSG NOFLUSH
  ISPEXEC VPUT PARMSTR SHARED  /* store whatever PARMSTR is for macro */
  ISPEXEC EDIT DATASET('') MACRO()
  ISPEXEC VGET 

Re: Message IRX0006I running an edit macro CLIST

2017-08-27 Thread Jesse 1 Robinson
I never knew of this restriction on edit macros. Looking through the same 
library for others, I find a few other CLISTs that have 'PROC' at the top; most 
do not. It looks like JEM was constructed to allow an alternate load library to 
be specified on invocation for testing purposes. I removed the PROC statement 
and now it works. BTW I did not take the step of closing the opening comment 
with '*/'; that is not required for CLIST in general. Also, there is no other 
copy of JEM except this one in SYSPROC.

So mysteries remain. My favorite user complaint: this used to work and now it 
doesn't; what happened? Even more mysterious, the same CLIST continues to work 
on other sysplexes at the same z/OS maintenance level. In any case, the 
immediate problem is solved, for which I'm once again grateful to this List. 

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of CM Poncelet
Sent: Saturday, August 26, 2017 2:36 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: Message IRX0006I running an edit macro CLIST

FWIW
(a) The "ISREDIT MACRO" should be the *1st* executable statement; there should 
be no "PROC 0 " in edit macros - unless the edit macro is actually 
embedded in the Clist (a bit unusual).
(b) Anyquotes should be enclosed in both '/*' and '*/' open/closing chars, even 
in Clist.
 
The usual way to invoke an edit macro in Clist, e.g. in batch, is of the
form:

code the Clist to invoke the edit macro ...
  PROC 0  DJSNAME(SPP.JOBSCAN)
/* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
  CONTROL END(ENDO) NOMSG NOFLUSH
  ISPEXEC VPUT PARMSTR SHARED  /* store whatever PARMSTR is for macro */
  ISPEXEC EDIT DATASET('') MACRO()
  ISPEXEC VGET RC SHARED /* get the macro RC from shared pool */
  ... finish off the Clist ...
  EXIT CODE()
 
and code the macro as a separate member  ...
  ISREDIT MACRO  /* specify no parms if invoked by a Clist */
  CONTROL END(ENDO) NOMSG NOFLUSH
  ISPEXEC VGET PARMSTR SHARED  /* get the macro parms from shared pool */
  ...  ...
  ... save whatever the macro (MAX)CC is, as e.g. RC ...
  ISPEXEC VPUT RC SHARED  /* store whatever the RC is for Clist */
  ISREDIT END  /* return to Clist */
 
Both the Clist and edit macro should be members of a PDS on DDNAME=SYSPROC.HTH, 
CP  

 



On 26/08/2017 20:48, Lizette Koehler wrote:
> Did you use ISRDDN and search for JEM?  Just to verify what you see.
>
> Only time I see this is when a CLIST is on SYSEXEC
>
>
> Lizette
>
>
>> -Original Message-
>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
>> On Behalf Of Jesse 1 Robinson
>> Sent: Saturday, August 26, 2017 8:27 AM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Message IRX0006I running an edit macro CLIST
>>
>> OK, this is a weird one. We have an old CLIST that runs as an ISPF 
>> edit macro. On one sysplex only, this CLIST fails with a *Rexx* error 
>> message:
>>
>> IRX0006I Error running JEM, line 2: Unmatched "/*" or quote
>>
>> The actual line being complained about is included here:
>>
>>   PROC 0  DJSNAME(SPP.JOBSCAN)
>> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>>   CONTROL END(ENDO) NOMSG NOFLUSH
>>   ISREDIT MACRO (PARMSTR)
>>
>> Of course there is no closing '*/' in line 2, but it's a CLIST, not a Rexx.
>> The CLIST was last modified in 2007 according to ISPF stats. What 
>> appears to be exactly the same CLIST works fine on other sysplexes. 
>> The z/OS maintenance level (RSU1705) is the same on working and 
>> nonworking plexes. I have looked in SYSEXEC libraries and in other 
>> SYSPROC libraries for a bogus copy of this exec; nothing found. The 
>> CLIST library is VB; member is unnumbered, so data starts in column 9.
>>
>> What might cause a CLIST to be misinterpreted as Rexx?


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread Paul Gilmartin
On Sat, 26 Aug 2017 12:48:56 -0700, Lizette Koehler wrote:

>Did you use ISRDDN and search for JEM?  Just to verify what you see.
>
>Only time I see this is when a CLIST is on SYSEXEC
> 
ISRDDN is badly broken.  I've reported this and received WAD.  If a DDNAME is a 
mixed
cocatenation of UNIX directories and PDS(E)s, ISRDDN MEMBER reports only members
in PDS(E)S even though similarly named members exist earlier in the 
concatenation and
are found by BLDL.  IBM just doesn't follow through on its own good ideas.

Try:
o Renaming the JEM clist in SYSPROC.
o Issue JEM on the Edit command line.

If you get the same error, there's a bogus JEM elsewhere.
If you get UNKNOWN COMMAND, the mystery deepens.

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread CM Poncelet
FWIW
(a) The "ISREDIT MACRO" should be the *1st* executable statement; there
should be no "PROC 0 " in edit macros - unless the edit macro
is actually embedded in the Clist (a bit unusual).
(b) Anyquotes should be enclosed in both '/*' and '*/' open/closing
chars, even in Clist.
 
The usual way to invoke an edit macro in Clist, e.g. in batch, is of the
form:

code the Clist to invoke the edit macro ...
  PROC 0  DJSNAME(SPP.JOBSCAN)
/* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
  CONTROL END(ENDO) NOMSG NOFLUSH
  ISPEXEC VPUT PARMSTR SHARED  /* store whatever PARMSTR is for macro */
  ISPEXEC EDIT DATASET('') MACRO()
  ISPEXEC VGET RC SHARED /* get the macro RC from shared pool */
  ... finish off the Clist ...
  EXIT CODE()
 
and code the macro as a separate member  ...
  ISREDIT MACRO  /* specify no parms if invoked by a Clist */
  CONTROL END(ENDO) NOMSG NOFLUSH
  ISPEXEC VGET PARMSTR SHARED  /* get the macro parms from shared pool */
  ...  ...
  ... save whatever the macro (MAX)CC is, as e.g. RC ...
  ISPEXEC VPUT RC SHARED  /* store whatever the RC is for Clist */
  ISREDIT END  /* return to Clist */
 
Both the Clist and edit macro should be members of a PDS on DDNAME=SYSPROC.HTH, 
CP  

 



On 26/08/2017 20:48, Lizette Koehler wrote:
> Did you use ISRDDN and search for JEM?  Just to verify what you see.
>
> Only time I see this is when a CLIST is on SYSEXEC
>
>
> Lizette
>
>
>> -Original Message-
>> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
>> Behalf Of Jesse 1 Robinson
>> Sent: Saturday, August 26, 2017 8:27 AM
>> To: IBM-MAIN@LISTSERV.UA.EDU
>> Subject: Message IRX0006I running an edit macro CLIST
>>
>> OK, this is a weird one. We have an old CLIST that runs as an ISPF edit
>> macro. On one sysplex only, this CLIST fails with a *Rexx* error message:
>>
>> IRX0006I Error running JEM, line 2: Unmatched "/*" or quote
>>
>> The actual line being complained about is included here:
>>
>>   PROC 0  DJSNAME(SPP.JOBSCAN)
>> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>>   CONTROL END(ENDO) NOMSG NOFLUSH
>>   ISREDIT MACRO (PARMSTR)
>>
>> Of course there is no closing '*/' in line 2, but it's a CLIST, not a Rexx.
>> The CLIST was last modified in 2007 according to ISPF stats. What appears to
>> be exactly the same CLIST works fine on other sysplexes. The z/OS maintenance
>> level (RSU1705) is the same on working and nonworking plexes. I have looked
>> in SYSEXEC libraries and in other SYSPROC libraries for a bogus copy of this
>> exec; nothing found. The CLIST library is VB; member is unnumbered, so data
>> starts in column 9.
>>
>> What might cause a CLIST to be misinterpreted as Rexx?
>>
>>
>>
>> .
>> .
>> J.O.Skip Robinson
>> Southern California Edison Company
>> Electric Dragon Team Paddler
>> SHARE MVS Program Co-Manager
>> 323-715-0595 Mobile
>> 626-543-6132 Office <= NEW
>> robin...@sce.com<mailto:robin...@sce.com>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> .
>


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread Walt Farrell
On Sat, 26 Aug 2017 15:27:21 +, Jesse 1 Robinson  
wrote:

>OK, this is a weird one. We have an old CLIST that runs as an ISPF edit macro. 
>On one sysplex only, this CLIST fails with a *Rexx* error message:
>...snipped...
>
>What might cause a CLIST to be misinterpreted as Rexx?

What DDNAME do you find the CLIST in on the system where it fails? What DDNAME 
is it in on a system where it works?

-- 
Walt

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread Lizette Koehler
Did you use ISRDDN and search for JEM?  Just to verify what you see.

Only time I see this is when a CLIST is on SYSEXEC


Lizette


> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Jesse 1 Robinson
> Sent: Saturday, August 26, 2017 8:27 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Message IRX0006I running an edit macro CLIST
> 
> OK, this is a weird one. We have an old CLIST that runs as an ISPF edit
> macro. On one sysplex only, this CLIST fails with a *Rexx* error message:
> 
> IRX0006I Error running JEM, line 2: Unmatched "/*" or quote
> 
> The actual line being complained about is included here:
> 
>   PROC 0  DJSNAME(SPP.JOBSCAN)
> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>   CONTROL END(ENDO) NOMSG NOFLUSH
>   ISREDIT MACRO (PARMSTR)
> 
> Of course there is no closing '*/' in line 2, but it's a CLIST, not a Rexx.
> The CLIST was last modified in 2007 according to ISPF stats. What appears to
> be exactly the same CLIST works fine on other sysplexes. The z/OS maintenance
> level (RSU1705) is the same on working and nonworking plexes. I have looked
> in SYSEXEC libraries and in other SYSPROC libraries for a bogus copy of this
> exec; nothing found. The CLIST library is VB; member is unnumbered, so data
> starts in column 9.
> 
> What might cause a CLIST to be misinterpreted as Rexx?
> 
> 
> 
> .
> .
> J.O.Skip Robinson
> Southern California Edison Company
> Electric Dragon Team Paddler
> SHARE MVS Program Co-Manager
> 323-715-0595 Mobile
> 626-543-6132 Office <= NEW
> robin...@sce.com<mailto:robin...@sce.com>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread Paul Gilmartin
On 2017-08-26, at 10:21, Jesse 1 Robinson wrote:

> Macro is invoked by simply typing JEM on the command line. I have not found 
> any user for whom it works today. (I was not the original reporter.) No 
> ALTLIBs in effect at error time. 
> 
> FYI JEM is a JCL validation product that we have run for decades in just this 
> way. 
>  
Does the DDLIST MEMBER function perhaps show an unexpected instance of JEM?

For diagnosis, temporariy rename JEM and replace it with:
/* Rexx */
signal on novalue
trace R
parse source .

-- gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread Jesse 1 Robinson
Macro is invoked by simply typing JEM on the command line. I have not found any 
user for whom it works today. (I was not the original reporter.) No ALTLIBs in 
effect at error time. 

FYI JEM is a JCL validation product that we have run for decades in just this 
way. 

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office ⇐=== NEW
robin...@sce.com

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of retired mainframer
Sent: Saturday, August 26, 2017 9:03 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: (External):Re: Message IRX0006I running an edit macro CLIST

How is the macro invoked?  On the SYSPLEX in question, do all users experience 
the problem?  For a user who does, are any ALTLIBs in effect when the error 
occurs?

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] 
> On Behalf Of Jesse 1 Robinson
> Sent: Saturday, August 26, 2017 8:27 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Message IRX0006I running an edit macro CLIST
> 
> OK, this is a weird one. We have an old CLIST that runs as an ISPF 
> edit
macro. On one
> sysplex only, this CLIST fails with a *Rexx* error message:
> 
> IRX0006I Error running JEM, line 2: Unmatched "/*" or quote
> 
> The actual line being complained about is included here:
> 
>   PROC 0  DJSNAME(SPP.JOBSCAN)
> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>   CONTROL END(ENDO) NOMSG NOFLUSH
>   ISREDIT MACRO (PARMSTR)
> 
> Of course there is no closing '*/' in line 2, but it's a CLIST, not a
Rexx. The CLIST was last
> modified in 2007 according to ISPF stats. What appears to be exactly 
> the
same CLIST
> works fine on other sysplexes. The z/OS maintenance level (RSU1705) is 
> the
same on
> working and nonworking plexes. I have looked in SYSEXEC libraries and 
> in
other
> SYSPROC libraries for a bogus copy of this exec; nothing found. The 
> CLIST
library is VB;
> member is unnumbered, so data starts in column 9.
> 
> What might cause a CLIST to be misinterpreted as Rexx?


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Message IRX0006I running an edit macro CLIST

2017-08-26 Thread retired mainframer
How is the macro invoked?  On the SYSPLEX in question, do all users
experience the problem?  For a user who does, are any ALTLIBs in effect when
the error occurs?

> -Original Message-
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Jesse 1 Robinson
> Sent: Saturday, August 26, 2017 8:27 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Message IRX0006I running an edit macro CLIST
> 
> OK, this is a weird one. We have an old CLIST that runs as an ISPF edit
macro. On one
> sysplex only, this CLIST fails with a *Rexx* error message:
> 
> IRX0006I Error running JEM, line 2: Unmatched "/*" or quote
> 
> The actual line being complained about is included here:
> 
>   PROC 0  DJSNAME(SPP.JOBSCAN)
> /* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
>   CONTROL END(ENDO) NOMSG NOFLUSH
>   ISREDIT MACRO (PARMSTR)
> 
> Of course there is no closing '*/' in line 2, but it's a CLIST, not a
Rexx. The CLIST was last
> modified in 2007 according to ISPF stats. What appears to be exactly the
same CLIST
> works fine on other sysplexes. The z/OS maintenance level (RSU1705) is the
same on
> working and nonworking plexes. I have looked in SYSEXEC libraries and in
other
> SYSPROC libraries for a bogus copy of this exec; nothing found. The CLIST
library is VB;
> member is unnumbered, so data starts in column 9.
> 
> What might cause a CLIST to be misinterpreted as Rexx?

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Message IRX0006I running an edit macro CLIST

2017-08-26 Thread Jesse 1 Robinson
OK, this is a weird one. We have an old CLIST that runs as an ISPF edit macro. 
On one sysplex only, this CLIST fails with a *Rexx* error message:

IRX0006I Error running JEM, line 2: Unmatched "/*" or quote

The actual line being complained about is included here:

  PROC 0  DJSNAME(SPP.JOBSCAN)
/* COPYRIGHT DIVERSIFIED SOFTWARE SYSTEMS, INC., 1991,1993.
  CONTROL END(ENDO) NOMSG NOFLUSH
  ISREDIT MACRO (PARMSTR)

Of course there is no closing '*/' in line 2, but it's a CLIST, not a Rexx. The 
CLIST was last modified in 2007 according to ISPF stats. What appears to be 
exactly the same CLIST works fine on other sysplexes. The z/OS maintenance 
level (RSU1705) is the same on working and nonworking plexes. I have looked in 
SYSEXEC libraries and in other SYSPROC libraries for a bogus copy of this exec; 
nothing found. The CLIST library is VB; member is unnumbered, so data starts in 
column 9.

What might cause a CLIST to be misinterpreted as Rexx?



.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler
SHARE MVS Program Co-Manager
323-715-0595 Mobile
626-543-6132 Office <= NEW
robin...@sce.com


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN