<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: System call sys$qiow returning &amp;quot;SYSTEM-F-BADPARAM&amp;quot;, i.e.. bad parameter value in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130507#M28597</link>
    <description>Please provide additional information as listed below. There is not enough context here to allow us to answer effectivly.&lt;BR /&gt;&lt;BR /&gt;OpenVMS version and hardware system being used.&lt;BR /&gt;Variable definitions for: Fib_desc,name_desc,Res_disc,atr and their values.&lt;BR /&gt;Language used for the above program snippet.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Jul 2013 12:16:44 GMT</pubDate>
    <dc:creator>abrsvc</dc:creator>
    <dc:date>2013-07-10T12:16:44Z</dc:date>
    <item>
      <title>System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130487#M28596</link>
      <description>&lt;P&gt;System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value.&lt;/P&gt;&lt;P&gt;I am creating file using sys$qiow as below. The return value from function sys$qiow is 1.&lt;/P&gt;&lt;P&gt;Where as the value in the iosb[0] is 20 , i.e. -SYSTEM-F-BADPARAM, bad parameter value.&lt;/P&gt;&lt;P&gt;Please let me know how to find which argument for the function sys$qiow is causing this problem.&lt;/P&gt;&lt;P&gt;I have tried to print values of fib_desc,name_desc,res_desc and atr.&lt;/P&gt;&lt;P&gt;But with the print statements I couldn't find cause of the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;stat = sys$qiow(0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Event flag */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chan,&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Channel number */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IO$_CREATE | IO$M_CREATE | IO$M_ACCESS,&amp;nbsp;&amp;nbsp;&amp;nbsp; /* I/O function */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (unsigned short *) iosb,&amp;nbsp;&amp;nbsp; /* I/O status block */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fib_desc,&amp;nbsp;&amp;nbsp;&amp;nbsp; /* P1 buffer */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name_desc,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* file name to create or superceed */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;rlen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; res_desc,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* result found file name */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;atr,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* file attributes */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0);&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 11:59:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130487#M28596</guid>
      <dc:creator>allin-in-one</dc:creator>
      <dc:date>2013-07-10T11:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130507#M28597</link>
      <description>Please provide additional information as listed below. There is not enough context here to allow us to answer effectivly.&lt;BR /&gt;&lt;BR /&gt;OpenVMS version and hardware system being used.&lt;BR /&gt;Variable definitions for: Fib_desc,name_desc,Res_disc,atr and their values.&lt;BR /&gt;Language used for the above program snippet.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2013 12:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130507#M28597</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2013-07-10T12:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130525#M28598</link>
      <description>&lt;P&gt;OpenVMS version and hardware system : OpenVMS V8.4 Alpha&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variable definitions for: Fib_desc : file information block&lt;/P&gt;&lt;P&gt;name_desc : Name of the file&lt;/P&gt;&lt;P&gt;Res_disc : If file exists then returned file name&amp;nbsp;,&lt;/P&gt;&lt;P&gt;atr : File attributes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Values :&amp;nbsp;&amp;nbsp;atr-&amp;gt;cdt[0] : -1953762631,atr-&amp;gt;cdt[1] : 11362315,atr-&amp;gt;edt[0] :0 ,atr-&amp;gt;edt[1]:0, atr-&amp;gt;bdt : 2854792,atr-&amp;gt;uic :65540 ,atr-&amp;gt;pro :40960&lt;BR /&gt;&amp;nbsp;fat-&amp;gt;fat_b_rtype: ,fat-&amp;gt;fat_b_rattrib:, fat-&amp;gt;fat_w_rsize:32767, fat-&amp;gt;fat_l_efblk :3 ,fat-&amp;gt;fat_w_ffbyte :180&lt;BR /&gt;&amp;nbsp;fat-&amp;gt;fat_b_bktsize:&lt;BR /&gt;&amp;nbsp;fat-&amp;gt;fat_fill[0]:0,fat-&amp;gt;fat_fill[1]:0,fat-&amp;gt;fat_fill[2]:0,fat-&amp;gt;fill:0,fat-&amp;gt;fat_w_verlimit:32767&lt;BR /&gt;&amp;nbsp;fib-&amp;gt;fib$r_acctl_overlay.fib$l_acctl :0&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Language used for the above program snippet : C language&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 12:25:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130525#M28598</guid>
      <dc:creator>allin-in-one</dc:creator>
      <dc:date>2013-07-10T12:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130549#M28599</link>
      <description />
      <pubDate>Wed, 10 Jul 2013 12:52:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130549#M28599</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-07-10T12:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130571#M28600</link>
      <description>Sorry about the ambiguous request. For the variable definitions I need to know how they are defined in the language as differing variable types will be passed differently. For example: In FORTRAN, character variables are passed by descriptor where integer and floating variables are passed by reference.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The "values" you posted seem to be the addresses of the variables rather than their values. For example, cdt[0] is lsited as -1953762631 which in hex is 8B8BF2B9. This appears to be a system space address? Can you attach a small C program that shows this problem? I have an Alpha with V8.4 that I can use to provide you with more info.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Dan</description>
      <pubDate>Wed, 10 Jul 2013 13:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130571#M28600</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2013-07-10T13:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130701#M28602</link>
      <description>&lt;P&gt;If the descs are structure types rather than pointers to them, you need to pass them by reference. Your code&lt;EM&gt; could&lt;/EM&gt;&amp;nbsp; be right but &amp;amp;foo_desc is probably what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 14:28:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130701#M28602</guid>
      <dc:creator>Richard Brodie_1</dc:creator>
      <dc:date>2013-07-10T14:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130813#M28603</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steven&amp;gt; I know nothing, but I'd guess that if $QIOW itself is happy&lt;/P&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Steven &amp;gt;My advice would be to supply a complete&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;test case if you expect anyone else to debug your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Steven &amp;gt; Are you still trying to set an absurd value for the global buffer&amp;nbsp;count?&lt;/P&gt;&lt;P&gt;Probably... He's just trying to faihfully trying to recreate a file with 'odd' attributes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steven&amp;gt; (And you thought that starting a new thread for the same problem&lt;BR /&gt;was a good idea?)&amp;nbsp;&lt;SPAN&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/x/x/m-p/6129533"&gt;http://h30499.www3.hp.com/t5/x/x/m-p/6129533&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Agreed. Silly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steven, echoing hein&amp;gt; Why would anyone ever want to creaate a file with SYS$QIO(w) ? ..&amp;nbsp;&lt;SPAN&gt;Info-ZIP UnZip does it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Right. Fine answer. For the ZIP's and Backup tools like 'allin-in-one' is poking at, it is reasonably&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Allin-in-one&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Values :&amp;nbsp;&amp;nbsp;atr-&amp;gt;cdt[0] : -1953762631,atr-&amp;gt;cdt[1] :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ok... so where are you setting the global buffer value? Should be atr-&amp;gt;fat$l_gbc32&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the other topic I pointed you to the relevant documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw... RMS also give access to this field in XAB's&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Working sample program attached.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ dele hein.tmp;*&lt;BR /&gt;$ mcr sys$login:QIO_CREATE sys$login:hein.tmp 3217014719&lt;BR /&gt;$ dir/full sys$login:hein.tmp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File attributes: Allocation: 0, Extend: 0, Global buffer count: 3217014719, No version limit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enjoy,&lt;/P&gt;&lt;P&gt;Hein&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 15:49:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6130813#M28603</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2013-07-10T15:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6131469#M28604</link>
      <description>&lt;P&gt;Richard, I agree.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most likely the _desc variables are descriptors, in which case the address should be passed to $QIO (e.g.&amp;nbsp; &amp;amp;name_desc).&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 05:39:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6131469#M28604</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2013-07-11T05:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6131557#M28605</link>
      <description />
      <pubDate>Thu, 11 Jul 2013 06:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6131557#M28605</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-07-11T06:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132265#M28606</link>
      <description>&lt;P&gt;Steven&amp;gt;&amp;gt; Don't mind me. I'm easily annoyed by&amp;nbsp;extremely lame problem descriptions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We noticed. &amp;nbsp;:-). I am sure many agreee (me for starters), but see the futility of the fight to educate the ignorant masses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steven&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;Web search for keywords like, say:&amp;nbsp;&lt;/SPAN&gt;qiow io$_create&amp;nbsp;&lt;SPAN&gt;would find some likely-to-work example code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I attached a a working example in an earlier reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My understanding was that mr or mrs allin-in-one ( I'm easily annoyed by lame name's and lack of signatures.) has existing code possibly working for decades. Now that code stumbled into a 'bad file' or rather a file with invalid &lt;STRONG&gt;attributes&lt;/STRONG&gt;, the most obvious of which, but probably not the only one, &amp;nbsp;is a ridicoulous Global Buffer value. Apparently 'ali' does not have the balls to ask the customer &lt;STRONG&gt;why&lt;/STRONG&gt; this file is so odd and whether it is useful, or simply tell the end customer that this is a 'gigo' situation. I guess there are support cycles to burn to try create the garbage output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyway, ramblings aside, while my example shows the an odd useless high GBC32 value does not cause a 'badparam' I suspect other bad attributes may cause this. I therefor suggest him/her to go back to a working example, and start adding more and more odd attributes back in untill it breaks. And oh... please do report back!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hein&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 13:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132265#M28606</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2013-07-11T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132319#M28608</link>
      <description>&lt;P&gt;I believe that the root problem is that the parameters are passed incorrectly.&amp;nbsp; In Hein's example the name_desc is listed as follows: &amp;amp;name_desc.&amp;nbsp; In the initially posted snippet, the same parameter is passed as: name_desc.&amp;nbsp; Please note the lack of the &amp;amp; character in the parameter definition.&amp;nbsp; The &amp;amp; indicates to pass the argument by reference.&amp;nbsp; In other words, the adderss of&amp;nbsp;name_desc is passed to&amp;nbsp;the QIO rather than the value of name_desc.&amp;nbsp;Using this as an example, I suspect that one or more of the variables passed to the QIO should have been an address rather than a value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would check that first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 14:21:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132319#M28608</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2013-07-11T14:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132399#M28609</link>
      <description>&lt;P&gt;Have ever heard about the product called "all-in-one" or "file cabinet server" on the OpenVMS ? &amp;nbsp;What is your experience in OpenVMS ?&amp;nbsp; for your information GBC (Global buffer count ) is not the variable causing the file creation error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you answer me when IOSB ( one of the argument to sys$qiow )will return SYSTEM-F-BADPARAM ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is simple and straight forward question those who are familiar with OpenVMS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 15:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132399#M28609</guid>
      <dc:creator>allin-in-one</dc:creator>
      <dc:date>2013-07-11T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132421#M28610</link>
      <description>A QIO will return that value when the passed parameter is invalid. Depending upon the recipient of the IO request, parameters are checked in different ways. Without knowing which of the parameters is causing the problem, I can't provide more details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you can create a small reproducer and post it, I will track it down.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Thu, 11 Jul 2013 15:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132421#M28610</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2013-07-11T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132483#M28611</link>
      <description />
      <pubDate>Thu, 11 Jul 2013 16:45:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132483#M28611</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-07-11T16:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132775#M28612</link>
      <description />
      <pubDate>Thu, 11 Jul 2013 21:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132775#M28612</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2013-07-11T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132807#M28613</link>
      <description>&lt;P&gt;&amp;gt;Have ever heard about the product called "all-in-one" or "file cabinet server" on the OpenVMS ? &amp;nbsp;What is your experience &amp;gt;in OpenVMS ?&amp;nbsp; for your information GBC (Global buffer count ) is not the variable causing the file creation error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it was an office automation package that dates from the late 1970s.&amp;nbsp; So what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; Can you answer me when IOSB ( one of the argument to sys$qiow )will return SYSTEM-F-BADPARAM ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you have been told, it is when a parameter is acceptable to the $QIO routine but not to something it calls.&amp;nbsp; As you have been told, those _desc variables probably should be &amp;amp;xxx_desc because an address muct be passed.&amp;nbsp; (We cannot be certain because despite repeated requested you have still not posted your code or&amp;nbsp;an extract from it that shows the definition of the variables, how they are set and how they are used in the call.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt; I think it is simple and straight forward question those who are familiar with OpenVMS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many of us are very familiar with VMS, we are not however clairvoyant.&amp;nbsp; We cannot see what your code is doing&amp;nbsp;because and you haven't posted it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 22:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6132807#M28613</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2013-07-11T22:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6133197#M28614</link>
      <description>&lt;P&gt;Your parameters look bad, just what the return status says. fib_desc, name_desc, res_desc and atr need addresses of descriptors so they all need to have an &amp;amp; in front of them (unless they are pointers already), but given the naming and normal practices it is unlikely. Posting the real code would help.&lt;BR /&gt;&lt;BR /&gt;And make sure that rlen is declared as a word (short) and not an int to prevent surprises.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what about this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (unsigned short *) iosb,&amp;nbsp;&amp;nbsp; /* I/O status block */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should be the pointer to a quadword. If it's declared as unsigned short then the 3 words that follow it will be overwritten with possible nasty surpirses.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;From the doc:&lt;BR /&gt;&lt;BR /&gt;The following are the device- or function-dependent arguments for IO$_ACCESS:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P1--The address of the file information block (FIB) descriptor.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P2--The address of the file name string descriptor (optional).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P3--The address of the word that is to receive the length of the resultant file name string (optional).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P4--The address of a descriptor for a buffer that is to receive the resultant file name string (optional).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; P5--The address of a list of attribute descriptors (optional).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Fwiw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jur.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Jul 2013 06:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6133197#M28614</guid>
      <dc:creator>Jur van der Burg</dc:creator>
      <dc:date>2013-07-12T06:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6133249#M28615</link>
      <description>&lt;P&gt;Thank you all for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is in&amp;nbsp;&amp;nbsp;P1--The address of the file information block (FIB) descriptor. Where variable "fib-&amp;gt;fib$w_verlimit" is greater than 32767.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2013 07:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6133249#M28615</guid>
      <dc:creator>allin-in-one</dc:creator>
      <dc:date>2013-07-12T07:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: System call sys$qiow returning "SYSTEM-F-BADPARAM", i.e.. bad parameter value</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6133531#M28616</link>
      <description>&lt;P&gt;&amp;gt;What is your experience in OpenVMS ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow.&amp;nbsp; Someone comes to this forum asking for help and then starts to&amp;nbsp;question the qualifications of those trying to provide that help?&amp;nbsp; I find that behavior to be obnoxiously arrogant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your information Mr/s. All-in-One, at least three of the people trying to help you in this very thread are known to me to have their names in the code found on the OpenVMS Masterpack.&amp;nbsp;&amp;nbsp; That's right, the folks trying to help you here are the people who have written or maintained OpenVMS itself.&amp;nbsp; Don't worry about the quaifications of the folks trying to help here, you are getting some of the best OpenVMS consulting available on the planet right here in this forum (for free).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brad McCusker&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2013 12:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/system-call-sys-qiow-returning-quot-system-f-badparam-quot-i-e/m-p/6133531#M28616</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2013-07-12T12:32:56Z</dc:date>
    </item>
  </channel>
</rss>

