We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byClaire Elliott
Modified over 3 years ago
© 2007 Wolff Information Consulting LLC 1 Why You Should Care About STN ® Script Commands PIUG 2007 Annual Conference Thomas E. Wolff Wolff Information Consulting LLC
© 2007 Wolff Information Consulting LLC 2 Outline Command Files – What, Why, How Simple vs. Scripted Command Files What is STN Script Language Creating/Converting Script Files Script Variables and Statements Script Examples References
© 2007 Wolff Information Consulting LLC 3 Command Files Simple file reg act goodrns/a file hcaplus s l1 s l1/p (notl) l1/dp s l2 (s) catal? s l3 and l4 save l5 catal/a dis l5 tot file stng;d his Scripted =>file reg =>act goodrns/a \>_line1 =>file hcaplus =>s _line1 \>_line2 =>s _line1/p (notl) _line1/dp \>_line3 =>s _line2 (s) catal? \>_line4 =>s _line3 and _line4 \>_line5 =>save _line5 catal/a =>dis _line5 tot =>file stng;d his
© 2007 Wolff Information Consulting LLC 4 Why use Command Files? Work offline/execute online –Save online time –Save online costs – reduce errors by advanced planning –Save online query storage costs Use repeatedly for similar searches, often-used mini-strategies, or SDIs Automate repetitive search or display tasks
© 2007 Wolff Information Consulting LLC 5 Preparing Command Files Use any text editor – save as.txt or.sc file STN Edit: Query…Prepare Command File Notepad, WordPad Kedit (macros) Avoid Word or other word processors that have auto formatting
© 2007 Wolff Information Consulting LLC 6 Running Command Files Scripted – Upload (Ctrl-R), runs automatically Simple – STN Command Window (Ctrl-W), run line-by-line or multiple lines
© 2007 Wolff Information Consulting LLC 7 Command File Functions on STN Express ®
© 2007 Wolff Information Consulting LLC 8 Simple vs. Script Command Files FeatureSimpleScript Programming logicNoneFull featured with functions, variables, operators, etc. User controlRun line-by-line and edit at any time Runs automatically; include commands for user intervention PromptsNone – looks like regular online session => or : L-numbersMust be accurateFlexibility by using variables for L-numbers and corresponding numbers of answers
© 2007 Wolff Information Consulting LLC 9 What is STN Script Language – 1 A Script is a Command File that uses features of the STN Express script language with functions for reading files, repeating STN Messenger commands, and making decisions. STN ExpressSTN Messenger commands LOGIN scripts most common File commands: Capture, Open, Close, Edit, Execute (e.g. a 2 nd script), Upload (structures) Messenger commands preceded by => or : system prompts. Those of non-STN systems to be confirmed. Variables begin with underscore _ and 1-12 characters Use variable L-numbers instead of fixed L-numbers, which are indicated after search statement by \>
© 2007 Wolff Information Consulting LLC 10 What is STN Script Language – 2 Conditional statements, e.g. for display answers, save sets Operators: arithmetic, string, conditionals, L-number, answer count EDIT (\! operator) allows user to modify command before it is sent ECHO commands to display text to user GET keyboard commands during search \ for line continuation (80 char/line; 140 char/stmt) \* for comments
© 2007 Wolff Information Consulting LLC 11 Convert Script Files Create script files using simple L-numbers Convert each L-number to _line# Initial search file reg act goodrns/a file hcaplus s l1 s l1/p (notl) l1/dp s l2 (s) catal? s l3 and l4 save l5 catal/a dis l5 tot file stng;d his Converted script =>file reg =>act goodrns/a \>_line1 =>file hcaplus =>s _line1 \>_line2 =>s _line1/p (notl) _line1/dp \>_line3 =>s _line2 (s) catal? \>_line4 =>s _line3 and _line4 \>_line5 =>save _line5 catal/a =>dis _line5 tot =>file stng;d his
© 2007 Wolff Information Consulting LLC 12 Variable L-Numbers Assign the result of a command to a variable Commands followed by variable name =>s catal? \> _catal =>s enzym? \> _line3 =>act goodans/a \> _line4 =>tra l13 pn apps \> _pats Use variables in search statements =>s _catal (s) polym? \ > _polycat =>s _line3 (s) digestion \> _line6
© 2007 Wolff Information Consulting LLC 13 Convert and Edit Script Files Apply programming logic Provide for user input Initial search file reg act goodrns/a file hcaplus s l1 s l1/p (notl) l1/dp s l2 (s) catal? s l3 and l4 save l5 catal/a dis l5 tot file stng;d his Edited converted script echo Running script catal.sc =>file reg =>act goodrns/a \>_line1 =>file hcaplus =>s _line1 \>_line2 =>s _line1/p (notl) _line1/dp \>_line3 =>s _line2 (s) catal? \>_line4 =>s _line3 and _line4 \>_line5 if (#_line5 > 0) begin =>save _line5 catal/a echo Enter display format: " NOCR get _displayformat =>dis _line5 _displayformat end =>file stng;d his
dis _line5 _displayformat end =>file stng;d his">
© 2007 Wolff Information Consulting LLC 14 Conditional Statements IF [THEN] [ELSE] [BEGIN/END] THEN is optional ELSE provides an alternative set of instructions When IF condition is true, the following statement or BEGIN…END block is executed: –Script language instructions –Instructions to online host –Variable expressions –STN Commands (=> and : prompts)
© 2007 Wolff Information Consulting LLC 15 Answer Count Variable Retrieve the number of answers from an L-number variable Use the # sign, e.g. #_line6 Use IF statements to select further processing Examples =>s _line3 and _line4 and _line8 \> _line9 if (#_line9 0) =>save _line9 goodans/a if (#_line9 > 10) =>dis 1-10 else =>dis tot
© 2007 Wolff Information Consulting LLC 16 Script: Multifile with Select =>file reg =>s ( or or )/rn \>_line1 =>file rapra =>s propylene homopolymer/ct and p/dt and \ up> _line2 =>sel _line2 pn 1- =>file hcaplus =>s e1-e10 \! \>_line3 \* user edits this line* =>s _line1/p and p/dt and up> \>_line4 =>s _line3-_line4 \>_line5 \* alternative: getenums.sc at =>file reg =>s ( or or )/rn \>_line1 =>file rapra =>s propylene homopolymer/ct and p/dt and \ up> _line2 =>sel _line2 pn 1- =>file hcaplus =>s e1-e10 \! \>_line3 \* user edits this line* =>s _line1/p and p/dt and up> \>_line4 =>s _line3-_line4 \>_line5 \* alternative: getenums.sc at
© 2007 Wolff Information Consulting LLC 17 History: Multifile with Select FILE 'REGISTRY' ENTERED L41 3 S ( OR OR )/RN FILE RAPRA' ENTERED L42 34 S PROPYLENE HOMOPOLYMER/CT AND P/DT AND UP> SEL L42 PN 1- Initial -> FILE 'HCAPLUS' ENTERED L43 42 S E209-E312 Completed -> L44 20 S L41/P AND P/DT AND UP> L45 62 S L43-L44
© 2007 Wolff Information Consulting LLC 18 Script: Bringing Together Multifile Results =>file wpix \* User will be asked to edit each TRA line below =>tra l14 pn.b apps.b / pn apps \! \>_line1 \* from HCAPLUS =>tra l30 pn apps \! \>_line2 \* from IFICDB =>tra l47 os / an \! \>_line3 \* from ENCOMPPAT =>s _line1 or _line2 or _line3 \>_line4 \* dont use _line1-_line3 since L-number are not consecutive in this case \* Combine _line4 with additional wpix results
© 2007 Wolff Information Consulting LLC 19 Script: Query Display Output Script: IF (#_line5 > 0) and (#_line5 < 100) begin echo "What answers do you want to display?: " NOCR get _answerstodisplay echo "" echo "What display format do you want to use?: " NOCR get _displayformat =>dis _line5 _answerstodisplay _displayformat end Session: What answers do you want to display?: 1,2,4 What display format do you want to use?: ti sc st hitrn dis L126 1,2,4 ti sc st hitrn
dis _line5 _answerstodisplay _displayformat end Session: What answers do you want to display?: 1,2,4 What display format do you want to use?: ti sc st hitrn dis L126 1,2,4 ti sc st hitrn">
© 2007 Wolff Information Consulting LLC 20 Script: Display Scan All Answers Script: if (#_line5 = 1) =>dis _line5 scan ti sc st hitrn else if (#_line5 > 1) begin if (#_line5 > 500) begin echo "Answer set _line5 contains #_line5 answers." echo "Do you want to display all in SCAN format? Y/(N):" NOCR get _reply if (substr(_reply,1,1) <> "y") then end _numanswers = #_line5 - 1 =>dis _line5 scan : end Session: If Y, all answers in SCAN format without further prompting
"y") then goto @noscan end _numanswers = #_line5 - 1 =>dis _line5 scan : _numanswers @noscan end Session: If Y, all answers in SCAN format without further prompting">
© 2007 Wolff Information Consulting LLC 21 References STN: Automating Your Search (CAS e-Seminar, August 31, 2004; STN Online Search Tricks - or - Things We Have Forgotten (Kerry G. Stanley; presented at 2006 PIUG Northeast Meeting, October 10, 2006) STN Express Script Language: Appendix B - (http://www.cas.org/ONLINE/STN/701appb.pdf) (detailed description of the script syntax)http://www.cas.org/ONLINE/STN/701appb.pdf Reduce Online Time with Command Files and Scripts (http://www.cas.org/Support/cfiles.html)http://www.cas.org/Support/cfiles.html InfoLit. STN Express Scripts (http://www.infolit.ch/177.html)http://www.infolit.ch/177.html Nutzen Sie SCRIPTE um ihre Recherchen zu organisieren? (C.-D. Siems, international.de/archive/presentations/cominfo04/Bern2004_STN_Scripts.pdf)http://www.stn- international.de/archive/presentations/cominfo04/Bern2004_STN_Scripts.pdf Using scripts to streamline citation analysis on STN International (C. Neuhaus, A. Litscher, and H.-D. Daniel. Scientometrics, 71(1), (2006)) STN Express scripts for citation analysis in SCISEARCH and CAplus (C. Neuhaus and A. Litscher. STN Express - a handy current- awareness tool! (STN News, October 1996) (http://www.cas.org/STNEWS/OCTOBER96/stn.html)http://www.cas.org/STNEWS/OCTOBER96/stn.html STN on the Web Description: Upload Command File (http://tinyurl.com/yw6ule)http://tinyurl.com/yw6ule Customize your transcripts with Transcript Filters! (STN News, January/February 2000) (http://www.cas.org/STNEWS/JANFEB00/expway.html)http://www.cas.org/STNEWS/JANFEB00/expway.html STN Express with Discover! Analysis Edition (Version 7.0 for Windows). User Guide (http://www.cas.org/ONLINE/STN/winug70.pdf)http://www.cas.org/ONLINE/STN/winug70.pdf KEDIT: A Powerful Text Editor for Post-Processing Searches (Thomas E. Wolff, Database, June 1992, pp ; Why Patent Searchers (And Others) Need KEDIT When They Already Have a Word Processor; Or, Post-Processing At the Power Level (Sandra Unger, Database, August 1994, pp ;
© 2007 Wolff Information Consulting LLC 22 Acknowledgments Brian Sweet (Senior Product Manager, CAS) Steve Piehler (Senior Engineer, CAS Software Support ) Andreas Litscher (Swiss representative to FIZ Karlsruhe, Claus-Dieter Siems (FIZ Karlsruhe) Ruth Umfleet (Senior Literature Chemist, Celanese) Kerry Stanley (Senior Searcher, ScienceIP/CAS; transcript filters)
1 Types of selection structures if Single-selection structure Selects or ignores a single action or group of actions if/else Double-selection structure.
A Guide to MySQL 4. 2 Objectives Retrieve data from a database using SQL commands Use compound conditions in queries Use computed columns in queries Use.
1 INSTALLING "WINDOWS 8.." SO THAT IT CREATES A LOCAL USER ACCOUNT.
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 2 Getting Started.
TWO STEP EQUATIONS 1. SOLVE FOR X 3. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE 2. DO THE ADDITION STEP FIRST.
Photo Slideshow Instructions (delete before presenting or this page will show when slideshow loops) 1.Set PowerPoint to work in Outline. View/Normal click.
3 : 00 2 : 59 2 : 58 2 : 57 2 : 56 2 : 55 2 : 54.
Manuscript Central Training Author Center Module 2.
×1= 9 4 1×1= 1 5 8×1= 8 6 7×1= 7 7 8×3= 24.
Microsoft Access 2007 Advanced Level. © Cheltenham Courseware Pty. Ltd. Slide No 2 Forms Customisation.
Myra Shields Training Manager Introduction to OvidSP.
5 minutes 4 minutes 3 minutes 2 : 00 1 : 59 1 : 58.
Outlook 2013 Web App (OWA) User Guide Durham Technical Community College.
Process a Customer Chapter 2. Process a Customer 2-2 Objectives Understand what defines a Customer Learn how to check for an existing Customer Learn how.
Welcome. © 2008 ADP, Inc. 2 Overview A Look at the Web Site Question and Answer Session Agenda.
Chapter 9 Interactive Multimedia Authoring with Flash Introduction to Programming 1.
1 How Do I Order From.decimal? Rev 05/04/09 This instructional training document may be updated at anytime. Please visit and check the.
CALENDAR NEW CALENDAR
PP Test Review Sections 6-1 to 6-6 Mrs. Rivas 1. 2.
Break Time Remaining 10:00. Break Time Remaining 9:59.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
1 NatQuery 3/05 An End-User Perspective On Using NatQuery To Extract Data From ADABAS Presented by Treehouse Software, Inc.
McDonald’s calendar 2009 January
RefWorks: The Basics October 12, What is RefWorks? A personal bibliographic software manager –Manages citations –Creates bibliogaphies Accessible.
13:00 Clock will move after 1 minute PPT – VCIC Timer 15.ppt.
Sample Service Screenshots Enterprise Cloud Service 11.3.
Time for a BREAK! You have 45 Minutes. Time Left 44.
GEtServices Services Training For Suppliers Direct Orders.
1 Chapter 8 Improving the User Interface Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Create an Application Title 1Y - Youth Chapter 5.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 4 Loops.
GEtServices Services Training For Suppliers Requests/Proposals.
2004 EBSCO Publishing Presentation on EBSCOadmin.
State of New Jersey Department of Health and Senior Services Patient Safety Reporting System Module 2 – New Event Entry.
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Subtraction: Adding UP. Category 1 The whole is a multiple of ten.
PEPS Weekly Data Extracts User Guide September 2006.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
Petersons Practice AP Exam Cengage Learning Infotrack Database.
Slide 1 FastFacts Feature Presentation December 13 th, 2007 We are using audio during this session, so please dial in to our conference line… Phone number:
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
We need a common denominator to add these fractions.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
DLMSO Classroom Timer Select a time to count down from the clock above 60 min 45 min 30 min 20 min 15 min 10 min 5 min or less.
Mike Scott University of Texas at Austin Game Making with Alice 1.
Tutorial 1: Sensitivity analysis of an analytical function.
1 © 2006 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID Using the Cisco Technical Support & Documentation Website for Online.
SQL Assignment Yong Choi School of Business CSU, Bakersfield.
© 2017 SlidePlayer.com Inc. All rights reserved.