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:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Thu, 27 Mar 2003 13:02:38 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
 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 *

ATOM RSS1 RSS2