- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: What does the return status of 20 mean from a ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 07:23 AM
тАО06-13-2007 07:23 AM
J_STATUS = SYS$ASSIGN('_NTY109:', I_CHANNEL,,)I_FUNCTION = IO$_TTY_PORT .OR. IO$M_LT_CONNECT
J_STATUS = SYS$QIOW(,
1 %VAL(I_CHANNEL),
2 %VAL(I_FUNCTION),
3 I_IOSB,
4 ,,,,,,,)
I get a 20 from the SYS$QIOW call and I am wondering what that means?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 07:33 AM
тАО06-13-2007 07:33 AM
Solution%SYSTEM-F-BADPARAM, bad parameter value
It doesn't like one of your parameters. You might start by checking the return status from SYS$ASSIGN to see if you really got a channel assigned. Examining all the parameters in the debugger immediately before the call is the best way to see whether you're really giving it what you think you're giving it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 08:49 AM
тАО06-13-2007 08:49 AM
Re: What does the return status of 20 mean from a SYS$QIOW?
%SYSTEM-W-NOPRIV, insufficient privilege or object protection violation
Check that you have the proper privileges to do what you want.
Ken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 09:20 AM
тАО06-13-2007 09:20 AM
Re: What does the return status of 20 mean from a SYS$QIOW?
Here's an example of calling $qio from Fortran:
http://h71000.www7.hp.com/wizard/wiz_6642.html
Here's an example of the LAT connection from Fortran:
http://vmsone.com/~decuslib/vmssig/vms94a/dsj/comm.vax
That file is a Fortran source file; ignore the .vax extension and open it as text.
Stephen Hoffman
HoffmanLabs LLC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-13-2007 09:37 AM
тАО06-13-2007 09:37 AM
Re: What does the return status of 20 mean from a SYS$QIOW?
hoff's example is a good one, careful of
the placeholder commas. As suggested, compile and link with the debugger and examine
the parameters just before stepping into the
qio call (or assign for that matter) good luck -Dean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 06:53 AM
тАО06-14-2007 06:53 AM
Re: What does the return status of 20 mean from a SYS$QIOW?
Is there any special compile or linking that needs to be done.
Currently I just use fortran and link.
Any suggest on what I can try to verify assign works beside looking at return status.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 07:50 AM
тАО06-14-2007 07:50 AM
Re: What does the return status of 20 mean from a SYS$QIOW?
Looks like your using a LAT modifier on the QIO to a telnet device - don't think that's permissible. My recollection (which could be off) is that the LAT modifiers were only valid on LAT devices. If that's the case then it's likely the cause of your "bad parameter" return status from the QIO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 11:09 PM
тАО06-14-2007 11:09 PM
Re: What does the return status of 20 mean from a SYS$QIOW?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2007 11:30 PM
тАО06-14-2007 11:30 PM
Re: What does the return status of 20 mean from a SYS$QIOW?
fwiw, Zero is NOT a valid return status for a system service on OpenVMS. Low-bit zero is, but there has to be something in those other bits to indicate, notably 316 = IVCHAN
btw... was that 20 hex or decimal?
I suspect decimal for: %SYSTEM-F-BADPARAM, bad parameter value
The parameter being the function code.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 01:43 AM
тАО06-15-2007 01:43 AM