1 SD !  Set/Show Default Directory  SD ^ Go up one subdirectory level SD ^^ Go to top level of current directory (enter TOP for help) SD . Go to login default directory and disk SD X Set default to [z.X] when currently in [z.y] SD > Traverse horizontally (enter TRAVERSE for help)  NEW  SD .X Set default to [current.X] SD X.Y.Z Set default to [X.Y.Z] (enter X for help) SD n Set default to n'th predefined directory SD \ Fully traverse the directory tree (enter TRAVERSE for help)  NEW  SD << Show the SD stack (enter STACK for help) SD * Show subdirectories under current default (enter STAR for help) SD ? Show this SD help information SD Show the current default Enter MULT for help showing how to do multiple SD functions in one call. ! 2 ^ ! Sets default to the next highest directory level. If default is [X.Y.Z], execution of  SD ^  will set default to [X.Y]. If the current default is a top-level directory, nothing happens. ! 2 TOP ! Entering  SD ^^  sets default to the top level directory. If currently in [X.Y.Z], you will then be in [X] . ! 2 . ! Sets default to the login default directory and disk. ! 2 X ! Sets default to the directory "X" at this subdirectory level. If the current directory is [A.B.C] then  SD >X  will set default to [A.B.X]. If the current default is a top-level directory, nothing happens. ! 2 TRAVERSE ! Using  SD >  traverses horizontally, and  SD \  traverses en- tire directory trees. See the subtopics for more information. When doing either type of traversal, you will get the error message "End of traversal reached" when there are no more dir- ectories to traverse. ! 3 > ! Sets default to the next directory (in alphabetical order) on this level. If the current directory is [A.B], then success- ive uses of  SD >  will set the default to [A.C], [A.D], etc. ! 3 \ ! Fully traverses the directory tree under the current master dir- ectory, starting at the current default. For instance, if the current directory is [A.B], then successive uses of  SD \  will set the default to: [A.B.B1] [A.B.B2] [A.C] [A.C.C1] [A.C.C1.C1X] [A.D] etc. If the traverse starts from a master directory, then ALL of the tree under it will be traversed; the above example starts in the middle of the tree, and shows that parts of the tree 'before' the starting point (in alphabetical order) are not traversed. ! 2 .X ! Sets default to the subdirectory named X at the next lower level. If the current default is [A.B], then  SD .X  will result in default of [A.B.X] ! 2 X ! Sets default to directory [X] on the current device. Note that square brackets are not required around the directory name; they are allowed, however. Examples: $  SD MYDIR  $  SD NEWDIR.A.B  You can also move to a different device, by executing: $  SD device:directory  The colon is required; you may follow the colon with a blank. If you just enter a device, you will go to your current default on the new device (e.g. from DRA0:[X.Y] to DRA1:[X.Y]). ! 2 n ! Sets default to the n'th predefined directory. These are usually defined at login, using global symbols SD__n. You can define or redefine these yourself, as in the following example: $ SD__2 == "SYS$SYSDEVICE:[MYDIR.MYSUB]" Such definitions last until you logout or redefine them. If you want them to be permanent, put them in your LOGIN.COM file. Note that you must include the square brackets in the definition. The definition can also be of a device only, such as "_DRC0:" or "SYS$SYSROOT:". If so, then you can combine it with another entry, such as: $  SD 1 X.Y.Z  ! 2 STACK ! SD maintains a stack of the last eight directories visited. Entering  SD <<  displays the SD stack, with the current directory at the top. Entering  SD X DIR /DATE  (you must use the abbreviation DIR) C. On GO operations, you can have it do another movement: $  SD . .Y  (go to subdirectory Y of login default directory) $  SD ^ ^  (go up two levels; note difference from SD ^^ ) $  SD <3 >X  (the explanation of this is left as an exercise to the user) ! 2 Logical-names ! SD translates logical names if given. For example,  SD SYS$HELP  will set the default to the translation for SYS$HELP. ! 2 Document ! For a hard-copy listing of this HELP text for SD, print the file: SGS$DISK:[NSWC.DOCS]SD.DOC Or LASER the file (with /MODE=PORT2): SGS$DISK:[NSWC.DOCS]SD.LAS ! ! Alan L. Zirkle Naval Surface Weapons Center ! Code K53 ! Dahlgren, Virginia 22448 ! ! ! sgs_version = "3.0" ! !