HP3000-L Archives

April 2001, 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:
Pete Vickers <[log in to unmask]>
Reply To:
Pete Vickers <[log in to unmask]>
Date:
Tue, 24 Apr 2001 13:31:30 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (73 lines)
Hi,
Got this from [log in to unmask] (Jerry Gailey).
We have made some progress, it works using ldev 20, but not thru a DTC.
Can anyone shed some light on this (newsgroup and e-mail to Jerry as he
can't access the newsgroups), and I have no DTC to test it

Thanks

Pete

From Jerry

I have read the HP "Asynchronous Serial Communications Programmer's
Reference Manual". It looks pretty straight forward so I have written a
prototype program (written in COBOL) that will access an HP 700/92 terminal
connected to a serial port via a DTC. However, I am experiencing problems
and I'm not sure why. That is where you come in.

The program issues an FOPEN intrinsic call with the following
parameters:

* L-FILE-NAME defined as X(08) with a value of "ROCKWELL"
* L-FOPTIONS defined as S9(01) COMP with a value of octal 4
(i.e. a new file, ascii format, fixed length, no carriage control, no tape
labels, allow file equations, standard file)
* L-AOPTIONS defined as S9(01) COMP with a value of octal 104
(i.e. read/write access, no multiread, disallow dynamic locking, exclusive
access, normal buffering, no multi access, and disallow nowait I/O access)

The program then issues an FREAD intrinsic call with these
parameters:

* L-FILE-NBR defined as S9(04) COMP with an initial value of
zero
* L-ROCKWELL-VALUE defined as X(80) with a value of spaces
* L-RECORD-LENGTH defined as S9(04) COMP and a value of -80

The last intrinsic call is to FCLOSE which uses the parameters:

* L-FILE-NBR
* L-DISPOSITION defined as S9(01) COMP with an initial value
of octal zero
* L-SECURITY defined as S9(01) COMP also with an initial value
of octal zero

Before executing the program, I establish the file equation: FILE
ROCKWELL;DEV=307. Ldev 307 is the HP 700 terminal.

When I execute the program from my PC (which runs Minisoft's
terminal emulation), a message from the program is displayed to inform me
that the FOPEN was successful. Then, when I try to enter data on the HP
terminal, the FREAD either fails with an error code 21 or accepts the first
40 characters of the data being entered. The difference comes based on what
I attempt to enter as data. If I enter a series of "J"s, the first 40 are
accepted (rather than the 80 that I am expecting to enter). However, when
the program displays the data that it received (as verification that the
FREAD succeeded), I don't get "J"s but rather, no data at all. On the other
hand, if I attempt to enter other characters, such as an "A", the program
displays an error message for error code 21 (which is a data parity error).

Do you have any idea as to what might be going wrong here? Any
suggestions, guidance, and/or direction that you can offer would really be
appreciated.


--
Pete Vickers
HP Business Partner
www.petevickers.co.uk

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

ATOM RSS1 RSS2