Home

CISIS Formatting Language

image

Contents

1. MFN Master file number PAHO Pan American Health Organization VI CISIS Formatting Language Abbreviations used STW STop Word file UNESCO United Nations Educational Scientific and Cultural Organization URL Universal Resource Locator VII How to use this manual This manual is organized in alphabetic order of command or function It has also listed the names associated to each command or function in order to help user in the location of desired topics Each command function has all information about its use described in a table format containing syntax and samples The document is complemented by a glossary a list of abbreviations and the bibliographic references to relevant documents VIII Preface About BIREME Year after year BIREME has been following its mission of being a center dedicated to scientific and technical health information for the region of Latin America and the Caribbean Founded in Brazil in 1967 under the name of Regional Medicine Library which the acronym BIREME comes from it has always met the growing demand for up to date scientific literature from the Brazilian health systems and the communities of healthcare researchers professionals and students Then in 1982 its name changed to Latin American and Caribbean Center on Health Sciences Information so as to better express its dedication to the strengthening and expansion of the flow of scientific and technical health inf
2. subfield is not present no output is generated 27 CISIS Formatting Language vV occurrence extraction indent Notes Examples val string Support Function type Syntax Definition Commands and Functions field selector Narrows the output to one or a range of occurrences of a repeatable field lt index gt and lt upper index gt refer to the first or unique and last occurrences respectively If the specified lt index gt is greater than the actual number of occurrences no output is generated The same occurs if data field is not repeatable and lt index gt is set to a number equal or greater than 2 However if lt index gt is set to 1 and it is used in a non repeatable field content is normally output This component must be used outside a repeatable group otherwise lt upper index gt is ignored If double dot is used and lt upper index gt is missing LAST is assumed The LAST keyword is set with the value of total occurrences of a data field Extracts partial content of a data field subfield or occurrence lt offset int gt is the first position to start extraction while lt length int gt determines how many characters will be extracted If lt length int gt is omitted or is greater than field length the default is the end of data field Aligns the output of data field subfield occurrence or extracted content according to lt first line int gt alignment for the first line and lt next
3. CISIS Formatting Language newline string Syntax Definition Notes Examples See also nocc field Support Function type Syntax Definition Notes Examples See also not present See npost key npost inverted file key Support Function type Syntax Definition Examples See also Commands and Functions set newline newline lt format gt Sets and or resets default CR LF pair with character s from resulting lt format gt lt format gt may even contain reserved escape sequences such as r carriage return n line feed Subsequent commands will be automatically replaced by resulting format until a newline sets a new character or string 1 newline if vi5l unix then n else An fi 2 newline v300 3 newline lt BR gt conditional newline unconditional newline number of occurrences CISIS Numeric nocc lt field selector gt Returns the number of occurrences of a data field or subfield defined by lt field selector gt lt field selector gt means only field and subfield in this function scope All other field selector components if used issue a syntax error 1 ifnocc v3 gt 10 then Too many occurrences fi 2 There are f nocc v20 2 0 authors iocc function v field selector n key postings CISIS Numeric npost lt format key gt npost lt format gt lt format key gt Returns the total postings for a ke
4. dare kSYWOTO suso cid a Sd 11 display TIO coi A dd 12 dummy Trias cis E ii 12 IS E ET A A A E ra td NO 12 environment Variable Set a cde sce ceoos eee natas ani cnsibes ri pisa nessa vis denied camera dai a 12 RR RAS RR Seay ue agus RR RR RR AR RD RREO RSRS CPR RES PDR RR O RSRS PR 12 f num expr length decimals tl dl eie dia e nb E a ac a 12 field SGlECLON ss casas tera tices eas See tens vases casa cri Lcd tear aout ede nao a co Ea Dadas 13 field updaten erei dba 13 A S E E E A neh a 13 format Valle a ae ac E T 13 e EE E E a 13 ISC EXPTESSIO orini essi uss cit A aerate E A A AS 13 ollo do fe 14 LA CMON ao EA y RR UU RR DR RD RR 14 include format MM ar 14 HIS SEA LSO nada 14 OCO asas eee etna ied ne dl E ies padi a Wan A ER E 14 ar e PEE O E E E es seh aa RD Cr RAN a o OS 15 AN 15 KOVADOSEINOS ia ios 15 A O la am 15 Los Patna tats rs Lasarte 15 I key I inverted bel Rey e toasts Toa se ad ie Set oui pe sl panda ae rus ta 15 left String length ereite assine dens ontissaaievwenes A ea 16 IWOUM DOI POR e RA SRD PRA SERIE RPPS RIR qu RR RREO RS OR E UR PR 16 Mises A RS i ate ce tad RS A A ON 16 Master THE NAME cueserasss eea ki astra a 16 maximum value of EXPRESSION casacos A das 16 midi mdu mhl MAG mpl MPU steals A OS ASA AAA 16 mfn mintlength secas dscccsdseadev sorties ds 17 mid string start LENA in O ide 17 minimum value of EXPRESSION assess ans ss AT ONS HOS AS oe Tet 18 MODE ee eich de MAN atic sin e a veered 18 MISINA
5. line int gt alignment for successive lines Both values are numeric constants If current line position differs from zero indentantion is disabled The behavior of the field command depends on the component s used No output is generated when data field is absent or when component performs a restriction or extraction that is out of data boundary 1 v2 w3 al vY v1 n 0 3 v379 v20 4 v10 2 71 vo 3 equals to w5 3 LAST v1 LASTI 2 7 v165 5 9 Title v1 n 5 5 string conditional literal d dummy field selector n not present string repeatable conditional literal format repeatable group AN AO A UU N string to value Standard Numeric val lt format gt Returns the numeric value of the argument generated by lt format gt 28 CISIS Formatting Language val string Notes Examples X x Support Syntax Definition Notes Examples See also Commands and Functions string to value If lt format gt produces only non numeric characters function returns zero If more than one numeric value is encountered only the first one is returned 1 ifval v2 gt 5 then Error else OK fi 2 f val v2 3 4 2 spacing Standard x lt int gt Inserts the number of spaces defined by lt int gt before the next block of formatting language specifications is output If lt int gt is greater than the available space in the current line it
6. 1 f ravr s v8 x1 v1 3 0 21 CISIS Formatting Language Commands and Functions ravr string average value of expression 2 f ravr v1 x1 v2 5 2 3 f ravr 8 15 16 73 3 2 4 ifravr v20 gt 5 then pass else fail fi See also rmin function rmax function rsum function record number See m n m n function ref m n format ref master file mfn format record reference link Support Standard CISIS Function type String Syntax ref lt expr gt lt format gt ref lt format dbname gt lt expr gt lt format gt Definition Executes lt format gt with the record selected by lt expr gt If lt format dbname gt is set another or the same database can be referenced and a different record is selected Notes lt expr gt can be any format returning the MFN of a record 1 function can be used to perform a seek and return the MFN Examples 1 ref v3 v1 v2 v3 2 ifref account Il user v2 v4 active then Name v10 fi 3 if p v99 then ref v99 1 v30 fi See also 1 function repeatable conditional literal See string repeatable group See format replace string string2 string3 replace Support CISIS Function type String Syntax replace lt format 1 gt lt format 2 gt lt format3 Definition Returns a new string after replacing lt format 2 gt with lt format 3 gt Notes If lt format 2 gt is a null string or is not found in lt format 1 function retu
7. BIREME PAHO WHO Latin American and Caribbean Center on Health Sciences Information CISIS Formatting Language Version 3 x Sao Paulo 2002 2006 Copyright O 2002 2006 BIREME PAHO WHO CISIS Formatting Language Permission is granted to copy distribute and or modify this document under the terms of the GNU Free Documentation License Version 1 2 or any later version published by the Free Software Foundation with no Invariant Sections no Front Cover Texts and no Back Cover Texts A copy of the license is included in the section entitled GNU Free Documentation License Card catalog BIREME PAHO WHO Brazil CISIS Formatting Language BIREME org S o Paulo BIREME PAHO WHO 2002 2006 41 p 1 User manual 2 Information access 3 Information systems 4 Information management 5 Public health 6 Public Health services BIREME Il Title Warning Any mention in this document to companies institutions persons or products are not an endorsement or recommendation given by BIREME PAHO WHO thus it does not mean a preference to a similar one cited or not BIREME PAHO WHO Latin American and Caribbean Center on Health Sciences Information Rua Botucatu 862 V Clementino This document was produced with the Documents Conformation Methodology NorDoc developed by BIREME Table of contents Abbreviations USE sspascansnsiss EA bende vou Div veda Vi How to use this Manual
8. Dummy field selector does not return a value Known bugs When in a repeatable group lt subfield gt is evaluated only for the first occurrence of data field Examples 1 this text outputs if data field 10 exists d10 2 Name v20 5 5 Name n20 v21 5 5 See also string conditional literal n not present v field selector date date keyword current date Support CISIS Function type String Syntax date date lt keyword gt 11 CISIS Formatting Language Commands and Functions date date keyword current date Definition Outputs current system date Used without parameters returns yyyymmdd hhmmss w nnn where aaaa year mm month dd day hh hour mm minute ss second w day of the week 0 6 nnn number of elapsed days from J an 1 Components keywords DATETIME and DATEONLY Notes DATETIME shows system date in european format plus current time dd mm yy hh mm ss while DATEONLY displays the same output without time information Examples 1 Today is date 2 Current date date DATEONLY Current time mid date DATETIME 10 8 display file See cat function dummy field selector See d E environment variable set See putenv function F f num expr length decimals format value Support Standard Function type String Syntax f lt format gt lt expr 1 gt lt expr 2 gt CISIS Formatting Language Commands and Functions f num expr length decimals format value Definition Convert
9. Examples A a field selector Support Function type Syntax Definition Notes Examples See also Commands and Functions comment 1 this is a single line comment 2 this comment begins here and ends here 3 ifa v10 and p v20 then v20 fi include format file CISIS lt filename gt Includes a format specification stored in a file in the current format lt filename gt may include drive and path information Syntax of commands from the included file is evaluated when current format is executed It is mandatory to separate lt filename gt with commas 1 test pft v20 2 s c temp test pft v3 3 ifv1 L then large pft fi absence check Standard Boolean a lt field selector gt Returns TRUE if data field is absent otherwise returns FALSE All components of field selector may be used except indent 1 ifa vD then v13 else v12 fi 2 ifa v20 b and p v30 then v40 fi p function v field selector average value of expression See ravr function CISIS Formatting Language break Support Syntax Definition Notes Examples See also C c Support Syntax Definition Examples See also cat file Support Function type Syntax Definition Examples See also comment See conditional literal Commands and Functions conditional branching quitting CISIS break Breaks the execution of a repeatable group format When outside
10. M CG seecsiawle creek eakadigegeusest A ii 18 O 18 MA wemnn dena elen tweens pancreas ioe O a OEA 18 NEWIIME SEPING cross sa die essi des des chaswucve dei ea adi 18 o ss O eta even 19 O 19 npost key npost inverted filel key oooooooococcoccconconccnncnncnnnnrnnarnnrnnnrnn rra 19 number OF OCCURPCNCES ni ra Arce On CE 20 Oia nace lic ai cis 20 OCCURRED SE E SE a A cas E cual Ss 20 PA A A A da adaga sura arce 20 pifield Selector miesi era n niaawn dare wma Sida sodanbhases aE iai char canbe 20 proc field update TO Ma or PEO Nes TESE Id 20 PULENV EXPreSsiONn iii o EEE EEE seara siga suada 21 O 21 PIS A ala Betas eS 21 CISIS Formatting Language Table of contents FECOMGMIMMB Gl cional 22 ref mfn format ref master file mfn format cece eee eeee estate eeee sean eeenee ens 22 repeatable conditional literal A das maewecaees 22 repeatable OD arca sE tie encase E aC aaa LM asd ai Logan Eno 22 replace string1l string2 string3 dane essa ssuginvasee itive pda Saida a OO Ver aa pda 22 reset blank line css ci edsenguseawes ien beat Cor aa dana nadas Edna Dna nO pa nn oes ua US asa 23 FIQNECSEFING SAA tices cau setee ce pes RODE A RENA poe LAGE pedradas 23 ERG SEN INO cae se ue riso MS A A SN IO cc ae 23 IU iii ii ald DACs Seva shaw ia 23 A secos cana O RA 24 SA A AI AS AR E A ANO 24 o A sabio tue cos Di Sedation a gs E ae betel e TEN 24 select case elsecase endsel iis entaclin decr nas dE eai de mauuii
11. a repeatable group quits the execution of the current format The execution resumes after the end of the repeatable group When used inside a ref function execution continues with the format after the function 1 ifiocc gt 10 then 10 occurrences break else v5 n v5 s fi format repeatable group column Standard c lt int gt Skips to the specified column in the current or next line 1 Name c10 v1 n 2 if p v1 s then cl0 v1 s fi x spacing dump file CISIS String cat lt format gt Outputs the contents of a file whose name is generated by lt format gt 1 mfn cat myfile html 2 cat current document if v10 c then firstdoc txt else default doc fi 3 cat v101 s expression string 10 CISIS Formatting Language Commands and Functions See string conditional newline See continue repeatable conditional branching Support CISIS Syntax continue Definition Executes the next occurrence of a repeatable group if at least one data field has a subsequent occurrence Notes Examples 1 ifiocc 1then continue else v10 fi 2 f iocc 1 0 v70 continue See also format repeatable group current date See date date function D d dummy field selector Support Standard Syntax d lt field tag gt lt subfield gt Definition Outputs the conditional literal prefix if a data field or subfield exists Used in conjunction with conditional literals Notes
12. ax Definition Notes Commands and Functions repeatable conditional literal Prefix and suffix literals can be used together including with lt gt operator If a prefix or suffix literal is used with lt gt outside a repeatable group literal contents may not be output as desired If field is not repeatable literal output occurs for the first and only occurrence of data field 1 v1 s v1 n 0 1 2 v10 viL v12 string conditional literal string unconditional literal format repeatable group v field selector repeatable group Standard lt format gt Applies the format between the parenthesis to all occurrences of repeatable field s individually or only once if no repeatable field is present Repeatable groups cannot be nested 1 4v2 s 2 v1 c15 v2 c35 v3 3 fiocc lt 3 then f iocc 1 0 v3 else gt more than 3 fi string repeatable conditional literal v field selector conditional newline Standard Begins a new line if not at the beginning of a line Several conditional newline commands have the same effect of a single one 1 vY 2 vi v3 v10 mfn 3 s v1 v3 v10 unconditional newline reset blank line comment CISIS lt comment gt Encapsulates a comment Comments can span over several lines CISIS Formatting Language string Examples Support Syntax Definition Notes
13. cassia iss sosssa inni ra aa a o sd Ida cad Vill POCO iii A a RD A SAR ERP PAR TERRE 1 About BIREME e asno EE Ea AN deere a Sd DUO dedo A Ra a eee tenes cast 1 The Virtual Health Library VHL a a A AS O AS AAA 2 Structure of Reference LISting ii A A E AAA 5 Commands and Functions iii ci dada 6 a NN O eas RSRSRS UOL ER E RO OR aves Roh satel a salen Gy Yuh aka Sant 6 PEE sake UR A E GU eat Math Rin RE e tea le Cat a wa LN inn 6 Scie tt ap A Rc Da E ad tela ac en tl bie as AAN 6 POLLINA sina carai echoes a lA Ce bec a e dente 6 SENG sexe suesed rans REE RE Ia AD Tas Da CT LA ARE tor meia 7 SEF UNO eei i oda cis den ana da capacidades eae nas ai ote dev dad id aa dad a anne 7 CE OD INVA ma A dl RIA RM ad ct 8 assa io arar A SE AD A ALAS o LOTA needed te uh outing 8 y coi seara nt A uli nesta Ren Sr Macc RES 8 OPETE ie A at dd o dot crete ld aora e do 9 Ni eae ott Saga NR AROS Pera todos 9 EE xd ccs is ENE DSL DS died dea MUS ESA Wowie Nel E aa 9 average value of expression cecce vee de dada ce Pees see Dans SSD teed deve sa ES Egas ees 9 O RA 10 DA AS Mod bia tale aaah bain Paton 10 Gs teas aiii a OT 10 Canna te ae wa ee RA ote idee O Et ae OA DD Ra td a e CA nae A 10 CALMO ass cus ce Bia ta Oho DL NEO AER saite 10 conditional literale ca 10 conditional Nem Ines aaa e O E EEE 11 CONE AS A a A See E a T A A a Ea 11 CUrT nt A 11 CISIS Formatting Language Table of contents a AE ES wi Amatencns TTE Maghee less ole 11 date
14. ch includes the cooperation and convergence between institutions systems networks and initiatives of producers intermediaries and users in the operation of networks of local national regional and international information sources favoring open and universal access Today every country in Latin America and the Caribbean Region participates either directly or indirectly in the cooperative products and services offered by the VHL which includes over 1 000 institutions in more than 30 countries The VHL is simulated in a virtual space of the internet formed by a collection or network of health information sources in the Region Users of different levels and locations can interact and navigate in the space of one or many information sources regardless of where they are Information sources are generated updated stored and operated on the internet by producers integrators and intermediaries in a decentralized manner following common methodologies for their integration in the VHL The VHL organizes information in a structure that integrates and interconnects reference databases specialist directories events and institutions a catalogue of the information resources available on the internet collections of full texts with a highlight for the SciELO Scientific Electronic Library Online collection of scientific journals selective information dissemination services information sources to support education and decision making news d
15. ction usage Lists related commands and functions Commands and Functions H mii p O H Support Standard Syntax Definition Begins a newline unconditionally Examples 1 address v3 9 9 H 2 Name v1 n c20 Surmame v1 s See also conditional newline reset blank line Support Standard Syntax Definition Resets all previous blank lines if any Examples 1 Name v1 n c20 Surname v1 s HH 2 vi10 v20 v30 See also conditional newline unconditional newline string Support Standard unconditional newline reset blank line conditional literal CISIS Formatting Language string Syntax Definition Notes Examples See also string Support Syntax Definition Notes Examples See also string Support Syntax Definition Commands and Functions conditional literal lt text gt lt field selector gt lt text gt lt text gt lt dummy field selector gt lt text gt lt not present gt Outputs the text between the quotes only if lt field selector gt lt dummy field selector gt or lt not present gt evaluates to TRUE Both prefix and suffix literals can be placed together when using lt field selector gt and data field content is also output If combined with lt dummy field selector gt output is generated if data field is present If combined with lt not present gt outputs only if data fi
16. ds The following commands are available d deletes all present fields d lt field tag gt deletes all occurrences of lt field tag gt d lt field tag gt lt occ gt deletes occurrence lt occ gt of lt field tag gt a lt field tag gt lt string gt adds lt string gt as a new occurrence of lt field tag gt h lt field tag gt lt n gt lt string gt adds lt string gt lt n gt bytes long as anew occurrence of lt field tag gt The delimiter may be any non numeric character A space must be provided between the lt field tag gt n gt and lt string gt parameters of the h command Examples 1 proc d70 al0 v70 2 proc if v24 0 4 Tech then d fi putenv expression environment variable set Support CISIS Function type String Syntax putenv lt format gt Definition Sets an environment variable at the operating system level with its corresponding value Notes The variable is available only within the scope of current process Examples 1 putenv TEST test getenv TEST 2 set CIPAR somefile set mx null pft putenv CIPAR another getenv CIPAR set See also getenv function R ravr string average value of expression Support Standard Function type Numeric Syntax ravr lt format gt Definition Returns the average value of a given format lt format gt must generate a string expression Notes Can be used to compute the average of numeric values in repeatable fields Examples
17. dtentuaward dass mdo a 25 set MME WIEN os atrasar otimas Nara pena E E ree ao tended ic aa Achat 25 Size SUING sas Si SC bi etka Gin Manel tit ad 25 SPACING kn orinni eenia EE TERES nanda dee nd E aE aA aE 26 SO EEEN P EEE ET E A A A A E sages 26 Strings Zerine a o o ee EE 26 string to A ae n a a ia E nada pese a EDA 26 SUING ype a Na 26 Von a al AAE E E E E E EE 26 Sum Of EXPres ON enor i ae aE uel EE a a a a a ttt 26 SY SECINIVEX ORE a dr iria cada a en ifs 26 E E E E E T E T E E E TE 26 A e ton E Ea A a A ten 26 A E R AEE EEEE E EEA EETA Aa EEEE DATT TTA EE EEOAE TE AE EEE 27 unconditional Mr ieper tieer eian A a cede 27 unconditr nal Newline A i emo a hears trees a Read Wen SS 27 Ma E A E A EE 27 A Val a RA e e RIR OP E eae A oes Saks ey a RREO a a eda 27 Val String O OS AAA A NA AA 28 sions PARE RR o PDR RR Pewee RR abe pag palace OR UR Touseges Meeeatedyenaewe se 29 A CRE Tones angie EDER ERR SED NERI RREO CRI EPL DR 29 Bibliographic references aiii nee inant ere viene ew teem 30 GIG SSA O 31 Abbreviations used ANSI American National Standards Institute ASCII American Standard Code for Information Interchange BIREME Latin American and Caribbean Center on Health Sciences Information BVS Biblioteca Virtual em Saude see VHL CGI Common Gateway Interface FST Field Selection Table HTML HyperText Markup Language HTTP HyperText Transfer Protocol ISO International Organization for Standardization
18. ealth information in Brazil and in other Latin American and Caribbean countries as a key condition for the development of health including its planning management promotion research education and care The agreement that supports BIREME is renewed every five years by the members of the National Advisory Committee of the institution PAHO Brazilian Ministry of Health Brazilian Ministry of Education and Culture Secretary of Health of the State of Sao Paulo and Federal University of Sao Paulo Unifesp The latter provides the physical infrastructure necessary for the establishment of the institution In 2004 the institution took on the responsibility of becoming a knowledge based institution The Virtual Health Library VHL With the rise and consolidation of the internet as the prevailing means of access to information and communication BIREME s technical cooperation model evolved CISIS Formatting Language Preface as of 1998 to build and develop the Virtual Health Library VHL as a common space for the convergence of the cooperative work of producers intermediaries and users of information The VHL promotes the development of a network of sources of scientific and technical information with universal access on the internet For the first time there has been a real possibility of equal access to health information To BIREME the Virtual Health Library is a model for the management of information and knowledge whi
19. eatable field Examples 1 f rmax 72 54 29 2 0 2 f rmax vixLv4 x1 v8 9 2 3 ifrmax v40 gt val v41 then Limit of v41 exceeded fi See also rmin function ravr function rsum function rmin string minimum value of expression Support Standard Function type Numeric Syntax rmin lt format gt 23 CISIS Formatting Language rmin string Definition Notes Examples See also rsum string Support Function type Syntax Definition Notes Examples See also S s expression Support Function type Syntax Definition Components extraction Notes Commands and Functions minimum value of expression Returns the minimum value of a given format lt format gt must generate a string expression Similar to rmax function rmin can compute the minimum of numeric values in a repeatable field 1 f rmin 10 2 5 4 29 2 0 2 f rmin v1Lx1v2 x1 44 4 2 3 ifrmin v80 v90 v100 lt 1990 then Wrong decade fi rmax function ravr function rsum function sum of expression Standard Numeric rsum lt format gt Returns the sum of a given format lt format gt must generate a string expression Similar to rmax and rmin functions rsum computes the sum of numeric values in a repeatable field 1 f rsum 102 45 37 2 0 2 f rsum v1x1v3 x1Lf val v8 2 4 2 3 ifrsum v20d gt 1000 then Aborted else OK fi rmax function ravr function rmin functio
20. ed to store a specific subject See Database Subfield Element that contains the tyniest piece of information in a field whose meaning may be unclear if it is not analysed outside the scope of a group of elements 32 CISIS Formatting Language Glossary m UNISIST Intergovernmental program designed to foster cooperation in the field of scientific and technological knowledge URL Standard defined for the addressing of data contents via the TCP IP protocol Internet browsers use the URL to access Web pages 33
21. eld is absent lt text gt is produced only once independing on repeatable fields 1 Author v1 a 2 this text outputs if data field 10 is present d10 3 this text outputs if data field 10 is absent n5 string unconditional literal string repeatable conditional literal d dummy field selector n not present v field selector unconditional literal Standard lt text gt Unconditionally outputs the text contained between a single quotes pair Unconditional literals may be placed anywhere in a format and can be passed as parameters to functions 1 this text will always output 2 Name v1 string conditional literal string repeatable conditional literal repeatable conditional literal Standard lt text gt lt gt lt field selector gt lt gt lt text gt Outputs the text between the vertical bars for each occurrence of a repeatable field only if field selector evaluates to TRUE Combined with a repeatable field command behavior can be extended by using the lt gt operator When lt gt is present the first prefix literal and or the last suffix literal is not output e g vD prefix literal v1 suffix literal CISIS Formatting Language string Notes Examples See also format Support Syntax Definition Notes Examples See also Support Syntax Definition Notes Examples string Support Synt
22. format 2 gt fi Definition Executes a block of formatting language specifications lt format 1 gt if lt bool expr gt evaluates to TRUE Allows the execution of another block of formatting language specifications lt format 2 gt by using the clause else when lt bool expr gt evaluates to FALSE Notes Clause then precedes the first block of formatting language specifications else is optional and if present in the code must be followed by a format The fi clause must always end the command scope and if missing a syntax error is issued The if fi command can span over several lines therefore it is recommended the use of indentation Examples 1 ifinstr v5 ab gt 0 then v5 fi 2 if p v10 then Title v3 else Alternate title v4 fi include format file See instr string1 string2 find string Support CISIS Function type Numeric Syntax instr lt format 1 gt lt format 2 gt Definition Returns a number specifying the starting position of the string generated by lt format 2 gt found in string settled by lt format 1 gt If there is no match return value is zero Notes Both lt format 1 gt and lt format 2 gt must generate strings otherwise a syntax error occurs The use of s function may help in cases where a complex string is required as parameter Examples 1 ifinstr v5 ab gt 0 then v5 fi 2 ifinstr s v1 v5 gt 0 then v1 fi 3 left v18 instr v18 1 iocc occurrence i
23. iscussion lists and support to virtual communities The space of the VHL is therefore a dynamic and decentralized network of information sources based on which it is possible to retrieve and extract information and knowledge to support health decision making processes CISIS Formatting Language Preface The Virtual Health Library can be visualized as a distributed base of scientific and technical health knowledge that is saved organized and stored in electronic format in the countries of the Region universally accessible on the internet and compatible with international databases Structure of Reference Listing lt format specification gt lt name gt Support Function type Syntax Definition Components Notes Examples See also If Standard means that command function has the same usage result both in ISIS and CISIS If CISIS is specified means that it is available only in CISIS Functions that are enhanced in CISIS are presented with Standard CISIS notation item always present Displays the data type of a function return value Possible values are boolean string and numeric item only applicable to functions Formal notation of a command function usage item always present Explanation of a command function usage Explains additional features of a command function Elucidates particularities restrictions and or differences between ISIS and CISIS 1 Lists one or more examples of command fun
24. le output from the command is sent directly to the standard output Examples 1 system dir 7 type string Support 2 if p v2 then system type v2 fi string type CISIS 26 CISIS Formatting Language Commands and Functions type string string type Function type String Syntax type lt format gt Definition Returns the string type as follows A if string contains only alphabetic characters according to a default alphabetic character table like ISISAC TAB or space N if string contains only numeric characters 0 9 X for all other cases Notes Format must generate a string or a syntax error is issued Examples 1 iftype v1 N then f val v1 3 2 else v1 fi 2 if s type v1 type v2 type v3 lt AAA then Invalid character type detected fi U unconditional literal See string unconditional newline See H V Vv field selector Support Standard Syntax v lt field tag gt command components Definition Outputs data field contents Content can be selected restricted narrowed extracted or indented by using command components see below v stands for variable length field Components subfield occurence extraction and indent syntactic order lt subfield id gt lt index gt lt upper index gt lt offset int gt dength int gt lt first line int gt lt next line int gt subfield Restricts the output to the contents of a subfield If data field exists but
25. n string Standard String s lt format gt command component Returns the concatenation of string expressions generated by lt format gt extraction Extracts partial content of the resulting string lt offset int gt is the first position to start extraction while lt length int gt determines how many characters will be extracted If length int gt is omitted or is greater than the resulting string the default is the end of the resulting string Can be passed to functions that require a string expression as parameter 24 CISIS Formatting Language s expression Examples See also select case elsecase endsel Support Syntax Definition Notes Examples See also set line width See size string Support Function type Syntax Definition Notes Examples Commands and Functions string 1 ifs vlv2 v3 ABCDE then s v1 v2 v3 0 50 fi 2 if s v5 sC E then English fi v field selector conditional branch control CISIS select lt format expr gt case lt option 1 gt lt format 1 gt case lt option 2 gt lt format 2 gt case lt option n gt lt format n gt elsecase lt format 0 gt endsel Evaluates lt format expr gt and compares the result to each case option lt option 1 gt lt option 2 gt lt option n gt If an option matches lt format expr gt the appropriate block of formatting language specifications is executed lt format 1 gt lt f
26. ndex Support CISIS Function type Numeric Syntax iocc M CISIS Formatting Language iocc Definition Examples See also K key lookup See key postings See keyword See L Commands and Functions occurrence index Returns the occurrence index number starting from 1 otherwise returns Zero 1 Author v1 ifiocc gt 3 then et all break fi 2 f iocc 3 0 v10 nocc function l function npost function v date date function 1 key 1 inverted file key key lookup Support Function type Syntax Definition Notes Examples Standard CISIS Numeric 1 lt format key gt 1 lt format ifname gt lt format key gt Returns the MEN of the first posting if any by using the key generated by lt format key gt to search the current inverted file It can also seek in a specific inverted file defined by lt format ifname gt Keys are converted to upper case before the expression is seek Default display mode used by lookup is mpl If a different mode is specified in the FST file key must also use the appropriate mode If key is not found function returns zero The lt format ifname gt parameter must evaluate to a string having a valid inverted file name otherwise a syntax error is issued This is often used in conjunction with ref function to allow output of data fields from a different record 1 ifl v15 lt 0 then Term v15 fi 2 ref 1 books v1 v2
27. ns a new string containing a specified number of characters from the original string lt format 1 gt lt format 3 gt gives the actual number of characters to be read from lt format 1 gt and lt format 2 gt gives the start position in string where extraction begins 17 CISIS Formatting Language Commands and Functions mid string start length substring Notes If lt format 2 gt is greater than lt format 1 gt size function returns a NULL string If lt format 2 gt is zero or is set to a negative number default is 1 Examples 1 mid v2 2 80 2 mid vlinstr v1 key size vD See also right function left function minimum value of expression See rmin function mode See m mstname master file name Support CISIS Function type String Syntax mstname Definition Returns the current master filename Examples 1 Current database mstname 2 ref names I names X39B 9 Database now is mstname n not present dummy field selector Support Standard Syntax n lt field tag gt Definition Tests the absence of a data field Used in conjunction with conditional literals Notes As a dummy field selector it does not retum a value Examples 1 this text outputs if data field 10 is absent n10 2 Author v10 Author n10 v20 See also string conditional literal d dummy field selector v field selector newline string set newline Support CISIS Function type String
28. on of a catalog or bibliographic index Browser Internet page navigator such as Internet Explorer and Netscape Navigator CDS ISIS MicrolSIS Software program developed and maintained by UNESCO to manage bibliographic data 31 CISIS Formatting Language Glossary CGI The Common Gateway Interface is a standard for interfacing external applications with information servers such as HTTP or Web servers Database Collection of data that are structured to be easily accessed and handled It is formed by units called records whose attributes are represented by fields For example ina file called customer base each customer is a record with several fields such as NAME CUSTOMER CODE TELEPHONE etc Field Record element that provides storage of specific information See Database File In computing a set of data that may be saved into some type of storing device The data files are created by applications such as a text processor for example ISO Format of files Standard established by the ISO to allow the exchange of data between institutions networks and users LILACS Format A bibliographic description format established by BIREME based on the UNISIST Reference Manual for Machine readable Bibliographic Descriptions Posting It is the address of a key extracted from the master file Presentation format Set of commands that defines the data output of an ISIS database Record Set of structured data aim
29. ormat 2 gt lt format n gt otherwise elsecaseclause if defined is executed format 0 lt format expr gt must generate a string or numeric value If lt format expr gt evaluates to string all option values in case clauses must be of string type otherwise if lt format expr gt is numeric option values must be also numeric 1 select s v5 case 1 f val v5 2 2 2 case 2 vo case 3 v6 v1 elsecase Error in field v5 v5 endsel 2 select nocc v7 case 0 absent case 1 one occurrence case 2 two occurrences elsecase more than 2 occurrences endsel if then else fi lw function string size CISIS Numeric size lt format gt Returns the string size lt format gt must return a string or a syntax error occurs 1 ifsize v10 gt 76 then Iw 254 fi 25 CISIS Formatting Language Commands and Functions size string string size 2 f size v10 v20 1 0 spacing See X string See s function string size See size function string to value See val function string type See type function substring See mid function sum of expression See rsum function system expression system call Support CISIS Function type String Syntax system lt format gt Definition Executes the argument produced by lt format gt as an operating system command Notes lt format gt must generate a string containing the code to be executed The possib
30. ormation across the region but kept the acronym Networking based on decentralization on the development of local capacities on sharing information resources on developing cooperative products and services on designing common methodologies has always been the foundation of BIREME s technical cooperation work It has been like this that the center established itself as an international model that fosters professional education with managerial and technical information with the adoption of information and communication paradigms that best meet local needs CISIS Formatting Language Preface The main foundations that gave origin and which support the existence of BIREME are following v access to scientific and technical health information is essential for the development of health Y the need to develop the capacity of Latin American and Caribbean countries to operate their sources of scientific technical health information in a cooperative and efficient manner v the need to foster the use and to respond to the demands for scientific technical health information from governments health systems educational and research institutions BIREME as a specialized center of the Pan American Health Organization PAHO World Health Organization WHO coordinates and conducts technical cooperation activities on the management of scientific information and knowledge with the aim of strengthening and expanding the flow of scientific h
31. rmatting Language Commands and Functions mdl mdu mhl mhu mpl mpu mode Notes Default mode is mpl lt mode gt represents the desired mode to be set lt conv gt specifies whether upper case conversion is set Mode may appear several times in a format and its formatting effect is active until a new mode is set lt mode gt can be as follows p proof fields are displayed as they are stored in records h heading control characters and descriptor delimiters are ignored except subfield descriptor which are translated to punctuation d data similar to heading mode appends a full stop at the end of data fields followed by two spaces lt conv gt can be as follows u converts data to upper case 1 leaves data unchanged Examples 1 mpl First author v10 1 2 mpu Second author v10 2 3 mdl Third author v10 3 mfn mfn length record number Support Standard Function type String or numeric Syntax mfn mfn lt int gt Definition Returns the master file number of a record Notes An integer value can be passed as parameter to set the return value size mfn returns the appropriate return type according to the format requirements Examples 1 Record mfn 3 2 ifmfn gt 2 then mfn fi 3 ref mfn 1 v2 See also ref function l function mid string start length substring Support CISIS Function type String Syntax mid lt format 1 gt lt format 2 gt lt format 3 gt Definition Retur
32. rns lt format 1 gt string If lt format 3 gt is null lt format 2 gt string will be excluded from lt format 1 gt replace is case sensitive for both search string lt format 2 gt and replace string lt format 3 gt 22 CISIS Formatting Language Commands and Functions replace string string2 string3 replace Examples 1 replace Mary And John And and 2 ifreplace v1 a 01x 01X 89450 1X then v1 n fi 3 replace s v304 v333 9 4 replace s if v415 spanish then v299 else none fi v1 v759 reset blank line See right string length right substring Support CISIS Function type String Syntax right lt format 1 gt lt format 2 gt Definition Returns a new string containing the rightmost characters of the original string lt format 1 gt lt format 2 gt gives the actual number of characters to be read from lt format 1 gt starting from right to left Notes If lt format 2 gt is greater than lt format 1 gt size function returns lt format 1 gt string If lt format 2 gt is zero or is set to a negative number returns nothing Examples 1 ifright v1 n 1 r then vin fi 2 right v65 4 rmax string maximum value of expression Support Standard Function type Numeric Syntax rmax lt format gt Definition Returns the maximum value of a given format lt format gt must generate a string expression Notes Can be used to compute the maximum of numeric values in a rep
33. s a numeric value to string lt format gt is the numeric expression to be converted lt expr 1 gt and lt expr 2 gt are optional and determine the minimum output length and the number of decimal places respectively Notes If lt format gt is not a valid numeric expression an error is issued If lt expr 2 gt is set lt expr 1 gt must also be placed or a syntax error is issued If only lt expr 1 gt is defined the result is output in scientific exponent notation If the number of characters required to represent lt format gt is greater than lt expr 1 gt additional positions are provided automatically If lt expr 1 gt is missing a width of 16 characters is assumed Examples 1 f val v1 2 2 3 5 2 1 4 2 3 f v2 See also val function field selector See V field update See proc function find string See instr function format value See f function G getenv expression get environment variable Support CISIS Function type String Syntax getenv lt format gt Definition Returns the value of an environment variable Notes If lt format gt does not generate a valid environment variable name no value is returned Examples 1 Current path getenv PATH 2 vil getenv v See also putenv function CISIS Formatting Language Commands and Functions if then else fi conditional flow control Support Standard Syntax if lt bool expr gt then lt format 1 gt else lt
34. skips to the next line 1 Name x5 v1 n 2 vLx3 v2 x8 v3 c column 29 Bibliographic references UNESCO Mini micro CDY ISIS Reference manual version 2 3 Organized by Giampaolo Del Bigio Paris United Nations Educational Scientific and Cultural Organization 1989 286 p ISBN 92 3 102 605 5 BUXTON Andrew HOPKINSON Alan The CDS ISIS for Windows Handbook online Paris United Nations Educational Scientific and Cultural Organization 2001 cited 30 August 2006 164 p Available from internet lt http bvsmodelo bvs br download winisis winisis handbook en pdf gt SUTER Tito Prehistoria e historia del MicroISIS online In Manual para instructores de Winisis Buenos Aires Centro Atomico Constituyentes CAC Comision Nacional de Energia Atomica CNEA 1999 citado el 30 Agosto 2006 p 21 26 Disponible en internet lt http www cnea gov ar cac ci isis isidams htm gt 30 Glossary Application Program used to execute tasks in connection with an application such as the creation or edition of texts drawings animations layout etc E g text processor database manager Internet browser etc Backup Procedure used to duplicate one or more files and or directories in another storing device tape or disc thus producing a backup copy that may be restored in the event of accidental deletion or physical damage to the original data Bibliographic Database Electronic versi
35. v10 CISIS Formatting Language key 1 inverted file key See also left string length Support Function type Syntax Definition Notes Examples See also Iw number Support Function type Syntax Definition Notes Examples M master file name See Commands and Functions key lookup ref function left substring CISIS String left lt format 1 gt lt format 2 gt Returns a new string containing the leftmost characters from of the original string generated by lt format 1 gt lt format 2 gt specifies the actual number of characters to be read from lt format 1 gt starting from left to right If the string generated by lt format 2 gt is greater than the size defined by lt format 1 gt function returns the lt format 1 gt string If lt format 2 gt is zero or is set to a negative number returns a NULL string 1 ifleft vi n 2 Ma then v1 n fi 2 left vlinstr v1 D right function mid function set line width CISIS Numeric Iw lt int gt Sets the output line width to lt int gt characters Output line width default depends on the application program 1 ifsize v10 gt 76 then Iw 254 fi 2 1w 70 v20 Iw 10 v30 mstname function maximum value of expression See rmax function mdl mdu mhl mhu mpl mpu mode Support Standard Syntax m lt mode gt lt conv gt Definition Sets a new displaying mode for the current output 16 CISIS Fo
36. y given by lt format key gt in an inverted file lt format gt if defined must generate a string containing the inverted file name lt format key gt settles the key to be searched in the inverted file 1 ifnpost v1 gt 1 then duplicate key v1 found fi 2 There are f npost v20 3 0 keys for v20 1 function CISIS Formatting Language Commands and Functions number of occurrences See nocc function 0 occurrence index See iocc function p p field selector presence check Support Standard Function type Boolean Syntax p lt field selector gt Definition Returns TRUE if data field is present otherwise returns FALSE Notes All field selector components can be used except indent Examples 1 if p v12 then v12 else v13 fi 2 if p vo0 a and p v50 b then v50 a v50 b fi See also a function v field selector proc field update format field update Support CISIS Function type String Syntax proc lt fldupd format gt Definition Appends or replaces data fields in the current record lt fldupd format gt is a format that generates the field update specific commands to be executed by the function 20 CISIS Formatting Language proc field update format Notes Commands and Functions field update A CISIS field update specification is a string of d delete and a add and h add commands to be applied in the current record All d delete commands must preceed the add comman

Download Pdf Manuals

image

Related Search

Related Contents

10~11ページ  JAG UA R - RJH-Heritage Switzerland  FLEXISTONE®          Conectar la estación base  User manual  

Copyright © All rights reserved.
Failed to retrieve file