Is there is simple way in QUIZ to find the position of the la st e mbedded space in a character string?

Pickering, John (NORBORD) PICKERIJ@norbord.com
Fri, 16 Nov 2001 15:15:58 -0500


George

Using your data ...

Q U I Z   (PowerHouse  8.19.C4)
Copyright 1999 COGNOS INCORPORATED
Norbord Industries Inc.

> define d-string char*30 = "ABC D  E"
> define d-pos int*2 &
>   = size(truncate(d-string)) &
>   - index(reverse(truncate(d-string)),"E")
> report all
> go


01/11/16                    Norbord Industries Inc.                    PAGE
1

  D-STRING                        D-POS

  ABC D  E                           7





> -----Original Message-----
> From:	George_DeWolf@midhosp.org [SMTP:George_DeWolf@midhosp.org]
> Sent:	Friday, November 16, 2001 2:53 PM
> To:	powerh-l@lists.swau.edu
> Subject:	Is there is simple way in QUIZ to find the position of the
> last e mbedded space in a character string?
> 
> For example, if I have the following string where [sp] indicates a space
> 
> "ABC[sp]D[sp][sp]E"
> 
> I would like a value of 7 to be returned.  I'm using version 8.19.C5 of
> Quiz
> on the HP3000.
> 
> = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> Mailing list: powerh-l@lists.swau.edu
> Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
> Unsubscribe: "unsubscribe" in message body to
> powerh-l-request@lists.swau.edu
> http://lists.swau.edu/mailman/listinfo/powerh-l
> This list is closed, thus to post to the list you must be a subscriber.