<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Too many loose ends to declare victory.<br>
    <br>
    The RT-11 librarian doesn't have a list command for macros; they
    were second class citizens.  It's available on other DEC OS's
    librians, so I must have crossed a memory.<br>
    <br>
    Names with a '.'  or '$' are reserved to DEC.  But I don't think
    this should impact how the search is conducted.  I'm pretty sure I
    had private libraries with .foo names (legal, as I was in DEC :-)<br>
    <br>
    In .FOO, '.' is part of the symbol name.<br>
    <br>
    See
    <a class="moz-txt-link-freetext" href="http://bitsavers.informatik.uni-stuttgart.de/www.computer.museum.uq.edu.au/RT-11/AA-5075A-TC%20PDP-11%20MACRO-11%20Language%20Reference%20Manual.pdf">http://bitsavers.informatik.uni-stuttgart.de/www.computer.museum.uq.edu.au/RT-11/AA-5075A-TC%20PDP-11%20MACRO-11%20Language%20Reference%20Manual.pdf</a> 
    Page 3-6; also chapter 7, section 7.8.<br>
    <br>
<a class="moz-txt-link-freetext" href="http://bitsavers.trailing-edge.com/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf">http://bitsavers.trailing-edge.com/pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PDU0A-TC_RT-11_Commands_Manual_Aug91.pdf</a><br>
    <br>
    describes the DCL:<br>
    e.g. EXECUTE MYLIB/LIBRARY+C.MAC/LIST/OBJECT<br>
    <br>
    I don't suppose that you got it trouble for explicitly specifying
    .MLB?  That would be strange.  But DCL for RT11 came after I stopped
    using RT11.<br>
    <br>
    You didn't provide the .LST file, which is where the real error
    should turn up.<br>
    Also,  .list MD, MC and ME will often shed some light on these sorts
    of issues.  (Of these, ME is the only one not defaulted on)<br>
    <br>
    <br>
    <br>
    On 05-Feb-16 16:05, Will Senn wrote:<br>
    <blockquote cite="mid:56B50E91.6000406@gmail.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      I got it working :).<br>
      <br>
      However, It doesn't look like macro files can be listed - from the
      system utilities manual:<br>
      The .MACRO directive produces the entries in the library directory
      (macro names). LIBR does not maintain a directory listing file for
      macro libraries; you can print the ASCII input file to list the
      macros in the library.<br>
      <br>
      I did a bunch more reading and figured out that the issue was
      around inconsistent/improper use of the leading dot.
      Interestingly, no diagnostic I could find was helpful in tracking
      this down. Y'alls tips and hints were much more useful.<br>
      <br>
      So, here's how it went down (don't use a leading dot for
      user-defined macros, but if you do use them, use them everywhere):<br>
      <br>
      <tt>.type et2.mac</tt><tt><br>
      </tt><tt>    .TITLE  ETTYIN</tt><tt><br>
      </tt><tt>    .MCALL    .TTYOUT,TIN</tt><tt><br>
      </tt><tt><br>
      </tt><tt>START:    MOV    #BUFFER,R1</tt><tt><br>
      </tt><tt>    CLR    R2</tt><tt><br>
      </tt><tt>INLOOP:    TIN    (R1)+</tt><tt><br>
      </tt><tt>    INC    R2</tt><tt><br>
      </tt><tt>    CMPB    #12,R0</tt><tt><br>
      </tt><tt>    BNE    INLOOP</tt><tt><br>
      </tt><tt>    MOV    #BUFFER,R1</tt><tt><br>
      </tt><tt>OUTLOOP:.TTYOUT    (R1)+</tt><tt><br>
      </tt><tt>    DEC    R2</tt><tt><br>
      </tt><tt>    BEQ    START</tt><tt><br>
      </tt><tt>    BR    OUTLOOP</tt><tt><br>
      </tt><tt>BUFFER:    .BLKW    64.</tt><tt><br>
      </tt><tt>    .END    START</tt><tt><br>
      </tt><tt>.</tt><tt><br>
      </tt><tt><br>
      </tt><tt>.type tin.mac</tt><tt><br>
      </tt><tt>.MACRO    TIN    CHAR</tt><tt><br>
      </tt><tt>    EMT    ^O340</tt><tt><br>
      </tt><tt>    BCS    .-2.</tt><tt><br>
      </tt><tt>.IF NB <CHAR></tt><tt><br>
      </tt><tt>.IF DIF <CHAR>,R0</tt><tt><br>
      </tt><tt>    MOVB    R0,CHAR</tt><tt><br>
      </tt><tt>.ENDC</tt><tt><br>
      </tt><tt>.ENDC</tt><tt><br>
      </tt><tt>.ENDM</tt><tt><br>
      </tt><tt><br>
      </tt><tt>.lib/mac/c tin tin</tt><tt><br>
      </tt><tt><br>
      </tt><tt>.macro et2/list/cross+tin.mlb/lib</tt><tt><br>
      </tt><tt><br>
      </tt><tt>.link et2</tt><tt><br>
      </tt><tt><br>
      </tt><tt>.run et2</tt><tt><br>
      </tt><tt>THIS IS A TEST</tt><tt><br>
      </tt><tt>THIS IS A TEST</tt><tt><br>
      </tt><tt>^C</tt><tt><br>
      </tt><tt><br>
      </tt><tt>.</tt><br>
      <br>
      I really appreciate y'alls assistance.<br>
      <br>
      Thanks,<br>
      <br>
      Will<br>
      <br>
      <div class="moz-cite-prefix">On 2/5/16 12:19 PM, Timothe Litt
        wrote:<br>
      </div>
      <blockquote cite="mid:56B4E79A.2090806@ieee.org" type="cite">
        <pre wrap="">Try the obvious:

lib/mac/list tin.mlb

I don't remember exactly, but I think there's a /detail or /names or
/list=names that will list the macro names in the library.

That will at least determine if MAC *should* find the macro.

On 05-Feb-16 13:05, Will Senn wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
On 2/5/16 10:20 AM, Paul Koning wrote:
</pre>
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">On Feb 5, 2016, at 10:48 AM, Will Senn <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:will.senn@gmail.com"><will.senn@gmail.com></a> wrote:

All,

A couple of questions:

...
lib/mac/c tin tin
macro et2/list/cross+tin.mlb/lib
?MACRO-E-Errors detected:  2
DK:ET2,DK:ET2/C=DK:ET2,DK:TIN.SML
</pre>
            </blockquote>
            <pre wrap="">Try putting the macro library earlier in the command line.  I believe
MACRO processes command arguments as it encounters them, so here
you're asking it to assemble ET2 before you've given it the macro
library it needs to understand the .MCALL.

    paul

</pre>
          </blockquote>
          <pre wrap="">I tried the command with the filespecs switched with the same result:
.macro tin.MLB/lib+et2/list/cross
?MACRO-E-Errors detected:  2
DK:TIN,DK:ET2/C=DK:TIN.MLB/M,DK:ET2

And then I ran it via run macro:
.run macro
*ET2.OBJ,ET2.LST,ET2.LST=TIN.MLB/M,ET2
?MACRO-E-Errors detected:  2
ET2.OBJ,ET2.LST,ET2.LST=TIN.MLB/M,ET2
*

And then I edited the macro file to include a LIBRARY directive:
    .TITLE  ETTYIN
    .LIBRARY /TIN.MLB/
    .MCALL    .TTYOUT,.TIN

START:    MOV    #BUFFER,R1
    CLR    R2
INLOOP:    .TIN    (R1)+
    INC    R2
    CMPB    #12,R0
    BNE    INLOOP
    MOV    #BUFFER,R1
OUTLOOP:.TTYOUT    (R1)+
    DEC    R2
    BEQ    START
    BR    OUTLOOP
BUFFER:    .BLKW    64.
    .END    START

and recompiled:
.macro et2/list/cross
?MACRO-E-Errors detected:  2
DK:ET2,DK:ET2/C=DK:ET2

It looks to me like it is finding the file, but not "seeing" the macro
definition?

Thanks,

Will

_______________________________________________
Simh mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.trailing-edge.com/mailman/listinfo/simh">http://mailman.trailing-edge.com/mailman/listinfo/simh</a>
</pre>
        </blockquote>
        <pre wrap="">
</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Simh mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.trailing-edge.com/mailman/listinfo/simh">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Simh mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Simh@trailing-edge.com">Simh@trailing-edge.com</a>
<a class="moz-txt-link-freetext" href="http://mailman.trailing-edge.com/mailman/listinfo/simh">http://mailman.trailing-edge.com/mailman/listinfo/simh</a></pre>
    </blockquote>
    <br>
  </body>
</html>