HP3000-L Archives

August 2002, 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, 22 Aug 2002 09:44:23 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
One place where I worked I had a standard copy/include that went along the
lines of this:

  SW1 IS BIT-1-VALUE ON STATUS IS BIT-1-SET
  SW2 IS BIT-2-VALUE ON STATUS IS BIT-2-SET
  SW3 IS BIT-4-VALUE ON STATUS IS BIT-4-SET
  SW4 IS BIT-8-VALUE ON STATUS IS BIT-8-SET
  SW5 IS BIT-16-VALUE ON STATUS IS BIT-16-SET
  ...

to figure out what "parm=" value I need, it is easy to read this copylib
entry and figure it out (that is, until powers-of-two become so
second-nature that it takes longer to remember the copylib exists...)

Unfortunately, I don't have ready access to the source or a handy listing to
refer to for the exact values -- I'm thinking that the HP is "backward" in
that SW1 is actually bit-position 15, or 2^16 for the "value" (32768) --
yup, just reviewed the other message on this thread, so adjust my above
example accordingly...

> -----Original Message-----
> From: Shahan, Ray
>
> Does anyone know of an *easy* way to determine the value
> required to set the COBOL run time switches?
>
> SW5 IS FIGURE-IT-OUT-SW ON STATUS IS FIGURED-IT-OUT

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

ATOM RSS1 RSS2