On Mon, Mar 16, 2020 at 9:33 AM Michel Beaulieu <[email protected]> wrote:
> On z/VM and my RHEL 7 laptop, I have this tool that I use. > Perhaps you can extend it to fit your purpose. > On a command line, I type: > calc <rexx statement> > > [<mydir>]$ cat ~/sbin/calc > #!/usr/bin/rexx > /* REXX */ > trace errors > rc = 0 > PARSE ARG expr > IF expr <> '' THEN DO > numeric digits 20 > interpret 'Say' expr > EXIT > end > > exit rc > > === > I hope this helps! > Yes, I guess that I could write a REXX script which itself does what I want the "rexx" command to do. I was thinking of writing something in C or HLASM. But doing it in REXX itself would likely be easier. The only "problem" might be in how large a REXX program the "INTERPRET" command can do. And there are some exclusions, e.g. no labels and so no SIGNAL <label>. > > Michel Beaulieu > IBM Services (Canada) > |*| > > to [email protected] with the message: INFO IBM-MAIN > -- People in sleeping bags are the soft tacos of the bear world. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
