Re: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-14 Thread Bruce Hewson
Hello Hobart, here are my NOVALUE and SYNTAX handlers:- Signal on Novalue/* Clean diagnostics */ Signal on Syntax /* for unexpected results. */ /*===*/ Syntax:

Re: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-14 Thread Bruce Hewson
Hi, Well, of course, as soon as I posted I then spotted that I had not corrected quoted the stderr. stem varname. Actually, the sample code did not come from IBM but from:- https://www.ibm.com/developerworks/community/blogs/MartinPacker/entry/bpxwunix_z_os_best_kept_secret10?lang=en A very

Re: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Paul Gilmartin
On Wed, 13 Jun 2018 16:07:48 -0400, Hobart Spitz wrote: > >I'm not sure whether you are asking for help, reporting a problem in a >sample, or offering a solution. > >Since you haven't said which line failed, I'm just be guessing. > >I think you need to quote StdErr. . That should allow you to

Re: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Seymour J Metz
From: IBM Mainframe Discussion List on behalf of Hobart Spitz Sent: Wednesday, June 13, 2018 4:07 PM To: IBM-MAIN@listserv.ua.edu Subject: Re: REXX calling bpxwunix when SIGNAL NOVALUE active Bruce; I'm not sure whether you are asking for help, reporting

Re: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Hobart Spitz
n List on behalf > of Peter Hunkeler > Sent: Wednesday, June 13, 2018 9:00 AM > To: IBM-MAIN@listserv.ua.edu > Subject: AW: REXX calling bpxwunix when SIGNAL NOVALUE active > > >call bpxwunix cmd,"unsorted_data.","sorted_data.",stderr. > > > The FM manual des

Re: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Seymour J Metz
://mason.gmu.edu/~smetz3 From: IBM Mainframe Discussion List on behalf of Peter Hunkeler Sent: Wednesday, June 13, 2018 9:00 AM To: IBM-MAIN@listserv.ua.edu Subject: AW: REXX calling bpxwunix when SIGNAL NOVALUE active >call bpxwunix cmd,"unsorted_data."

Re: AW: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Paul Gilmartin
On Wed, 13 Jun 2018 15:00:38 +0200, Peter Hunkeler wrote: >>call bpxwunix cmd,"unsorted_data.","sorted_data.",stderr. >... >I think the examples in the doc should be updated to quote any and all of the >parameters which denote a stem variable. > +1 The same should apply to

AW: REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Peter Hunkeler
>call bpxwunix cmd,"unsorted_data.","sorted_data.",stderr. The FM manual describes the parameters to be "the name of a compound variable". If you don't quote, REXX will try to dereference the variables, does not find them, and raises NOVALUE if activated. If not, those which were

REXX calling bpxwunix when SIGNAL NOVALUE active

2018-06-13 Thread Bruce Hewson
I thought I would try out using "bpxwunix" in REXX. The sample code worked fine. But, I normally code with SIGNAL NOVALUE active. Then the sample did not work. It took me a little while to work out. This does work:- /*REXX/