/*************************** N O T I C E ******************************/ /* Author: Alan Altmark OCT/1986 */ /* IBM Corporation JAN/2015 */ /* Endicott, NY */ /* */ /* This program is distributed on an "as is" basis without warranty */ /* of any kind either express or implied. */ /* */ /* THIS NOTICE (INCLUDING AUTHOR INFORMATION) MUST BE REMOVED (OR */ /* MODIFIED, AS APPROPRIATE) IF THIS PROGRAM IS MADE AVAILABLE TO */ /* PERSONS OUTSIDE OF IBM. */ /**********************************************************************/ /* */ /* Function: This program will do a formatted display of your */ /* accessed disks. An 'arrow' to the left of the mode */ /* letter means the disk is accessed read/write. */ /* */ /* Format: QSRCH default is all disks */ /* */ /* This exec is intended to run with SET TEXT ON. */ /* */ /* +---------------------------------+ */ /* | 0 1 2 3 4 5 6 7 8 9 A B C D E F | */ /* +---+---------------------------------+---+ */ /* | 4 |   â ä à á ã å ç ñ ¢ . < ( + | | 4 | */ /* | 5 | & é ê ë è í î ï ì ß ! $ * ) ; ^ | 5 | */ /* | 6 | - / Â Ä À Á Ã Å Ç Ñ ¦ , % _ > ? | 6 | */ /* | 7 | ø É Ê Ë È Í Î Ï Ì ` : # @ ' = " | 7 | */ /* | 8 | Ø a b c d e f g h i « » ð ý þ ± | 8 | */ /* | 9 | ° j k l m n o p q r ª º æ ¸ Æ ¤ | 9 | */ /* | A | µ ~ s t u v w x y z ¡ ¿ Ð [ Þ ® | A | */ /* | B | ¬ £ ¥ · © § ¶ ¼ ½ ¾ Ý ¨ ¯ ] ´ × | B | */ /* | C | { A B C D E F G H I ­ ô ö ò ó õ | C | */ /* | D | } J K L M N O P Q R ¹ û ü ù ú ÿ | D | */ /* | E | \ ÷ S T U V W X Y Z ² Ô Ö Ò Ó Õ | E | */ /* | F | 0 1 2 3 4 5 6 7 8 9 ³ Û Ü Ù Ú Ÿ | F | */ /* +---+---------------------------------+---+ */ /* | 0 1 2 3 4 5 6 7 8 9 A B C D E F | */ /* +---------------------------------+ */ /* */ /**********************************************************************/ arg diskmode address command "PIPE command QUERY DISPLAY | spec w2 | var scrH" "PIPE command QUERY DISPLAY | spec w3 | var scrW" /**********************************************************************/ /* Exec can be used with or without fullscreen, within XEDIT or not. */ /**********************************************************************/ inxedit? = 0 do i = 2 by 1 Call CSL "DMSCALLR cslrc caller i" if cslrc <> 0 then leave if left(caller,8) == "CMS " then iterate if left(caller,8) == "XEDIT " then inxedit? = 1 leave end if inxedit? = 0 then do "QUERY VSCREEN CMS (LIFO" if rc <> 0 then do "QUERY SEARCH" exit end end else "QUERY VSCREEN XEDIT (LIFO" pull . . . . rtop rbot . nrows = scrH - rtop - rbot /* Maximum rows avail */ widest = 0 "PIPE (endchar ?)", "command QUERY SEARCH", /* Get accssed disks and directories */ "| a: count maxline", "| stem search.", "?", "a:", "| var widest" widest = widest - 25 /* Just get the directory name */ "VSCREEN DELETE QSRCH" "VSCREEN DEFINE QSRCH" nrows*2 widest+19 "0 0 (BLUE PROT" "WINDOW DELETE QSRCH" "WINDOW DEFINE QSRCH" nrows widest+20 rtop+1 scrW-widest-20 "(VAR POP NOBORDER" "WINDOW SHOW QSRCH ON QSRCH" "SET LOCATION QSRCH OFF" /* |...+....1....+....2....+....3....+....4....+....5.. */ /* width is max(dirname) + 18 */ head1 = "Ð×××××ײ×××××ײ×" ||copies("×", widest) || "ׯ" head2 = "³ Mode ³ Addr ³ " ||left("Label", widest) || " ³" linec = " 76666 5555 " ||copies("2", widest) head3 = "Ó××××××±××××××±×" ||copies("×", widest) || "×Õ" foot1 = "¿××××××Ô××××××Ô×" ||copies("×", widest) || "ר" write = "VSCREEN WRITE QSRCH 0 0" widest+18 "(FIELD" color = "VSCREEN WRITE QSRCH 0 0" widest+18 "(COLOR" write head1 write head2 color linec write head3 Do i = 1 to search.0 parse var search.i label addr mode rw dirid . mode = left(mode, 3) rw = translate(right(rw,1), "40DF"x, "OW") if addr = "DIR" then do label = strip(dirid) addr = " " end addr = right(addr,4) write "³"rw mode "³" addr "³" left(label, widest) "³" color linec End if search.0 = 0 then "VSCREEN DELETE QSRCH" else write foot1