1YAZ-MARCDUMP(1)                                                YAZ-MARCDUMP(1)
2
3
4

NAME

6       yaz-marcdump - MARC record dump utility
7

SYNOPSIS

9       yaz-marcdump [-i format] [-o format] [-f from] [-t to] [-l spec] [-v]
10                    [-c cfile] [file...]
11

DESCRIPTION

13       yaz-marcdump reads MARC records from one or more files. It parses each
14       record and supports output in line-format, ISO2709, MARCXML,
15       MarcXchange as well as Hex output.
16
17       This utility parses records ISO2709(raw MARC) as well as XML if that is
18       structured as MARCXML/MarcXchange.
19
20       Note
21       As of YAZ 2.1.18, OAI-MARC is no longer supported. OAI-MARC is
22       deprecated. Use MARCXML instead.
23
24       By default, each record is written to standard output in a line format
25       with newline for each field, $x for each subfield x. The output format
26       may be changed with option -o,
27
28       yaz-marcdump can also be requested to perform character set conversion
29       of each record.
30

OPTIONS

32       -i format
33          Specifies input format. Must be one of marcxml, marc (ISO2709), line
34          (line mode MARC).
35
36       -o format
37          Specifies output format. Must be one of marcxml, marc (ISO2709),
38          line (line mode MARC).
39
40       -f from
41          Specify the character set from of the input MARC record. Should be
42          used in conjunction with option -t.
43
44       -t to
45          Specify the character set of of the output. Should be used in
46          conjunction with option -f.
47
48       -l leaderspec
49          Specify a simple modification string for MARC leader. The leaderspec
50          is a list of pos=value pairs, where pos is an integer offset (0 -
51          23) for leader. Value is either a quoted string or an integer
52          (character value in decimal). Pairs are comma separated. For
53          example, to set leader at offset 9 to a, use 9=a.
54
55       -v
56          Writes more information about the parsing process. Useful if you
57          have ill-formatted ISO2709 records as input.
58

EXAMPLES

60       The following command converts MARC21/USMARC in MARC-8 encoding to
61       MARC21/USMARC in UTF-8 encoding. Leader offset 9 is set to 'a'. Both
62       input and output records are ISO2709 encoded.
63
64              yaz-marcdump -f MARC-8 -t UTF-8 -o marc -l 9=97 marc21.raw >marc21.utf8.raw
65
66
67
68       The same records may be converted to MARCXML instead in UTF-8:
69
70              yaz-marcdump -f MARC-8 -t UTF-8 -o marcxml marc21.raw >marcxml.xml
71
72
73

FILES

75       prefix/bin/yaz-marcdump
76
77       prefix/include/yaz/marcdisp.h
78

SEE ALSO

80       yaz(7)
81
82
83
84YAZ 2.1.54                        03/16/2007                   YAZ-MARCDUMP(1)
Impressum