Re: Piping under ISPF

2021-11-10 Thread Seymour J Metz
The lack of  an escape  convention for command  separators is bad, but 
otherwise the syntax is decent.


From: IBM Mainframe Discussion List  on behalf of 
Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu>
Sent: Wednesday, November 10, 2021 1:47 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Piping under ISPF

On Wed, 10 Nov 2021 11:16:06 -0600, Hobart Spitz wrote:

>Cross posted to IBM-MAIN, TSO REXX, and Pipelines.
>
> The ISPF stacking character can be set to "|", but TSO tries to execute
>the passed stack data after each command.  If that could be disabled, data
>could be passed from program to program, providing a stack based piping
>capability.
>Does anyone know how to disable stack data being executed?
>Could it be a viable requirement candidate to have two command
>delimiters, one that executed the stack and one that didn't?
>
TSO lexical syntax is a misdesign.  Other languages I use such as
Rexx, POSIX shell, C, ... use ';' as a command separator.  If it occurs
in a quoted string it behaves as ordinary text.  TSO/ISPF provides
no such way of escaping metacharacters; only choice of an
alternative separator.  (I've used '¾', keeping one on my desktop
so I can copy/paste it.)

CMS Pipelines is worse, motivated by the impoverished lexical
syntax and tokenization of CP and CMS.

-- 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: Piping under ISPF

2021-11-10 Thread Paul Gilmartin
On Wed, 10 Nov 2021 11:16:06 -0600, Hobart Spitz wrote:

>Cross posted to IBM-MAIN, TSO REXX, and Pipelines.
>
> The ISPF stacking character can be set to "|", but TSO tries to execute
>the passed stack data after each command.  If that could be disabled, data
>could be passed from program to program, providing a stack based piping
>capability.
>Does anyone know how to disable stack data being executed?
>Could it be a viable requirement candidate to have two command
>delimiters, one that executed the stack and one that didn't?
>
TSO lexical syntax is a misdesign.  Other languages I use such as
Rexx, POSIX shell, C, ... use ';' as a command separator.  If it occurs
in a quoted string it behaves as ordinary text.  TSO/ISPF provides
no such way of escaping metacharacters; only choice of an
alternative separator.  (I've used '¾', keeping one on my desktop
so I can copy/paste it.)

CMS Pipelines is worse, motivated by the impoverished lexical
syntax and tokenization of CP and CMS.

-- gil

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


Piping under ISPF

2021-11-10 Thread Hobart Spitz
Cross posted to IBM-MAIN, TSO REXX, and Pipelines.

 The ISPF stacking character can be set to "|", but TSO tries to execute
the passed stack data after each command.  If that could be disabled, data
could be passed from program to program, providing a stack based piping
capability.
Does anyone know how to disable stack data being executed?
Could it be a viable requirement candidate to have two command
delimiters, one that executed the stack and one that didn't?

Thanks!!

OREXXMan
Would you rather pass data in move mode (*nix piping) or locate mode
(Pipes) or via disk (JCL)?  Why do you think you rarely see *nix commands
with more than a dozen filters, while Pipelines specifications are commonly
over 100s of stages, and 1000s of stages are not uncommon.
REXX is the new C.

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