<?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: &amp;quot;%SEARCH-E-NOFILE, no file found&amp;quot; and &amp;quot;-RMS-E-FNF, file not found&amp;quot; difference in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962983#M29498</link>
    <description>Note, for example, the "Condition Values&lt;BR /&gt;Returned" section in the description of&lt;BR /&gt;$SEARCH:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4523/4523pro_034.html#index_x_1153" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4523/4523pro_034.html#index_x_1153&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;No SEARCH$_anything, only RMS$_things.</description>
    <pubDate>Mon, 27 Feb 2006 21:41:34 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2006-02-27T21:41:34Z</dc:date>
    <item>
      <title>"%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962981#M29496</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Env: Alpha/OpenVMS 8.2&lt;BR /&gt;My macro program searches for a string by going thru all user's entire HOME (LOGIN) directory. I am passing the directory files name to $PARSE and $SEARCH rms services this way using NAM and FAB ....&lt;BR /&gt;Ist time:  disk:[username1...]*.*&lt;BR /&gt;some time: disk:[test_dir...]*.*&lt;BR /&gt;&lt;BR /&gt;$PARSE returns success status, but $SEARCH fails, it returns file not found (RMS$_FNF)  status in R0.&lt;BR /&gt;&lt;BR /&gt;I have "RMS$_FNF" error processing loop for some other purpose. Instead I expect my program should go to "%SEARCH-E-NOFILE, no file found" loop.&lt;BR /&gt;&lt;BR /&gt;$ search disk:[username1...]*.* str_2b_serch&lt;BR /&gt;%SEARCH-W-OPENIN, error opening disk:[username1...]*.*; as input&lt;BR /&gt;-RMS-E-FNF, file not found&lt;BR /&gt;%SEARCH-E-NOFILE, no file found&lt;BR /&gt;&lt;BR /&gt;This "-RMS-E-FNF, file not found" error will come in lot many other situation also, we know.&lt;BR /&gt;&lt;BR /&gt;How can we differentiate "%SEARCH-E-NOFILE, no file found" error from "-RMS-E-FNF, file not found".&lt;BR /&gt;&lt;BR /&gt;Is there any other symbol which gets filled with "%SEARCH-E-NOFILE, no file found" error in NAM or any other RMS block?.&lt;BR /&gt;&lt;BR /&gt;I tested all RMS$ return code related with $SEARCH routine.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance.&lt;BR /&gt;Archunan</description>
      <pubDate>Mon, 27 Feb 2006 17:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962981#M29496</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-02-27T17:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962982#M29497</link>
      <description>The system service $SEARCH is completely&lt;BR /&gt;unrelated to the command/program SEARCH.  You&lt;BR /&gt;may get %SEARCH errors from the SEARCH&lt;BR /&gt;command, but you will never get one from the&lt;BR /&gt;$SEARCH system service.&lt;BR /&gt;&lt;BR /&gt;If $SEARCH returns RMS-E-FNF on the first&lt;BR /&gt;call, then you got no match to the&lt;BR /&gt;(wildcard?) file spec.  I believe that you&lt;BR /&gt;need to count the files yourself.</description>
      <pubDate>Mon, 27 Feb 2006 19:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962982#M29497</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-27T19:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962983#M29498</link>
      <description>Note, for example, the "Condition Values&lt;BR /&gt;Returned" section in the description of&lt;BR /&gt;$SEARCH:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/doc/731FINAL/4523/4523pro_034.html#index_x_1153" target="_blank"&gt;http://h71000.www7.hp.com/doc/731FINAL/4523/4523pro_034.html#index_x_1153&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;No SEARCH$_anything, only RMS$_things.</description>
      <pubDate>Mon, 27 Feb 2006 21:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962983#M29498</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-27T21:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962984#M29499</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;$SEARCH routine returns "-RMS-E-FNF, file not found" error in too many instances such as for ...&lt;BR /&gt;1. disk:[username1...]*.*  --- in this case, under username1 home dire, there is no files, it is a empty dir.&lt;BR /&gt;&lt;BR /&gt;2. disk:[username1...]nonexisting_file.dat  --- in this case nonexisting_file.dat is not available.&lt;BR /&gt;&lt;BR /&gt;The $SEARCH fails in these two situations are difft. Isn't it?, but it returns "-RMS-E-FNF, file not found" error and goes to the same loop for both case.&lt;BR /&gt;&lt;BR /&gt;I want to seperate the error type for the first case. that is "any user's home directory is empty".&lt;BR /&gt;&lt;BR /&gt;I am testing R0 against #NAM_WILDCARD for some other purpose, but to trap this error, I found no use with this test.&lt;BR /&gt;-------------------&lt;BR /&gt;&lt;BR /&gt;Yes I saw the return values specific to the $SEARCH routine.&lt;BR /&gt;&lt;BR /&gt;Thanks for your response, steve.&lt;BR /&gt;Archunan</description>
      <pubDate>Tue, 28 Feb 2006 14:13:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962984#M29499</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-02-28T14:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962985#M29500</link>
      <description>&amp;gt; The $SEARCH fails in these two situations are difft. Isn't it?&lt;BR /&gt;&lt;BR /&gt;In the first case, you're looking for a file&lt;BR /&gt;which doesn't exist, while in the second&lt;BR /&gt;case, you're looking for a file which doesn't&lt;BR /&gt;exist.&lt;BR /&gt;&lt;BR /&gt;There may be some other (clever) method, but&lt;BR /&gt;if you wish to use $SEARCH to test for&lt;BR /&gt;"[username1]", then I believe that you'll&lt;BR /&gt;need to look for "username1.DIR;1" (one level&lt;BR /&gt;up).&lt;BR /&gt;&lt;BR /&gt;What do you wish to do differently if the&lt;BR /&gt;directory doesn't exist?  If the answer is,&lt;BR /&gt;"create some file there", then you should&lt;BR /&gt;get a distinctive failure when you try to&lt;BR /&gt;create the file in a nonexistent directory.</description>
      <pubDate>Tue, 28 Feb 2006 19:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962985#M29500</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-28T19:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962986#M29501</link>
      <description>What are you using for $PARSE, syntax-only?&lt;BR /&gt;&lt;BR /&gt;When I set nam[l]$v_synchk, I see %x00010001 =&lt;BR /&gt;%RMS-S-NORMAL for a good directory or a bad&lt;BR /&gt;directory.&lt;BR /&gt;&lt;BR /&gt;When I do _not_ set nam[l]$v_synchk, I see&lt;BR /&gt;%RMS-S-NORMAL for a good directory, but&lt;BR /&gt;%x0001c04a = %RMS-E-DNF ("directory not&lt;BR /&gt;found") for a bad directory.&lt;BR /&gt;&lt;BR /&gt;That would seem to solve your problem.&lt;BR /&gt;&lt;BR /&gt;I won't ask why you're using MACRO32.</description>
      <pubDate>Tue, 28 Feb 2006 19:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962986#M29501</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-28T19:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962987#M29502</link>
      <description>&lt;BR /&gt;Nice to know you have C/RMS experience.&lt;BR /&gt; &lt;BR /&gt;nam$v_synchk is used to check the existance of dire/device. For this, just we can use RMS$_ return status. &lt;BR /&gt;&lt;BR /&gt;Also $PARSE needs to fill some of the other NAM fields for the consecuetive $SEARCH call, if I set nam$v_synchk, I can not supply those NAM fields values to $Search service.&lt;BR /&gt;&lt;BR /&gt;For the information, my program plungs down to each user's LOGIN directory, and  reporting "any misowned dirs/files", "dirs/fils protection", "any hidden dirs", "any disUSEREd accounts", "any USER without login dirs", "COM procedure availablity", etc...&lt;BR /&gt;&lt;BR /&gt;Even I noted down the values in R0 after $search call to test against that values, (assuming this exception value may not be defined in RMS and NAM blocks),but this is also not usefull, because that value is for RMS$_FNF only. &lt;BR /&gt;&lt;BR /&gt;Now I understand that there is no specific symbol I can use to catch this kind of errors, now I am in a trial using extra dummy variables and changing the prog flow.&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Tue, 28 Feb 2006 21:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962987#M29502</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-02-28T21:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962988#M29503</link>
      <description>Read it again.&lt;BR /&gt;&lt;BR /&gt;With nam[l]$v_synchk NOT set, sys$parse()&lt;BR /&gt;fails with %x0001c04a = "%RMS-E-DNF,&lt;BR /&gt;directory not found", if the directory does&lt;BR /&gt;not exist.&lt;BR /&gt;&lt;BR /&gt;At least it does for me.&lt;BR /&gt;&lt;BR /&gt;alp $ exec px home_sms:[sms]*.*&lt;BR /&gt; parse (normal) sts = %x00010001.&lt;BR /&gt; parse (synchk) sts = %x00010001.&lt;BR /&gt;&lt;BR /&gt;alp $ exec px home_sms:[no-such-dir]*.*&lt;BR /&gt; parse (normal) sts = %x0001c04a.&lt;BR /&gt; parse (synchk) sts = %x00010001.&lt;BR /&gt;&lt;BR /&gt;Are you checking the status from $PARSE?&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Feb 2006 22:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962988#M29503</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-28T22:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962989#M29504</link>
      <description>Perhaps I should read _your_ stuff again,&lt;BR /&gt;instead.&lt;BR /&gt;&lt;BR /&gt;If you $SEARCH for "*.*" and get %RMS-E-FNF,&lt;BR /&gt;then the directory is empty.&lt;BR /&gt;&lt;BR /&gt;If you $SEARCH for any specific file (like&lt;BR /&gt;"nonexisting_file.dat") and get %RMS-E-FNF,&lt;BR /&gt;then that specific file does not exist.&lt;BR /&gt;&lt;BR /&gt;I don't see a problem.  Why should these be&lt;BR /&gt;different?</description>
      <pubDate>Wed, 01 Mar 2006 01:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962989#M29504</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-03-01T01:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962990#M29505</link>
      <description>Steve, you arg is ok. but my customer wants FNF, DNF, DNR, FND, etc etc... conditions reported seperately with proper reason. I feel their request is reasonable to differentiate any "invalid file", "file not found", "no files found - empty dir" in their environment. As I said my progrm processes "any misowned dirs/files", "dirs/fils protection", "any hidden dirs", "any disUSEREd accounts", "any USER without login dirs", "COM procedure availablity", etc...&lt;BR /&gt;For this I have many macro subroutines inside the main macro prog. You knew that macro has very limited procedural approach, but now I am trying to use couple of dummy variables, and going to expand code for this to short out this issue.  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Mar 2006 17:51:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962990#M29505</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-03-01T17:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962991#M29506</link>
      <description>For this I have many macro subroutines inside the main macro prog. You knew that macro has very limited procedural approach . . .&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;Yeah, that's why VMS Engineering does virtually all new development in C, not MACRO-32.  Even experienced MACRO-32 coders agree that it's much less error-prone and quicker to develop in a procedural language.  The code substantially easier to maintain, too.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;           -- Rob&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Mar 2006 20:06:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962991#M29506</guid>
      <dc:creator>Robert Brooks_1</dc:creator>
      <dc:date>2006-03-01T20:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962992#M29507</link>
      <description>Bob,&lt;BR /&gt;&lt;BR /&gt;I agree, c is easy and we can avoid these kind issues when we use procedural lang. But I don't think MACRO is error prone. &lt;BR /&gt;when we need to develop a application which drills/extracts all kind of info from any kind of programs/applications, there is no altenate to macro, this may be the reason why my application had been started with macro. I am just docking few more modules to the existing applications. &lt;BR /&gt;&lt;BR /&gt;Maximum we avoid writing any more new modules in macro unless otherwise there is strong reason to do that. We already wrote thousands of C and Cplus subprograms, but the most of the main prog are still in macro. Any way we planned to move this whole appln to I64 shortly using c,cplus,java.&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Wed, 01 Mar 2006 20:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962992#M29507</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-03-01T20:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962993#M29508</link>
      <description>&amp;gt; [...] but my customer wants [...]&lt;BR /&gt;&lt;BR /&gt;I still don't see the problem.&lt;BR /&gt;&lt;BR /&gt;$PARSE fails with "RMS-E-DNF, directory not&lt;BR /&gt;found" if the directory does not exist.&lt;BR /&gt;&lt;BR /&gt;$SEARCH for "*.*" gets "RMS-E-FNF, file not&lt;BR /&gt;found" (the first time) if the directory is&lt;BR /&gt;empty.&lt;BR /&gt;&lt;BR /&gt;$SEARCH for "specific.file" gets "RMS-E-FNF,&lt;BR /&gt;file not found" (the first time) if the&lt;BR /&gt;specific file does not exist.&lt;BR /&gt;&lt;BR /&gt;In the last two cases, you get the same&lt;BR /&gt;answer (RMS-E-FNF), but this should be&lt;BR /&gt;confusing only if you forget which question&lt;BR /&gt;you were asking.</description>
      <pubDate>Wed, 01 Mar 2006 22:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962993#M29508</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-03-01T22:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: "%SEARCH-E-NOFILE, no file found" and "-RMS-E-FNF, file not found" difference</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962994#M29509</link>
      <description>Friends,&lt;BR /&gt;Thanks for your suggestions...&lt;BR /&gt;&lt;BR /&gt;I have added the following lines of code, and it works fine.&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;bbs #errsup_set, getfiledesc_flags,100$&lt;BR /&gt;TSTL   ITSADIR             ; it is a dir?&lt;BR /&gt;BNEQ   410$                ; nope&lt;BR /&gt;MOVZBL NAM$B_ESL(R11), R2  ;see if its a dir&lt;BR /&gt;MOVL   NAM$L_ESA (R11), R3&lt;BR /&gt;MATCHC #4,DIROBJ,R2,(R3)   ; is it dir?&lt;BR /&gt;BNEQ   410$                ; nope&lt;BR /&gt;MOVL   #1 ITSADIR          ; its a is dir&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Mon, 06 Mar 2006 17:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/quot-search-e-nofile-no-file-found-quot-and-quot-rms-e-fnf-file/m-p/4962994#M29509</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2006-03-06T17:45:49Z</dc:date>
    </item>
  </channel>
</rss>

