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:
"Heasman, David" <[log in to unmask]>
Reply To:
Heasman, David
Date:
Thu, 22 Aug 2002 16:53:12 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (79 lines)
Someone sent this to me last year. I hope it's what you want : -

In case you have not already got the answer to this, and in case anyone else
is interested, the switches are passed to the program as a 16bit parameter,
where each bit corresponds to a switch, so bit 0 corresponds to SW0 etc. In
line with standard HP notation, the bits are numbered from 0 (the leftmost
or high order bit) to 15 (the rightmost or low-order bit). Switch 15
(equivalent to passing PARM=1) is used to enable debug statements.

To work out which switches are turned on by a given value of PARM, you need
to work out the bit pattern which this represents, e.g.

%2000 =       010|000|000|000
Bits    0|123|456|789|012|345

Thus PARM=%2000 (1024) represents SW5=ON and all others OFF.

Similarly, to set SW1=ON, you would need the following bit pattern:

%40000 =  100|000|000|000|000
Bits    0|123|456|789|012|345

i.e. PARM=%40000


-----Original Message-----
From: Shahan, Ray [mailto:[log in to unmask]]
Sent: 22 August 2002 16:24
To: [log in to unmask]
Subject: [HP3000-L] COBOL run time switches


* Please Note : This message was received from the Internet *
_____________________________________________________________

Hi all,

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


TIA


Ray Shahan

"Life is what happens while you're busy making other plans", John Lennon

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


__________________________________________________________________


This message might contain confidential information. If it has been sent to you in error please do not forward it or copy it or act upon its contents, but report it to [log in to unmask]

Schroders has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as Schroders deems to be necessary in order to protect its information, its interests and its reputation.

Schroders prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material. If this message contains such material please report it to [log in to unmask]

Schroders does not normally accept or offer business instructions via email. Any action that you might take upon this message might be at your own risk.



Schroder Investment Management Limited
31 Gresham Street
London EC2V 7QA

Registered Office at above address
Registered number 1893220 England

Regulated by the FSA

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

ATOM RSS1 RSS2