Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with #delimit ; in MacOS

    Hello
    I Am try to use command #delimit ; , but when run de command and any line I get a error.
    For example:

    clear ;

    not allowed
    r(198);


    or

    drop _all ;
    _all not allowed
    r(198);


    Any suggestions?

  • #2
    the delimiter is for use in do-files - are you trying to use it interactively?

    Comment


    • #3
      Actually, in do-files.

      Comment


      • #4
        The output of help #delimit tells us that the #delimit command is allowed only in do-files and ado-files, and it only has effect within the do-file in which it appears.
        Code:
        . do "/var/folders/xr/lm5ccr996k7dspxs35yqzyt80000gp/T//SD13625.000000"
        
        . #delimit ;
        delimiter now ;
        . clear ;
        
        . 
        end of do-file
        
        . clear ;
        ; not allowed
        r(198);
        
        .

        Comment


        • #5
          if you are using in do-files, you need to give us more info; you can blank out some of the do file if you need to do so for confidentiality but we really need to see the structure

          note that your second example in #1 is an unrelated problem; see
          Code:
          help drop

          Comment


          • #6
            For example this is my case:
            #delimit ;
            webuse food
            nlsur quaids @ w1 w2 w3 lnp1-lnp4 lnexp, ifgnls nequations(3) param(a1 a2 a3 b1 b2 b3 g11 g12 g13 g22 g23 g33 l1 l2 l3) nolog;

            When run nlsur or other commands get de following message: option ; not allowed

            Comment


            • #7
              It's easiest if you don't try to change the delimiter. That said, since you did, you must terminate *every* command with the semicolon. You are missing one at the end of the line beginning with -webuse-.

              Comment

              Working...
              X