HP3000-L Archives

November 1996, Week 2

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:
[log in to unmask][log in to unmask]]
>Sent: 13 November 1996 06:01
>To: [log in to unmask]
>Subject: HPCIGETVAR Intrinsic Error
>
>I'm using the HPCIGETVAR intrinsic to retrieve a string variable and
>getting
>the error number -8111 subsystem 166. I can't find any documentation
>for this error message. Any ideas?
>
>TIA
>
>Todd Boyd
>American Floral Serivces, Inc.
>Email: [log in to unmask]
>36_14Nov199605:56:[log in to unmask]
Reply To:
Date:
Tue, 12 Nov 1996 16:36:54 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (54 lines)
I've come across some jobs here that contain something like

        !STREAMX job2
        parm1
        ...
        parmN
        !...

where the number of parms is non-trivial (in this case, over 20), and are
in response to ::input...;prompt statements in job2. Many times, these are
"yes/no" types of questions.

The thing is, it seems very open to human error when going back to modify
this job, whether adding or deleting responses. I'd like to do something to
reduce the chance for error.

I have A solution (not necessarily the best), and I'd like to hear opinions
on whether or not it seems like a good idea, both for readability and for
maintainability.

I've changed this to the following:

        !FILE            ANSTEMP; temp
        !FCOPY from; to=*ANSTEMP; new
        parm1   ;comment
        ...
        parmN   ;comment
        :EOD
        !
        !RUN   MPEX.PUB.VESOFT; INFO=&
        !      "print ANSTEMP; format=token(R,'AN') >ANS"
        !
        !STREAMX job2  < ANS

The downsides (as I see them) are:

        1. The responses are listed BEFORE the job (or program, as this
              solution is not limited to a job) to be run.

        2. What you see is not necessarily what you get.
              For example, if one of the parms was a fully qualified
              filename, then only the UNqualified name would be used!
              Hence, particular attention has to be paid to the method
              used to strip off the comments.

I'm certainly open to other solutions.

Anyone?

--Glenn Cole
  Software al dente, Inc.
  [log in to unmask]  <-- client site
  [log in to unmask]      <-- always

ATOM RSS1 RSS2