% VAX-11 Librarian V04-001HNBH&5 SD NBHF1 SD Version 4.3!;  Set/Show Default Directory  Version 4.3&SD ^ Go up one subdirectory levelCSD ^^ Go to top level of current directory (enter TOP for help)0SD . Go to login default directory and disk>SD X Set default to [z.X] when currently in [z.y]9SD > Traverse horizontally (enter TRAVERSE for help)$SD .X  Set default to [current.X]3SD X.Y.Z Set default to [X.Y.Z] (enter X for help)2SD n Set default to n'th predefined directoryESD \ Fully traverse the directory tree (enter TRAVERSE for help)2SD << Show the SD stack (enter STACK for help)ISD * Show subdirectories under current default (enter STAR for help)'SD ? Show this SD help information"SD Show the current defaultHEnter MULT for help showing how to do multiple SD functions in one call.!2 ^!J Sets default to the next highest directory level. If default is [X.Y.Z],F execution of  SD ^  will set default to [X.Y]. If the current3 default is a top-level directory, nothing happens.!2 TOP!F Entering  SD ^^  sets default to the top level directory. If 0 currently in [X.Y.Z], you will then be in [X] .!2 .!6 Sets default to the login default directory and disk.!2 X!> Sets default to the directory "X" at this subdirectory level.I 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!J Using  SD >  traverses horizontally, and  SD \  traversesC entire directory  trees. See the subtopics for more information.> When doing either type of traversal, you will get the errorA 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-G ive uses of  SD >  will set the default to [A.C], [A.D], etc.!3 \!C Fully traverses the directory tree under the current master dir-A ectory, starting at the current default. For instance, if theD current directory is [A.B], then successive uses of  SD \  will set the default to:A [A.B.B1] [A.B.B2] [A.C] [A.C.C1] [A.C.C1.C1X] [A.D] etc.B If the traverse starts from a master directory, then ALL of theC 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!B Sets default to the subdirectory named X at the next lower level.D If the current default is [A.B], then  SD .X  will result in default of [A.B.X]!2 X!G Sets default to directory [X] on the current device. Note that squareG brackets are not required around the directory name; they are allowed, however. Examples:4 $  SD MYDIR  $  SD NEWDIR.A.B 7 You can also move to a different device, by executing: $  SD device:directory F The colon is required; you may follow the colon with a blank. If youD 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!B Sets default to the n'th predefined directory. These are usuallyB defined at login, using global symbols SD__nn. You can define or6 redefine these yourself, as in the following example:* $ SD__02 == "SYS$SYSDEVICE:[MYDIR.MYSUB]"A Such definitions last until you logout or redefine them. If you< want them to be permanent, put them in your LOGIN.COM file.B Note that you must include the square brackets in the definition.A The definition can also be of a device only, such as "_DRC0:" orD "SYS$SYSROOT:". If so, then you can combine it with another entry, such as: $  SD 1 X.Y.Z * DM !2 STACK!G SD maintains a stack of the last twenty directories visited. EnteringM  SD <<  displays the SD stack, with the current directory at the top.E You may use the up and down "arrow" keys to position the cursor to aD stack entry. Then, pressing Return or Select will move you to that directory.> T and B move to the Top or Bottom of the stack.D You may quit without changing directories by pressing any other keyF (such as space or "Q"). The stack display will remain on the screen.E Entering  SD T ctrl/w& down-arrow right-arrow B) next screen prev screen PF2 (help) D Only four levels of subdirectories are show n at one time; if lower I levels exist, the parent directory shows a line pointing to the right. E If a directory name is too long, it will be truncated and a diamond E will be displayed after it. Truncation will occur for names longer  than 17 characters.L Pressing the Return or Select keys will place you in the selected directoryO To print a copy of the diagram, press  P  (The PF1 key, followed: by p or P). To change printers, press  A .!3 Help_For _Tree!,Arrow Keys - Move around in the tree.9Next Screen (VT2xx) - Move DOWN in Current Column.7Prev Screen (VT2xx) - Move UP in Current Column.XReturn/Select/Enter/Do (VT2xx) - Select directory to "GoTo".. Gold T  - Go to TOP of Current Column.1 Gold B  - Go to BOTTOM of Current Column.C Gold P  - Print the Tree display (on your default printer).. Gold A  - Change your default printer.2Press any other key to exit from the Tree Display.!2 Errors!< SD checks for the existence of the directory being entered,< and prints an error if it is not found, or if the device is6 not mounted. !2 MULT!H In most cases, SD can do multiple functions in one call. Space(s) must separate the functions.3 A. A * can be done after all operations: $  SD X.Y * 3 B. You can do a DIRECTORY after all operations:H $  SD >X DIR  /DATE  (you must use the abbreviation DIR)- C. You can enter DM after all operations:@ $  SD >X DM  (you must use the abbreviation DM), = D. On GO operations, you can have it do another movement:H $  SD . .Y  (go to subdirectory Y of login default directory)F $  SD ^ ^  (go up two levels; note difference from SD ^^ )F $  SD <3 >X  (the explanation of this is left as an exercise to the user)A E. If you use Multiple operations, the order of execution is: o All Explicit Movements o * (Show Tree) o << (Show Stack) o DIR o DM!2 Logical-names!I SD translates logical names if given. For example,  SD SYS$HELP 6 will set the default to the translation for SYS$HELP.! 2 Document!A For a hard-copy listing of the HELP text for SD, print the file: SYS$HELP:SD_USER_DOC.TXT !2 Init ializing!J You may initialize SD's Stack and your own Predefined Directories. TheseA are usually defined at login (in your LOGIN.COM), but Predefined( Directories may be changed at any time.A Such definitions last until you logout or redefine them. If you< want them to be permanent, put them in your LOGIN.COM file.G Initializing SD's Stack allows you to begin with the stack as you likeC it. However, subsequent use of SD will change the stack contents.I Initializing the Predefined Directories allows you to type "SD n" at any+ time and be moved to a specific directory.!3 Stack!B Initialize the SD Stack at login (in your LOGIN.COM file), using A global symbols SD_SLOTnn and the global symbol SD_STACK_POINTER.: You must define all 20 slots as in the following example:, $ SD_STACK_POINTER == "00" ! two zeros" $ SD_SLOT00 == "SYS$LOGIN"4 $ SD_SLOT01 == "SYS$SYSDEVICE:[MYDIR.MYSUB]" . . . . . . . . . . .4 $ SD_SLOT19 == "SYS$SYSDEVICE:[MYDIR.MYSUB]"B Note that you must include the square brackets in the definition. Duplicates are allowed. !3 Predefined_Directories!H Initialize the Predefined Directories at login (in your LOGIN.COM file)H or at any time you wish, using global symbols SD__nn. You may define J these as you desire (and with the numbers you choose) as in the following example:* $ SD__02 == "SYS$SYSDEVICE:[MYDIR.MYSUB]"$ $ SD__99 == "DISK$USER99:[FOO.BAR]"B Note that you must include the square brackets in the definition.H You may then use the command "SD 99" (or whatever) to move to your n'th predefined directory.A The definition can also be of a device only, such as "_DRC0:" orD "SYS$SYSROOT:". If so, then you can combine it with other entries, such as: $  SD 1 X.Y.Z * DM 2 HighlightingH The SD Tree and Stack displays normally highlight (bold) entries6 as your cursor moves through the display. In certain@ circumstances, you may wish  to disable this feature. You might@ want to do this if your terminal does not support highlighting,A or if you are using a slow communication rate (highlighting does? take time). To eliminate dynamic highlighting, set a symbol:  $ DM$HIGHLIGHT :== N 2 CreditsA Directory Manager was initially submitted in 1984 (we think) by H Alan L. Zirkle, NSWC, and has been improved (and submitted to DECUS) byH him since that time. This version is a spin-off from his submission toJ the Spring 1986 Symposium Tape, and was extensively re-written by Dale E.% Coy, Los Alamos National Laboratory.? This revision uses entirely FORTRAN and MACRO code, as well asF the SMG screen interface. It also incorporates an interactive stack 6 of 20 directories, and an interactive "Tree" display. 3 Version < You can find out what version of SD you are using by typing SD $J!-------------------------------------------------------------------------!1! Alan L. Zirkle Naval Surface Weapons Center! Code K53 ! Dahlgren, Virginia 22448!!! sgs_version = "3.0"!/! Dale E. Coy Los Alamos National Laboratory!! Version 4.0A! Version 4.1A October, 1986! Version 4.2A February, 1987! Version 4.3A November, 1987!ww