Operating System - OpenVMS
1753317 Members
7005 Online
108792 Solutions
New Discussion юеВ

Re: What does the return status of 20 mean from a SYS$QIOW?

 
SOLVED
Go to solution
Jur van der Burg
Respected Contributor

Re: What does the return status of 20 mean from a SYS$QIOW?

As noted before, you're using a LAT function code on an NTY (= tcpip) device. No wonder you get a badparam error in return. It's a decimal number (20), since SS$_BADPARAM has a -F- severity and not -W-.

Jur.
Eric Boyer
New Member

Re: What does the return status of 20 mean from a SYS$QIOW?

For your comments, this line is my problem

I_FUNCTION = IO$_TTY_PORT .OR. IO$M_LT_CONNECT

What should be it for an NTY Device?

Thanks for everyone help. As you can see, I never work with OpenVms before.

Eric
Volker Halle
Honored Contributor

Re: What does the return status of 20 mean from a SYS$QIOW?

Eric,


What should be it for an NTY Device?


This depends on what you want this code sniplet to achieve !

Volker.
Eric Boyer
New Member

Re: What does the return status of 20 mean from a SYS$QIOW?

I would like to connect to it?
Jim_McKinney
Honored Contributor

Re: What does the return status of 20 mean from a SYS$QIOW?

As Richard Brodie previously suggested, just try removing the two lines of code that assign the function codes and perform the QIOW - depending upon what you're trying to do that's likely all it'll take.
Hoff
Honored Contributor

Re: What does the return status of 20 mean from a SYS$QIOW?

Y'all might want to ring up Process software.

NTY is a Multinet control device. Here are the programming details:

http://www.process.com/tcpip/mndocs52/PROGRAMMERS_REFERENCE/httoc.htm

The $qio functions are here:

http://www.process.com/tcpip/mndocs52/PROGRAMMERS_REFERENCE/Ch03.htm#E29E4

Here's the set-up command for NTY device:

http://www.process.com/techsupport/multinet/788/17.html

Based on what I see on a quick read of the MultiNet documentation, the NTY device is probably already connected to the telnet device.

One of the Process folks may be reading here, or you might want to see if there's a preferred sequence for replacing LAT with Multinet over at the Process site. NTYCP is apparently deliberately set up to mimic LATCP.

What I don't know is if there's a $qio that allows you to establish the telnet connection to the printer under program control, if you're looking to do that. Otherwise, you can use a static NTY mapping.

Stephen Hoffman
HoffmanLabs LLC

Eric Boyer
New Member

Re: What does the return status of 20 mean from a SYS$QIOW?

The solution is you do not have to connect to an NTY device unlike an LAT device, which I bet everyone knew except for me.

The only step is to assign the channel before the read.

Thanks for the help.

Eric