[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

94.0. "Using utilities from the command line" by ASD::MINTZ (Erik Mintz, MS ZKO3-2/S11, dtn 381-2331) Tue Apr 03 1990 19:42

It appears that DAP can not handle indirect command file input from
the command line.  That is:

$ dap @mcc$tcpip_am_mgt_if
%DAP-E-SYNTAX_KEYWRD, Invalid command syntax @MCC$TCPIP_AM_MGT_IF, expected one
of CREATE DELETE EXIT HELP PREVIOUS SET SHOW SPAWN USE
%DAP-E-COMMAND, Unrecognized command was entered.  Enter HELP for help


whereas

$ dap
DAP> @@mcc$tcpip_am_mgt_if

works fine.  Is this intentional behavior?
T.RTitleUserPersonal
Name
DateLines
94.1Please use LOAD command for loading MS'sTOOK::GUERTINI walk like I talkWed Apr 04 1990 20:0826
    Yes.  That is "known" behavior.  In DAP the "@" is a pre-parser symbol
    which means "Please redirect standard input (sys$input) to this file".
    
    At the DCL level, the command is passed directly to the parser, without
    interpreting pre-parser symbols and characters.
    
    The reason this was not changed is because I was not sure if we should
    even document support for the "@" symbol.  It was not intended to be
    used for loading and updating the dictionary (which I noticed is how
    your example appears to use it). The LOAD and UPDATE commands work
    much like the "@" but do more error checking, give more informational
    message when an error is detected, and stop processing when they hit an
    error.  So the assumption was that everyone would use LOAD and UPDATE
    to enter the MSL output files into the dictionary. (In fact, that is
    the only supported way of loading the MSL translator output files into
    the dictionary).
    
    Now that I've said all that, yes, it's a bug.  Apparently, even though
    people use the "@" to load MS's into the dictionary, the re-directing
    of input is still a useful feature, and probably should be supported at
    DCL level as well.
    
    In the meantime, try:
    $ dap load mcc$tcpip_am_mgt_if.com
    
    -Matt.
94.2ThanksASD::MINTZErik Mintz, MS ZKO3-2/S11, dtn 381-2331Wed Apr 04 1990 20:287
Thanks for the explanation, Matt.

We already worked around this by doing the load interactively,
but I'm sure Mike will want to include this in the next iteration
of the TCPIP AM release notes.

-- Erik
94.3YupMKNME::DANIELEThu Apr 05 1990 13:424
    Noted, thanks.  This should be done for you by a real installation
    procedure.  Sorry for the inconvenience.
    
    Mike 
94.4.1 has DAP syntax error.TOOK::GUERTINI walk like I talkThu Apr 12 1990 13:335
    Sorry .1's suggested command should be:
    
    $ dap load from mcc$tcpip_am_mgt_if.com
               ~~~~
    -Matt.