Subject: | |
From: | |
Reply To: | |
Date: | Sat, 21 Oct 2000 17:49:49 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Sandy,
You can use the CI expression evaluator "POS", position find. POS has the
general syntax:
POS ("findstring","sourcestring",nthoccurrence)
and returns an integer value representing the beginning character position
of the string if found, or zero if not found. To test for the presence of
your session name in the variable HPSTREAMEDBY, use the following:
if POS("SMATTHEW","!HPSTREAMEDBY",1) > 0
file sysparm=sysparm.permii
else
file sysparm=sysparm.pub
endif
HTH,
Rs~
Russ Smith, Systems Consultant
Problem Solved, Vacaville, CA
r s m i t h @ c u - h e l p . c o m
h p 3 k - l @ e - 3 0 0 0 . n e t
----- Original Message -----
From: "Sandy Matthew" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Saturday, October 21, 2000 7:47 AM
Subject: [HP3000-L] Parsing the HPSTREAMEDBY Variable
> In one application I have been able to set a file equation based on the
> contents of HPSTREAMEDBY
>
> for example
> if "!HPSTREAMEDBY" = "SMATTHEW,GASB.MAWA"
> file sysparm=sysparm.permii
> else
> file sysparm=sysparm.pub
> I absolutely know it works but in another udc I did the same thing but
> I can't get it to work. Interactively when I examine the HPSTREAMEDBY
> variable it is not set to true unless I include the session (#s123).
>
> I think my best bet is to parse the HPSTREAMEDBY variable for "SMATTHEW"
> and if true set one file eq else the other.
>
> How can I use jcl to examine the variable?
>
|
|
|