Subject: | |
From: | |
Reply To: | |
Date: | Thu, 23 Mar 2000 09:04:24 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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.
>
|
|
|