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:
Lee Gunter <[log in to unmask]>
Reply To:
Lee Gunter <[log in to unmask]>
Date:
Thu, 23 Mar 2000 08:43:48 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (61 lines)
You may also just say,  !TELL !hpstreamedby  <your message>,  without the
substring manipulation.
----
Lee Gunter                    The Regence Group
Supervisor, TRG HP/MPE Systems     503.375.4498
----
Opinions expressed are solely mine.





From: James English <[log in to unmask]> on 03/23/2000 06:04 AM

Please respond to [log in to unmask]


To:   [log in to unmask]
cc:    (bcc: Lee Gunter/BCBSO/TBG)

Subject:  Re: [HP3000-L] How to extract 1st 6 bytes of HPSTREAMEDBY in a
      Streamx job




I do the same thing, but slightly different:

!SETVAR TO LFT ( HPSTREAMEDBY, POS ( " ", HPSTREAMEDBY ) -1 )

This returns everything up to the first space in the string. I use it all
the time in my TELL commands.

For instance, if HPSTREAMEDBY returns "USER.ACCOUNT (#S3997)", then the
string "USER.ACCOUNT" will be returned into the variable TO. I then set up
my TELL command like this:

!TELL !TO; some message here

HTH!

Jim.

> -----Original Message-----
> From: Jay Willis [mailto:[log in to unmask]]
> Sent: Wednesday, March 22, 2000 7:59 PM
> Subject: How to extract 1st 6 bytes of HPSTREAMEDBY in a Streamx job
>
>
> 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)
>                                            ^
>     More parameters specified than allowed for this function. (CIERR
> 9825)
>
> Thanks for any offerings.
>

ATOM RSS1 RSS2