Download Data Magician 1.5 Documentation
Transcript
Processing Codes Reference S n-m process only Subfields n to m Description: This code limits the processing of other codes to the "subfields" specified by 'n' and 'm', for the current field only. This is useful if you do not wish to apply some processing to all subfields, just a subset of them. Notes: By default, processing is performed on all subfields. Once the "S n-m" code is encountered, processing is limited just to the subfields specified. Note that the next field processed is not affected by this code. The "-m" is optional. If you only specify "n", only that subfield will be processed (see Example 2). If you specify "n-" (no ending subfield number), then all subfields starting with 'n' will be processed. The "S n-m" code has a special effect on the "F 'fieldname'" and "F fieldnum" codes, in that rather than the whole input field being drawn in, only the subfields specified will be included (see Example 3). This feature can be more easily accomplished with the newer F'fieldname5(n-m)' code. The word “subfield” was misunderstood by the author when The Data Magician was created. It was used to refer to a multiple occurrences of a field, as opposed to a part of a field (as it does in MARC). 1) 2) 3) 4) Examples: 1) Before: Codes: 2) 3) Comments DOGS5ANIMALS5POODLE S 2-3 L P1 After: DOGS5Animals5Poodle put subfields 2-3 in lowercase and capitalize 1st letter Before: Codes: After: Z/22.7/.89/198653/4" tape s 1 s"/" " Z 22.7 .89 198653/4" tape Convert slash to space only on first subfield Input Field "Imprint": Toronto5McGraw-Hill51986 "PUBLISHER" Before: Codes: S2 F"IMPRINT" "PUBLISHER" After: McGraw-Hill We only want to get the publisher name 121