02/05/82 lila Syntax: lila {-control_args} Function: invokes the LINUS Language (LILA) editor and translator. Control arguments: -build {START} {INCREMENT} invokes LILA build mode, an automatic numbering mode, in the current LILA text file. START determines the first line number of the inserted text. INCREMENT, when added to the previous line number, yields the next automatic line number. A value for START must be given if an INCREMENT is to be given. START and INCREMENT are positive integers ranging from 1 to 9999. Build mode is exited by entering a line consisting of a period ("."). (DEFAULT INCREMENT is 10. DEFAULT START is the current last line_number plus INCREMENT. For an empty lila file, the DEFAULT for both START and INCREMENT is 10.) NOTE: Build mode overwrites any existing text line which has a line number equal to any automatically generated line number. For example: if the file contains lines 10, 20, 30, ..., the LINUS request "lila -build 15 15" would insert line 15, overwrite line 30, insert line 45, etc. -new deletes all lines from the LILA text file which remain from previous invocations of LILA in the current LINUS session. (DEFAULT is to keep the old text lines). Requests: build {START} {INCREMENT} invokes build mode in the current lila text file. (See -build above.) invoke macro_path {optional_args}, i macro_path {optional_args} causes the requests in the designated segment to be executed. line_number deletes a LILA source line. line_number source_line adds or replaces a LILA source line. list, ls prints the current LILA source file. list_requests, lr prints a brief summary of available lila requests. new deletes all text from current lila text file. proc processes the current LILA source file to form the specification of the database subset which is to be accessed by subsequent LINUS database requests. quit, q exits from LILA and returns to LINUS request level. save macro_path, sv macro_path stores the current LILA file as a LINUS macro in the designated segment with a ".linus" suffix. Notes: If you type a dot (.), LINUS will let you know whether you are at LINUS request level or in the LILA editor. If you type a question mark (?), LILA will print a brief list of requests. Multics command lines maybe executed by typing "execute command_line" or "e command_line" or "..command_line". Refer to the LINUS manual (Order No. AZ49) for complete information on LILA syntax. The following sections provide examples of typical LILA expressions. Examples: The following examples reference a database containing the following five tables: emp (name, empno, dept, mgr, sal, comm) sales (dept, item, vol) supply (supplier, item, vol) loc (dept, floor) class (item, type) The LILA syntax basically consists of constructing various combinations of SELECT-FROM-WHERE blocks as shown. select dept from emp *** Further examples: select * from emp where sal > 8000 *** select name sal from emp where dept = "Toy" & mgr = 1423 *** select name from emp where dept = "Admin" | sal + comm > 10000 More examples: select item from sales where dept = {select dept from loc where floor = 2} *** avg {select sal from emp where dept = "Shoe"} Even more examples: select name from emp where sal > max {select sal from emp where dept = "Shoe"} *** select name sal - avg {select sal from emp where dept = "Shoe"} from emp where dept = "Shoe" Still more examples: select item from supply where supplier = "Levi" inter select item from sales where dept = "Men" *** sum {select vol from sales where item = {select item from class where type = "A"} & dept = {select dept from loc where floor = 2}} Final examples: sum {select vol from sales where sales.item = class.item & class.type = "A" & sales.dept = loc.dept & loc.floor = 2} *** select x.name y.name from x:emp y:emp where x.mgr = y.emp_no & x.sal > y.sal ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved