HP3000-L Archives

March 2003, 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:
David Powell <[log in to unmask]>
Reply To:
Date:
Thu, 27 Mar 2003 14:47:22 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (70 lines)
If you don't have/like streamx, and your situation calls for a new job (not
passing info to a pre-existing job), then you can do almost anything with a
command  file that uses :echo to build a job.  With a little help from
!hpstreamedby, you can have the new job :tell its results back to whoever
streamed it.

You have to watch out for a few things, as in:
echo !!RUN SIC0300.PROG.MERRY; INFO= & >>*TJ

echo : '!PF_INVC' >>*TJ

You need the '!!RUN' to pass '!RUN' to the job.  Just one '!' it tries to
resolve as a variable at echo time.  On the 2nd line, ':' works as the 1st
line of a continuation.  The single '!' in '!PF_INVC' works because it is ok
to have echo resolve the variable, so the job just sees a hard-wired
literal. To make it real variable to the job,  add another '!'.  But if the
'!' is followed by a character that can't be part of a variable name, then
don't double it.  Etc. Etc.

I haven't come across anything you can't do this way, though a really long
job would  be more trouble than it is worth.

I can post some full examples if anyone is interested.

Dave Powell

----- Original Message -----
From: "Tom Emerson" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Thursday, March 27, 2003 11:02 AM
Subject: Re: [HP3000-L] Can a session pass data to a job it streams?


> Gibson Nichols wrote:
> > Can a session pass data to a job that it streams?
>
> "pure" MPE can do this with anywhere from a moderate to extreme amount of
> scripting and fiddling.  Part of the problem is that from the point of
view
> of the "job", which "session" should you query for the result?  Also, what
> if it takes "some time" before the job launches -- two things can occur
> that seriously muddy the water: (1) you change the value of the variable,
> and (2) you log off
>
> There are numerous third-party and contributed library programs.  The one
I
> have the most experience with is Streamx/3000 from VEsoft -- Streamx is
> basically a pre-processor that reads your jobstream looking for special
> tags.  [think of it as "server side scripting" of a web page]
>
> In the simplest form, you can place the name of a session-variable inside
of
> curly braces.  Streamx will substitute the value of the variable as found
> in your session as it builds the jobstream, so your job becomes
>
>    !job example,{hpuser}.{hpaccount}
>    !echo {myvar}
>    !eoj
>
> Note that the {} replacement tags can be [just about] anywhere and pass
> [just about] anything -- in this case, the job will log on with the same
> user/account as your session.
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2