Different in CLIST or Rexx?  Not according to the documentation. 

>From the Edit and Edit Macros doc: 

Section 3.3.80  SCAN--Set Command Scan Mode

 Examples  
  
 To set a line whose number is in variable &LNUM to:  
  
   &SYSDATE is a CLIST built-in function  
  
 set scan mode off and issue the LINE command with &&SYSDATE as the CLIST  

 function name. The CLIST processor strips off the first &, but, because  
 scan mode is off, the editor does not remove the second &:;  
  
   ISREDIT SCAN OFF  
   ISREDIT LINE &LNUM = "&&SYSDATE is a CLIST built-in function"  
   ISREDIT SCAN ON  
  
 Because the ISPEXEC call interface for REXX EXECs allows you to specify  
 parameters as symbolic variables, a single scan always takes place before 
 
 the syntax check of a statement. Therefore, the rule of using two  
 ampersands (&) before variable names to avoid substitution of variable  
 names also applies to REXX EXECs.  

Thomas Ambros
Operating Systems and Connectivity Engineering
518-436-6433





From:   Paul Gilmartin <[email protected]>
To:     [email protected]
Date:   07/19/2012 12:35
Subject:        Re: REXX ISPF edit FIND failing
Sent by:        IBM Mainframe Discussion List <[email protected]>



On Thu, 19 Jul 2012 09:12:54 -0700, John Mattson wrote:

>And the grand prize goes to Tom Ambros !!!!
>Yes, use DOUBLE AMPERSANDS in REXX and the FINDs work properly.
>So simple when we finally see it.  Many thanks to everyone.
> 
So is the behavior of EDIT different when identical command
strings are issued from Rexx vs. CLIST?  Ugh!

But might this be because the ISPF developers recognized
that '&' symbolics would be elaborated by CLIST but not by
Rexx and made a misguided attempt to make the Rexx
behavior superficially more CLIST-like by processing Rexx
command strings in a front-end?  Did they break an API
to offset their misunderstanding of Rexx?

What's the behavior when the macro is written in Assembler/
PL/I/C using the CALL interface?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

This communication may contain privileged and/or confidential information. It 
is intended solely for the use of the addressee. If you are not the intended 
recipient, you are strictly prohibited from disclosing, copying, distributing 
or using any of this information. If you received this communication in error, 
please contact the sender immediately and destroy the material in its entirety, 
whether electronic or hard copy. This communication may contain nonpublic 
personal information about consumers subject to the restrictions of the 
Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose 
such information for any purpose other than to provide the services for which 
you are receiving the information.

127 Public Square, Cleveland, OH 44114
If you prefer not to receive future e-mail offers for products or services from 
Key 
send an e-mail to mailto:[email protected] with 'No Promotional E-mails' in 
the 
SUBJECT line.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to