HP3000-L Archives

February 1998, Week 3

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:
Paula Estey <[log in to unmask]>
Reply To:
Paula Estey <[log in to unmask]>
Date:
Thu, 19 Feb 1998 09:54:30 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Here is what I am trying to do:
I have one job stream that I have created with Visimage.  I want to give my
user the option to choose one of three different selections.  Two are hard
coded and the other will be up to the end user.  So I created the following
command file
input whattyp;prompt="Commercial Only Y/N? "
if ups(whattyp) = "Y" then
   setvar printit ">101,102,103"
else
input whattyp;prompt="Medicare Only Y/N? "
if ups(whattyp) = "Y" then
  setvar printit "104"
else
input whattyp;prompt="Type your entries here: "
   setvar printit whattyp
endif
endif
run askplus.pubtcp.asklocal;info="-apde -xeq:rodjob,quiet";xl=&
"xl.pubtcp.asklocal"

This all works great using my jobstream as and XEQ with askplus, but I would
rather stream the RODJOB jobstream.
So currently the select statement in my jobstream looks like this:

   16     (BASEA.CUSTOMERS.CUST-NO = !whattyp)

ASKPLUS CAN read HP Variables but now, the job is a different session and we
all know that that's not going to fly.  So by ECHOing each line to a new
file and streaming the new file the select statement would be correct, i.e.;

16     (BASEA.CUSTOMERS.CUST-NO = 101,102,103)

Clear as mud?
-----------------------------------------
Paula Estey
Technical Specialist
Vital Soft, Inc.
[log in to unmask]
-----------------------------------------
www.vital-soft.com

ATOM RSS1 RSS2