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:
Donna Garverick <[log in to unmask]>
Reply To:
Donna Garverick <[log in to unmask]>
Date:
Wed, 22 Mar 2000 17:17:55 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
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