HP3000-L Archives

March 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jay Willis <[log in to unmask]>
Reply To:
Jay Willis <[log in to unmask]>
Date:
Wed, 22 Mar 2000 17:33:19 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
Thanks Donna et al. Removing the "1," and enclosing within quotes did the trick.
End result:

:SETVAR WHO_STREAMED_IT lft('!hpstreamedby',6)
:SHOWVAR WHO_STREAMED_IT
WHO_STREAMED_IT = JAY.PD


Donna Garverick wrote:

> Jay Willis wrote:
>
> > Can someone please tell me how I can capture the first 6 bytes of
> > HPSTREAMEDBY from within a Streamx job? This is what I'm getting so far:
> >
> >     :SETVAR VAR LFT(!HPSTREAMEDBY,1,6)
> >     SETVAR VAR LFT(JAY.PDEV (#S98),1,6)
>
> you're not using 'lft' correctly.
>
> :help lft
> Syntax:     LFT(string, # chars)
>
> Defn:       A CI evaluator function that performs left string
>             extraction.
>
> Type:       String
>
> Example:    lft('abc',2)
> Result:     ab
>
> so you want something like:  setvar var lft('!hpstreamedby',6)  <<< note the
> quotes
>
> hth          - d
>
> --
> Donna Garverick     Sr. System Programmer
> 925-210-6631        [log in to unmask]
>
> >>>MY opinions, not Longs Drug Stores'<<<

ATOM RSS1 RSS2