Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-07-04 Thread Rob van der Heij
On 3 July 2017, 18:48, Glenn Knickerbocker wrote:

> On 6/27/2017 2:03 PM, Rob van der Heij wrote:
> > Right, string operands wasn't in z/VM 6.3 yet. But going all that way?
> >   pipe literal | dup 8 | spec number from -5 | cons
>
> It was an exercise from last summer in trying to do what the doc said
> was possible:
>
> >> NUMBER is a convenience; the same  result  can  be  obtained  by
> >> incrementing a counter.
> >
> > How the heck do I set a nonzero initial value?

Those notes in the book are not required home work for your exam ;-)

When important to set it, I'd use   spec set #1:=first()?-4:#1+1
otherwise add the initial when printing   spec print -5+(#1+=1) 1

As long as you realize the second one increments on the first round.

> The main point of that thread was about the difference in default length
> between PICTURE and NUMBER that still trips me up every time.

I'm afraid I never noticed, but the book says so indeed. No idea why, but
good thing we have fittings to go from cast iron pipes to plastic.
There has been too much water through the pipes to change it now.

Sir Rob the Plumber


Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread Stanislawski, Shawn (National VM Capability)
Any ideas how I would go about answering the Master Plumber's queries?  
(PIPEDEMO EXEC maybe?)


"Let me guess.  You are on the second record.  #0 contains the number 5 and you 
compare it to a string."

"It all depends how the logical expression / if #0=='' / is evaluated."


--Shawn S.



-Original Message-
From: Stanislawski, Shawn (National VM Capability) 
Sent: Tuesday, June 27, 2017 13:31
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: RE: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

Getting same error if performing from an EXEC (portrait style, with double 
quote marks surrounding), or if (I escape the TERMINAL LINEND characters and 
then) run it from the console.

"SPEC if first()=1 then"... works for me.

"pipe literal | dup 8 | spec number from -5 | cons"... also works for me.


pipe query version|console  
   
FPLINX086I CMS/TSO Pipelines, 5741-A07/5655-A17 1.0110 (Version.Release/Mod) - 
Generated 26 Apr 2013 at 08:52:21

z/VM 6.3.0, RSU 1602
CMS 27, RSU 1602


--Shawn S.



-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of John P. Hartmann
Sent: Tuesday, June 27, 2017 13:18
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

Not so fast.

It all depends how the logical expression

if #0==''

is evaluated.  On the first record it is unassigned, which compares equal with 
a null string; on the sixth round, it is zero which converts to "0"; perhaps 
not what was desired.

A better test for the first record is

if first()

And yes it sure would have been better if the default for the terminal line 
editing characters had been OFF for a screen.  Tch, tch, Newson.

On 06/27/2017 08:05 PM, Gentry, Steve wrote:
> Just tried again from the a command line.  The '#' (w/o quotes) might be 
> causing the problem.  CP is interpreting it as an end of line and I'm 
> guessing the 0 (zero) doesn't get prefixed with the '#'
> Steve
> 
> -Original Message-
> From: CMSTSO Pipelines Discussion List 
> [mailto:CMS-PIPELINES@VM.MARIST.EDU] On Behalf Of Ackerman, Alan
> Sent: Tuesday, June 27, 2017 1:53 PM
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: Re: FPLSPX1086E Improper operand for string comparison
> 
> Works for me. Maybe you have an older version of CMS Pipelines.
> 
> I put it into a Rexx EXEC and surrounded it with double quotes, since you are 
> using single quotes.
> 
> temp
>  -5
>  -4
>  -3
>  -2
>  -1
>   0
>   1
>   2
>   3
> 
> pipe query level
> FPLINX560I CMS Pipelines, 5741-A07 level 110C000D.
>
>   q cplevel
> z/VM Version 6 Release 4.0, service level 1701 (64-bit) Generated at
> 2017-05-31 15:55:26 PDT IPL at 2017-05-31 17:12:15 PDT
> 
> Alan Ackerman
> Vice President
> Cnslt II - Sys Eng California
> Technology Engineering & Operations
> Bank of America
> CA4-136-01-01, 2546 SAN PABLO AVE, Berkeley, CA T 510.529.4128 
> alan.acker...@bankofamerica.com
> 
> Life's better when we're connected®
> 
> 
> -Original Message-
> From: CMSTSO Pipelines Discussion List 
> [mailto:CMS-PIPELINES@VM.MARIST.EDU] On Behalf Of Stanislawski, Shawn 
> (National VM Capability)
> Sent: Tuesday, June 27, 2017 10:10 AM
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: [CMS-PIPELINES] FPLSPX1086E Improper operand for string 
> comparison
> 
> Decided to give Mike's pipe a try, but it gives me an error:
> 
> pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 
> endif print #0 n|Cons
> 
> "
> FPLSPX1086E Improper operand for string comparison FPLMSG003I ... 
> Issued from stage 3 of pipeline 1 FPLMSG001I ... Running "spec if 
> #0=='' then set #0:=-5 else set #0+=1 endi"
> FPLSPE192I ... Scan at position 9; previous data "if #0==''"
> Ready (01086); T=0.01/0.01 12:06:48
> "
> 
> Any ideas?
> 
> 
> --Shawn S.
> 
> 
> -Original Message-
> From: CMSTSO Pipelines Discussion List 
> [mailto:CMS-PIPELINES@VM.MARIST.EDU] On Behalf Of Michael Harding
> Sent: Tuesday, June 28, 2016 15:32
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: Re: [CMS-PIPELINES] Speaking of SPECS NUMBER
> 
> pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif 
> print #0 n|Cons
>   -5
>   -4
>   -3
>   -2
>   -1
>0
>1
>2
>3
> Ready;

Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread Stanislawski, Shawn (National VM Capability)
Getting same error if performing from an EXEC (portrait style, with double 
quote marks surrounding), 
or if (I escape the TERMINAL LINEND characters and then) run it from the 
console.

"SPEC if first()=1 then"... works for me.

"pipe literal | dup 8 | spec number from -5 | cons"... also works for me.


pipe query version|console  
   
FPLINX086I CMS/TSO Pipelines, 5741-A07/5655-A17 1.0110 (Version.Release/Mod) - 
Generated 26 Apr 2013 at 08:52:21

z/VM 6.3.0, RSU 1602
CMS 27, RSU 1602


--Shawn S.



-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of John P. Hartmann
Sent: Tuesday, June 27, 2017 13:18
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

Not so fast.

It all depends how the logical expression

if #0==''

is evaluated.  On the first record it is unassigned, which compares equal with 
a null string; on the sixth round, it is zero which converts to "0"; perhaps 
not what was desired.

A better test for the first record is

if first()

And yes it sure would have been better if the default for the terminal line 
editing characters had been OFF for a screen.  Tch, tch, Newson.

On 06/27/2017 08:05 PM, Gentry, Steve wrote:
> Just tried again from the a command line.  The '#' (w/o quotes) might be 
> causing the problem.  CP is interpreting it as an end of line and I'm 
> guessing the 0 (zero) doesn't get prefixed with the '#'
> Steve
> 
> -Original Message-
> From: CMSTSO Pipelines Discussion List 
> [mailto:CMS-PIPELINES@VM.MARIST.EDU] On Behalf Of Ackerman, Alan
> Sent: Tuesday, June 27, 2017 1:53 PM
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: Re: FPLSPX1086E Improper operand for string comparison
> 
> Works for me. Maybe you have an older version of CMS Pipelines.
> 
> I put it into a Rexx EXEC and surrounded it with double quotes, since you are 
> using single quotes.
> 
> temp
>  -5
>  -4
>  -3
>  -2
>  -1
>   0
>   1
>   2
>   3
> 
> pipe query level
> FPLINX560I CMS Pipelines, 5741-A07 level 110C000D.
>
>   q cplevel
> z/VM Version 6 Release 4.0, service level 1701 (64-bit) Generated at 
> 2017-05-31 15:55:26 PDT IPL at 2017-05-31 17:12:15 PDT
> 
> Alan Ackerman
> Vice President
> Cnslt II - Sys Eng California
> Technology Engineering & Operations
> Bank of America
> CA4-136-01-01, 2546 SAN PABLO AVE, Berkeley, CA T 510.529.4128 
> alan.acker...@bankofamerica.com
> 
> Life's better when we're connected®
> 
> 
> -Original Message-
> From: CMSTSO Pipelines Discussion List 
> [mailto:CMS-PIPELINES@VM.MARIST.EDU] On Behalf Of Stanislawski, Shawn 
> (National VM Capability)
> Sent: Tuesday, June 27, 2017 10:10 AM
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: [CMS-PIPELINES] FPLSPX1086E Improper operand for string 
> comparison
> 
> Decided to give Mike's pipe a try, but it gives me an error:
> 
> pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 
> endif print #0 n|Cons
> 
> "
> FPLSPX1086E Improper operand for string comparison FPLMSG003I ... 
> Issued from stage 3 of pipeline 1 FPLMSG001I ... Running "spec if 
> #0=='' then set #0:=-5 else set #0+=1 endi"
> FPLSPE192I ... Scan at position 9; previous data "if #0==''"
> Ready (01086); T=0.01/0.01 12:06:48
> "
> 
> Any ideas?
> 
> 
> --Shawn S.
> 
> 
> -Original Message-
> From: CMSTSO Pipelines Discussion List 
> [mailto:CMS-PIPELINES@VM.MARIST.EDU] On Behalf Of Michael Harding
> Sent: Tuesday, June 28, 2016 15:32
> To: CMS-PIPELINES@VM.MARIST.EDU
> Subject: Re: [CMS-PIPELINES] Speaking of SPECS NUMBER
> 
> pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif 
> print #0 n|Cons
>   -5
>   -4
>   -3
>   -2
>   -1
>0
>1
>2
>3
> Ready; T=0.01/0.01 13:26:02
> 
> --
> Mike Harding
> z/VM System Support
> 
>> From: "John P. Hartmann" <jphartm...@gmail.com>
>> To: CMS-PIPELINES@VM.MARIST.EDU
>> Date: 06/28/2016 01:01 PM
>> Subject: Re: Speaking of SPECS NUMBER Sent by: CMSTSO Pipelines 
>> Discussion List <CMS-PIPELINES@VM.MARIST.EDU>
>>
>> #0 will never become positive.  Is that what you wanted?
> 
> --
> This message, and any attachments, is for the intended recipient(s) only, may 
> contain information that is privileged, confidential and/or proprietary and 
> subject to important terms and conditions available at 
> http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
> recipient, please delete this message.
> 


Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread John P. Hartmann

Not so fast.

It all depends how the logical expression

if #0==''

is evaluated.  On the first record it is unassigned, which compares 
equal with a null string; on the sixth round, it is zero which converts 
to "0"; perhaps not what was desired.


A better test for the first record is

if first()

And yes it sure would have been better if the default for the terminal 
line editing characters had been OFF for a screen.  Tch, tch, Newson.


On 06/27/2017 08:05 PM, Gentry, Steve wrote:

Just tried again from the a command line.  The '#' (w/o quotes) might be 
causing the problem.  CP is interpreting it as an end of line and I'm guessing 
the 0 (zero) doesn't get prefixed with the '#'
Steve

-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Ackerman, Alan
Sent: Tuesday, June 27, 2017 1:53 PM
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: FPLSPX1086E Improper operand for string comparison

Works for me. Maybe you have an older version of CMS Pipelines.

I put it into a Rexx EXEC and surrounded it with double quotes, since you are 
using single quotes.

temp
 -5
 -4
 -3
 -2
 -1
  0
  1
  2
  3

pipe query level
FPLINX560I CMS Pipelines, 5741-A07 level 110C000D.
   
  q cplevel

z/VM Version 6 Release 4.0, service level 1701 (64-bit)
Generated at 2017-05-31 15:55:26 PDT
IPL at 2017-05-31 17:12:15 PDT

Alan Ackerman
Vice President
Cnslt II - Sys Eng California
Technology Engineering & Operations
Bank of America
CA4-136-01-01, 2546 SAN PABLO AVE, Berkeley, CA T 510.529.4128 
alan.acker...@bankofamerica.com

Life's better when we're connected®


-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Stanislawski, Shawn (National VM Capability)
Sent: Tuesday, June 27, 2017 10:10 AM
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

Decided to give Mike's pipe a try, but it gives me an error:

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons

"
FPLSPX1086E Improper operand for string comparison
FPLMSG003I ... Issued from stage 3 of pipeline 1
FPLMSG001I ... Running "spec if #0=='' then set #0:=-5 else set #0+=1 endi"
FPLSPE192I ... Scan at position 9; previous data "if #0==''"
Ready (01086); T=0.01/0.01 12:06:48
"

Any ideas?


--Shawn S.


-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Michael Harding
Sent: Tuesday, June 28, 2016 15:32
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] Speaking of SPECS NUMBER

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons
  -5
  -4
  -3
  -2
  -1
   0
   1
   2
   3
Ready; T=0.01/0.01 13:26:02

--
Mike Harding
z/VM System Support


From: "John P. Hartmann" <jphartm...@gmail.com>
To: CMS-PIPELINES@VM.MARIST.EDU
Date: 06/28/2016 01:01 PM
Subject: Re: Speaking of SPECS NUMBER
Sent by: CMSTSO Pipelines Discussion List
<CMS-PIPELINES@VM.MARIST.EDU>

#0 will never become positive.  Is that what you wanted?


--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.



Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread Rob van der Heij
> Works for me. Maybe you have an older version of CMS Pipelines.

Right, string operands wasn't in z/VM 6.3 yet. But going all that way?

  pipe literal | dup 8 | spec number from -5 | cons

Sir Rob the Plumber


Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread John P. Hartmann

Let me guess.  You are on the second record.  #0 contains the number 5
and you compare it to a string.

On 06/27/2017 07:10 PM, Stanislawski, Shawn (National VM Capability) wrote:

Decided to give Mike's pipe a try, but it gives me an error:

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons

"
FPLSPX1086E Improper operand for string comparison
FPLMSG003I ... Issued from stage 3 of pipeline 1
FPLMSG001I ... Running "spec if #0=='' then set #0:=-5 else set #0+=1 endi"
FPLSPE192I ... Scan at position 9; previous data "if #0==''"
Ready (01086); T=0.01/0.01 12:06:48
"

Any ideas?


--Shawn S.


-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Michael Harding
Sent: Tuesday, June 28, 2016 15:32
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] Speaking of SPECS NUMBER

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons
  -5
  -4
  -3
  -2
  -1
   0
   1
   2
   3
Ready; T=0.01/0.01 13:26:02

--
Mike Harding
z/VM System Support


From: "John P. Hartmann" 
To: CMS-PIPELINES@VM.MARIST.EDU
Date: 06/28/2016 01:01 PM
Subject: Re: Speaking of SPECS NUMBER
Sent by: CMSTSO Pipelines Discussion List


#0 will never become positive.  Is that what you wanted?


Re: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread Ackerman, Alan
Works for me. Maybe you have an older version of CMS Pipelines.

I put it into a Rexx EXEC and surrounded it with double quotes, since you are 
using single quotes.

temp
-5  
-4  
-3  
-2  
-1  
 0  
 1  
 2  
 3  

pipe query level
FPLINX560I CMS Pipelines, 5741-A07 level 110C000D.   
  
 q cplevel   
z/VM Version 6 Release 4.0, service level 1701 (64-bit)  
Generated at 2017-05-31 15:55:26 PDT 
IPL at 2017-05-31 17:12:15 PDT   

Alan Ackerman
Vice President
Cnslt II - Sys Eng California
Technology Engineering & Operations
Bank of America
CA4-136-01-01, 2546 SAN PABLO AVE, Berkeley, CA
T 510.529.4128 
alan.acker...@bankofamerica.com  

Life's better when we're connected®


-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Stanislawski, Shawn (National VM Capability)
Sent: Tuesday, June 27, 2017 10:10 AM
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: [CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

Decided to give Mike's pipe a try, but it gives me an error:

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons

"
FPLSPX1086E Improper operand for string comparison 
FPLMSG003I ... Issued from stage 3 of pipeline 1   
FPLMSG001I ... Running "spec if #0=='' then set #0:=-5 else set #0+=1 endi"
FPLSPE192I ... Scan at position 9; previous data "if #0==''"   
Ready (01086); T=0.01/0.01 12:06:48 
"

Any ideas?


--Shawn S.


-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Michael Harding
Sent: Tuesday, June 28, 2016 15:32
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] Speaking of SPECS NUMBER

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons
 -5
 -4
 -3
 -2
 -1
  0
  1
  2
  3
Ready; T=0.01/0.01 13:26:02

--
Mike Harding
z/VM System Support

> From: "John P. Hartmann" <jphartm...@gmail.com>
> To: CMS-PIPELINES@VM.MARIST.EDU
> Date: 06/28/2016 01:01 PM
> Subject: Re: Speaking of SPECS NUMBER
> Sent by: CMSTSO Pipelines Discussion List 
> <CMS-PIPELINES@VM.MARIST.EDU>
>
> #0 will never become positive.  Is that what you wanted?

--
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.


[CMS-PIPELINES] FPLSPX1086E Improper operand for string comparison

2017-06-27 Thread Stanislawski, Shawn (National VM Capability)
Decided to give Mike's pipe a try, but it gives me an error:

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons

"
FPLSPX1086E Improper operand for string comparison 
FPLMSG003I ... Issued from stage 3 of pipeline 1   
FPLMSG001I ... Running "spec if #0=='' then set #0:=-5 else set #0+=1 endi"
FPLSPE192I ... Scan at position 9; previous data "if #0==''"   
Ready (01086); T=0.01/0.01 12:06:48 
"

Any ideas?


--Shawn S.


-Original Message-
From: CMSTSO Pipelines Discussion List [mailto:CMS-PIPELINES@VM.MARIST.EDU] On 
Behalf Of Michael Harding
Sent: Tuesday, June 28, 2016 15:32
To: CMS-PIPELINES@VM.MARIST.EDU
Subject: Re: [CMS-PIPELINES] Speaking of SPECS NUMBER

pipe literal *|dup 8|spec if #0=='' then set #0:=-5 else set #0+=1 endif print 
#0 n|Cons
 -5
 -4
 -3
 -2
 -1
  0
  1
  2
  3
Ready; T=0.01/0.01 13:26:02

--
Mike Harding
z/VM System Support

> From: "John P. Hartmann" 
> To: CMS-PIPELINES@VM.MARIST.EDU
> Date: 06/28/2016 01:01 PM
> Subject: Re: Speaking of SPECS NUMBER
> Sent by: CMSTSO Pipelines Discussion List 
> 
>
> #0 will never become positive.  Is that what you wanted?