<?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: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379266#M41935</link>
    <description>I've linked DTR with /MAP and /DEBUG.  I'm a little lost at this point as to how to go about setting the breakpoint to be when the BAS$EDIT function is called and what do I look at to see the variables on entry and exit as you say?  The only "test" I know to produce this error is with the print statement in DTR ie. I have no access to a "program" that might be doing this.&lt;BR /&gt;&lt;BR /&gt;Did I mention I'm not a programmer? ;-)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art&lt;BR /&gt;&lt;BR /&gt;ps. should you really have more than an optimal amount of fun?  Isn't that how heart attacks happen? ;-)</description>
    <pubDate>Sun, 15 Mar 2009 13:44:03 GMT</pubDate>
    <dc:creator>Art Wiens</dc:creator>
    <dc:date>2009-03-15T13:44:03Z</dc:date>
    <item>
      <title>Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379262#M41931</link>
      <description>I have rebuilt Datatrieve v7.3 on our new VMS v8.3 Alpha to include the BAS$EDIT function.  Invoking the function gives:&lt;BR /&gt;&lt;BR /&gt;$ dtr&lt;BR /&gt;DATATRIEVE V7.3&lt;BR /&gt;Digital Query and Report System&lt;BR /&gt;Type HELP for help&lt;BR /&gt;DTR&amp;gt; print fn$bas_edit("  abc  ",255)&lt;BR /&gt;&lt;BR /&gt;            FN$BAS&lt;BR /&gt;             EDIT&lt;BR /&gt;&lt;BR /&gt;%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=0000000021EF78F4, PC=0000000000000016, PS=00000000&lt;BR /&gt;&lt;BR /&gt;On the current system it works properly:&lt;BR /&gt;&lt;BR /&gt;$ dtr&lt;BR /&gt;DEC DATATRIEVE V7.2&lt;BR /&gt;Digital Query and Report System&lt;BR /&gt;Type HELP for help&lt;BR /&gt;DTR&amp;gt; print fn$bas_edit("  abc  ",255)&lt;BR /&gt;&lt;BR /&gt;            FN$BAS&lt;BR /&gt;             EDIT&lt;BR /&gt;&lt;BR /&gt;ABC&lt;BR /&gt;&lt;BR /&gt;The DTR function is copied from the working one:&lt;BR /&gt;&lt;BR /&gt;$DTR$FUN_DEF    FN$BAS_EDIT, BAS$EDIT, 3&lt;BR /&gt;    $DTR$FUN_OUT_ARG TYPE = FUN$K_STATUS&lt;BR /&gt;    $DTR$FUN_IN_ARG  TYPE = FUN$K_TEXT , OUT_PUT = TRUE&lt;BR /&gt;    $DTR$FUN_IN_ARG  TYPE = FUN$K_DESC, DTYPE = DSC$K_DTYPE_T, ORDER = 1&lt;BR /&gt;    $DTR$FUN_IN_ARG  TYPE = FUN$K_VALUE,  DTYPE = DSC$K_DTYPE_L, ORDER = 2&lt;BR /&gt;$DTR$FUN_END_DEF&lt;BR /&gt;&lt;BR /&gt;The DTRBLD procedure completes successfully, the new executables are installed as on the old system.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art</description>
      <pubDate>Sat, 14 Mar 2009 14:22:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379262#M41931</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2009-03-14T14:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379263#M41932</link>
      <description>Other RTL functions work eg:&lt;BR /&gt;&lt;BR /&gt;$DTR$FUN_DEF  FN$SCG_ASCII, LIB$ICHAR, 1&lt;BR /&gt;   $DTR$FUN_HEADER   HDR = &amp;lt;"Ascii"/"Value"&amp;gt;&lt;BR /&gt;   $DTR$FUN_EDIT_STRING  ^\ZZ9\&lt;BR /&gt;   $DTR$FUN_OUT_ARG   TYPE = FUN$K_VALUE, DTYPE = DSC$K_DTYPE_L&lt;BR /&gt;   $DTR$FUN_IN_ARG    TYPE = FUN$K_DESC, DTYPE = DSC$K_DTYPE_T, ORDER = 1&lt;BR /&gt;$DTR$FUN_END_DEF&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; print FN$SCG_ASCII("a")&lt;BR /&gt;&lt;BR /&gt;Ascii&lt;BR /&gt;Value&lt;BR /&gt;&lt;BR /&gt;  97&lt;BR /&gt;&lt;BR /&gt;Art</description>
      <pubDate>Sat, 14 Mar 2009 14:30:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379263#M41932</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2009-03-14T14:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379264#M41933</link>
      <description>Hello Art,&lt;BR /&gt;&lt;BR /&gt;I've used BAS$EDIT ages ago, but not with DTR 7.3. Maybe I'll try.&lt;BR /&gt;&lt;BR /&gt;Our friend Bart Lederman wrote an example for  it which you can find for example here:&lt;BR /&gt;&lt;A href="http://wwwvms.mppmu.mpg.de/vmssig/src/C/bas$edit.txt" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/vmssig/src/C/bas$edit.txt&lt;/A&gt;&lt;BR /&gt;The defintion Bart uses is a little more explicit. For example it mentions $DTR$FUN_NOOPTIMIZE&lt;BR /&gt;&lt;BR /&gt;(I agree, you should never optimize FUN, Fun should be accepted and enjoyed as it comes :-)&lt;BR /&gt;&lt;BR /&gt;Can you run with the debugger, set module to the share, set breakpoint on BAS$EDIT, verify the arguments on entry and exit?&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Mar 2009 15:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379264#M41933</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-03-14T15:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379265#M41934</link>
      <description>I guess you're suggesting I rebuild DTR with the /DEBUG switch on the LINK command(s)?  It's not linked with DEBUG by default.&lt;BR /&gt;&lt;BR /&gt;Art</description>
      <pubDate>Sat, 14 Mar 2009 18:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379265#M41934</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2009-03-14T18:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379266#M41935</link>
      <description>I've linked DTR with /MAP and /DEBUG.  I'm a little lost at this point as to how to go about setting the breakpoint to be when the BAS$EDIT function is called and what do I look at to see the variables on entry and exit as you say?  The only "test" I know to produce this error is with the print statement in DTR ie. I have no access to a "program" that might be doing this.&lt;BR /&gt;&lt;BR /&gt;Did I mention I'm not a programmer? ;-)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art&lt;BR /&gt;&lt;BR /&gt;ps. should you really have more than an optimal amount of fun?  Isn't that how heart attacks happen? ;-)</description>
      <pubDate>Sun, 15 Mar 2009 13:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379266#M41935</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2009-03-15T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379267#M41936</link>
      <description>&lt;BR /&gt;I talked to Art.&lt;BR /&gt;He also upgraded BASIC from 1.3 to 1.6 when upgrading DTR.&lt;BR /&gt;&lt;BR /&gt;With that BAS$EDIT becomes DBASIC$EDIT&lt;BR /&gt;This should be resolved in DEC$BASRTL.EXE&lt;BR /&gt;&lt;BR /&gt;So I recommend moving forward replacing all BAS$xxxxx funtions used by the corresponding DBASIC$ in DTRFND.MAR.&lt;BR /&gt;Compile, replact in DTRFUN.OLB&lt;BR /&gt;Cleans the DTRBLD.COM from BASRTL*_TV references and add the line&lt;BR /&gt;         cluster=basrtl,,,sys$common:[syslib]dec$basrtl.exe/shareable&lt;BR /&gt;Put that right after FDVSHR.&lt;BR /&gt;That's where I put it in a test, and it worked.&lt;BR /&gt;&lt;BR /&gt;Rebuid&lt;BR /&gt;&lt;BR /&gt;Note: I reduced DTRBLD.COM to just the DTRSHR link command, with output to a private directory at first.&lt;BR /&gt;&lt;BR /&gt;Define a logical to a bad name and see $DATA fail, just to be sure.&lt;BR /&gt;Then define to the new executable and try it!&lt;BR /&gt;&lt;BR /&gt;Good Luck!&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 15 Mar 2009 18:47:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379267#M41936</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-03-15T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379268#M41937</link>
      <description>As usual, there's a good reason this man has a wreath on his head!!&lt;BR /&gt;&lt;BR /&gt;After we got off the phone, I had to go out but of course thought about this all the while and it all came back to me.  Back in June of last year when I was doing all this setup (yes we're moving at a glacial pace here!) I was getting undefined symbols during the DTRBLD procedure referencing the BAS$xxx functions. eg:&lt;BR /&gt;&lt;BR /&gt;%LINK-W-USEUNDEF, undefined symbol BAS$EDIT referenced&lt;BR /&gt;        in psect $LINKAGE offset %X00000100&lt;BR /&gt;        in module DTRFND file SYS$COMMON:[DTR]DTRFUN.OLB;1&lt;BR /&gt;&lt;BR /&gt;  I hacked around and found they were in the BASRTL_D56_TV.EXE and I looked at the difference between the new DTRBLD.COM and the existing one - it had the references to the TV images - and put two and two together - viola - no more undefined symbols!&lt;BR /&gt;&lt;BR /&gt;It was only this past week that the application folks started testing things in earnest and found these couple of functions didn't work.&lt;BR /&gt;&lt;BR /&gt;So I did as you directed - removing the BASRTL TV image specifications and using the current DEC$BASRTL file where suggested and changed the references to DBASIC$ from BAS$ of course it all works as expected.&lt;BR /&gt;&lt;BR /&gt;DTR&amp;gt; print fn$bas_date("39074")&lt;BR /&gt;&lt;BR /&gt;            FN$BAS&lt;BR /&gt;             DATE&lt;BR /&gt;&lt;BR /&gt;15-Mar-09&lt;BR /&gt;&lt;BR /&gt;WooHoo!&lt;BR /&gt;&lt;BR /&gt;Hein reply again, you deserve at least an additional 10 points!&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your help!!&lt;BR /&gt;&lt;BR /&gt;Oh and by the way, all those "weak references" are gone from the build now too!  The only complaints left are three:&lt;BR /&gt;&lt;BR /&gt;%LINK-W-TIRLNGTH, object command data record length illegal (0.)&lt;BR /&gt;        record 1 in module EXT_LEVEL_FORM file SYS$COMMON:[DTR]DTRLIB.OLB;2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art</description>
      <pubDate>Sun, 15 Mar 2009 21:27:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379268#M41937</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2009-03-15T21:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379269#M41938</link>
      <description>Art, do you have a canned e-mail with the steps and code and proceedure to implement this as a function to wack spaces in a field.. so as to avoid those nastry illegal ascii value issues?</description>
      <pubDate>Thu, 26 Mar 2009 14:10:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379269#M41938</guid>
      <dc:creator>Hal Kuff</dc:creator>
      <dc:date>2009-03-26T14:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379270#M41939</link>
      <description>Did I mention I'm not a programmer? ;-)  But the "magic" seems to be achieved in the EDIT$ function in Basic ... have a look at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5433/5433pro_010.html#tide" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5433/5433pro_010.html#tide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art</description>
      <pubDate>Thu, 26 Mar 2009 14:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379270#M41939</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2009-03-26T14:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Datatrieve w/ BASIC RTL extensions - SYSTEM-F-ACCVIO</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379271#M41940</link>
      <description>Google should turn up some bas$edit calls around the net; it's an old-time path into some BASIC RTL routines that were never really available in the base operating system.  There's a C example and a text file here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wwwvms.mppmu.mpg.de/vmssig/src/C/" target="_blank"&gt;http://wwwvms.mppmu.mpg.de/vmssig/src/C/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To see what BAS$EDIT can do (and what you'll need to pass in), see the EDIT mechanism over in the BASIC documentation.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/82final/5433/5433pro_010.html#tide" target="_blank"&gt;http://h71000.www7.hp.com/doc/82final/5433/5433pro_010.html#tide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Depending on what you're up to with the character set encoding, the OpenVMS RTL routine lib$movtc can be used here, too.   And C has various routines that are on-point here, too, the older isprint and isspace and other such pieces and the "newer" iconv pieces.&lt;BR /&gt;&lt;BR /&gt;If you're working with old-style ASCII, this stuff is (usually) easy via BAS$EDIT or lib$movtc or such.  If you're using newer character sets and newer encoding, this can get somewhat more slippery.&lt;BR /&gt;&lt;BR /&gt;If you're locked onto OpenVMS, then there is another (archived, obsolete, obscure) option:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/73final/documentation/pdf/OVMS_NCS_UTIL.pdf" target="_blank"&gt;http://h71000.www7.hp.com/doc/73final/documentation/pdf/OVMS_NCS_UTIL.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 15:03:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/datatrieve-w-basic-rtl-extensions-system-f-accvio/m-p/4379271#M41940</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-03-26T15:03:17Z</dc:date>
    </item>
  </channel>
</rss>

