Presentation is loading. Please wait.

Presentation is loading. Please wait.

PICK 1 - An Introduction Course 409. PICK 1 - An Introduction Ken R. Hall, Ph.D. Hyland Technology Group, Inc. Portland, Oregon

Similar presentations


Presentation on theme: "PICK 1 - An Introduction Course 409. PICK 1 - An Introduction Ken R. Hall, Ph.D. Hyland Technology Group, Inc. Portland, Oregon"— Presentation transcript:

1 PICK 1 - An Introduction Course 409

2 PICK 1 - An Introduction Ken R. Hall, Ph.D. Hyland Technology Group, Inc. Portland, Oregon www.hylandtech.com ken.hall@hylandtech.com 503-702-7841

3 Speaker’s Qualifications Ken Hall has over 25 years experience developing applications in PICK, Universe, and Unidata. Ken developed applications for mail order, manufacturing, leasing, publishing, and distribution businesses. Ken was the I.T. Manager & software developer for a major wholesale distributor which used customized SHIMS.

4 Learning Objectives As a result of this presentation, you will: –Increase your understanding of PICK and its architecture –Understand PICK multi-dimensional data storage –Be able to use Universe built-in HELP –Be introduced to tools used to display and edit data –Be able to display dictionaries of data files –See the power of data retrieval using LIST or SORT

5 Presentation Agenda The Multi-Dimensional Structure of PICK –Accounts, VOC, FILEs, DICTs, records, fields, and multi-values PICK programming environment Universe HELP command Displaying PICK data by record ID DICT and DATA records Formatting data output using DICT items Introducing tools to display or modify records –CT, ED, LIST, SORT

6 View of PICK Database Files => Fields => Multiple Values => Records => DICT =>

7 What is unusual about PICK data storage? Data are stored in a hierarchy of elements –Accounts, Files, Records, Fields, Values, etc. PICK is multi-dimensional –Each Value may contain one or more sub- values –Associated fields can store related multi- values –Each of the multi-values can store multiple sub-values

8 A multi-dimensional Order Fields Sets of Multiple Values Multiple Sub-Values 1 2 1 2 3

9 The multi-dimensional structure of PICK and UniVerse PICK’s Hierarchical data structure –A PICK Database contains Accounts –An Account contains Files –A File contains Records –A Record contains Fields or Attributes An SQL data base contains one value per field per record –A Field contains one or more values (multi-values) –Each Value may contain one or more sub-values

10 PICK Programming Environment TCL – the command line Procedure Files – PROC and Paragraphs –Scripts that store repeated procedures and menus BASIC programs – BP and BP.O files –Database aware programming language –Used for Screen display and data entry –Batch processing

11 Files - Dictionaries and Data Files consist of 2 related elements –A data file - e.g. CUSTOMER Stores individual records for each customer –A dictionary file e.g D_CUSTOMER Stores DICT items that define the fields of the CUSTOMER records Both DICT and DATA files have records stored by unique keys or IDs DICT items are used to display and format data records

12 TCL – command line processing To begin TCL processing, type END at menu prompt and password The Universe TCL prompt character “>” appears > Enter “HELP” and hit Enter key to display Universe built in HELP. >HELP

13 Universe HELP + List of entries from SYS.HELP,SYS.HELP + | (... ) | | * | | -CANCEL | | -L | | -LIST | | -SPOOL | | -XREF | |.A | |.C | |.D | |.I | |.L | |.R | |.S | |.U | |.X | | > | | ? | | @ASSOC_ROW | | A | +-----------+ Page Down +----------+ |? | +------------------------------------------+ >HELP

14 Using Help “HELP” by itself yields list of commands –Use Arrow keys to scroll through the list to find command –Use “ESC” key to escape from HELP –“Page UP” or “Page Down” moves through HELP screens –Hit to select highlighted command HELP displays help for that command (as if selected above)

15 Displaying PICK data Use LIST command to list records in File –LIST –Lists records in file in stored order showing ID Use SORT command to list records in sorted order –SORT BY –List records in file sorted by by ID How do you find a ?

16 Listing Files in an Account Use command LISTF to list files in this account –Displays listing to the screen by default >LISTF FILES in your vocabulary 03:27:31pm 01 Oct 2006 Page 1 Filename........................... Pathname...................... Type Modulo DICT &SAVEDLISTS& D_&SAVEDLISTS& 3 1 DATA &SAVEDLISTS& &SAVEDLISTS& 1 DICT ACCUTERMCTRL D_ACCUTERMCTRL 18 3 DATA ACCUTERMCTRL ACCUTERMCTRL 18 3 DICT CUST.SAMPLE D_CUST.SAMPLE 18 1 DATA CUST.SAMPLE CUST.SAMPLE 18 3 DICT CUST.SAMPLE.CTRL D_CUST.SAMP001 18 3 DATA CUST.SAMPLE.CTRL CUST.SAMP001 18 3 DICT CUST.SAMPLE.XREF D_CUST.SAMP000 18 3 DATA CUST.SAMPLE.XREF CUST.SAMP000 18 3 Press any key to continue...

17 End of screen Prompt Responding to: Press any key to continue… –Hit key to go to next screen of data –Hit “Q” key to quit display and go to TCL NOTE: “Q” at TCL logs you OFF the system

18 Field Definitions stored in DICTionary of File LIST DICT to display listing of field definitions for a file LIST DICT (P) sends listing to the default printer

19 List Customer Dictionary >LIST DICT CUSTOMER DICT CUSTOMER 02:44:54pm 01 Oct 2006 Page 1 Field......... Type & Field........ Conversion.. Column......... Output Depth & Name.......... Field. Definition... Code........ Heading........ Format Assoc.. Number CUST.NO A 0 CUSTOMER 6R M NUMBER @ID D 0 CUST.SAMPLE 10L S CITY.STATE.ZIP S 0 A;N(CITY):", CITY/STATE/ZIP 30L M ":N(STATE):" ":N(ZIP) SERVICE.DATE A 1 D2/ SERVICE 8L M DATE NAME A 2 25L M ADDRESS.1 A 3 ADDRESS 25L M LINE ONE ADDRESS.2 A 4 ADDRESS 25L M LINE TWO CITY A 5 15L M STATE A 6 2L M ZIP A 7 ZIP 10L M CODE Press any key to continue...

20 Displaying field data By using field names in LIST or SORT, you can display data in columnar format –LIST CUSTOMER NAME CITY STATE >LIST CUSTOMER NAME CITY STATE LIST CUSTOMER NAME CITY STATE 02:46:58pm 01 Oct 2006 PAGE 1 CUST.SAMPLE NAME..................... CITY........... STATE 1002 Alfreds Futterkiste Berlin GERMA NY 1005 Around the Horn London 1008 Blondel pere et fils Strasbourg 1017 Consolidated Holdings 1011 Bottom-Dollar Markets Tsawassen BC 1014 Centro comercial Moctezum Mexico D.F. a 1020 Du monde entier Nantes 1041 Island Trading 1023 Familia Arquibaldo Sao Paulo SP 1029 Franchi S.p.A. Torino Press any key to continue...

21 Displaying Sorted Data >SORT CUSTOMER WITH COUNTRY "Mexico" "France" BY COUNTRY BY NAME NAME CITY COUNTRY SORT CUSTOMER WITH COUNTRY "Mexico" "France" BY COUNTRY BY NAME NAME CITY COUNTR Y 03:14:37pm 01 Oct 2006 PAGE 1 CUST.SAMPLE NAME..................... CITY........... COUNTRY... 1008 Blondel pere et fils Strasbourg France 1010 Bon app' Marseille France 1020 Du monde entier Nantes France 1025 Folies gourmandes Lille France 1028 France restauration Nantes France 1044 La corne d'abondance Versailles France 1081 Specialites du monde Paris France 1092 Victuailles en stock Lyon France 1093 Vins et alcools Chevalier Reims France 1003 Ana Trujillo Emparedados Mexico D.F. Mexico y helados 1004 Antonio Moreno Taqueria Mexico D.F. Mexico 1014 Centro comercial Moctezum Mexico D.F. Mexico a 1065 Pericles Comidas clasicas Mexico D.F. Mexico 1088 Tortuga Restaurante Mexico D.F. Mexico Press any key to continue...

22 Use “CT” to Display Raw Data CT displays raw data as it is stored >CT CUSTOMER 1008 1008 0001 12290 0002 Blondel pere et fils 0003 24, place Kleber 0004 0005 Strasbourg 0006 0007 67000 0008 88.60.15.31 0009 Frederique Citeaux 0010 0011 0012 0013 France 0014 88.60.15.32 >

23 Use “ED” to Edit Raw Data ED starts the editor that modifies a record in a file –Be very careful using the editor –You can use it to change or delete records –Misuse can corrupt your data or the system –Use “HELP ED” to get preliminary help –In ED use “HELP” to get help –USE “EX” to exit help without filing record

24 Summary You were introduced to PICK, a Multi- dimensional database PICK is made up of Accounts with Files with Records with Fields with Multi-Values TCL, the command line, lets you do ad hoc reports with LIST or SORT Dictionaries define the Fields in a File CT can be used to display raw data ED is available to modify raw data

25 Q & A

26 Thank You! Ken R. Hall, Ph.D. Hyland Technology Group, Inc. www.hylandtech.com ken.hall@hylandtech.com 503-702-7841


Download ppt "PICK 1 - An Introduction Course 409. PICK 1 - An Introduction Ken R. Hall, Ph.D. Hyland Technology Group, Inc. Portland, Oregon"

Similar presentations


Ads by Google