1YAZ-MARCDUMP(1)                 [FIXME: manual]                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]
10                    [-c cfile] [-s prefix] [-C size] [-n] [-p] [-v] [-V]
11                    [file...]
12

DESCRIPTION

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

OPTIONS

33       -i format
34           Specifies input format. Must be one of marcxml, marc (ISO2709),
35           marcxchange (ISO25577), line (line mode MARC).
36
37       -o format
38           Specifies output format. Must be one of marcxml, marc (ISO2709),
39           marcxchange (ISO25577), line (line mode MARC).
40
41       -f from
42           Specify the character set from of the input MARC record. Should be
43           used in conjunction with option -t. Refer to the yaz-iconv man page
44           for supported character sets.
45
46       -t to
47           Specify the character set of of the output. Should be used in
48           conjunction with option -f. Refer to the yaz-iconv man page for
49           supported character sets.
50
51       -l leaderspec
52           Specify a simple modification string for MARC leader. The
53           leaderspec is a list of pos=value pairs, where pos is an integer
54           offset (0 - 23) for leader. Value is either a quoted string or an
55           integer (character value in decimal). Pairs are comma separated.
56           For example, to set leader at offset 9 to a, use 9=a.
57
58       -s prefix
59           Writes a chunk of records to a separate file with prefix given,
60           i.e. splits a record batch into files with only at most "chunk"
61           ISO2709 record per file. By default chunk is 1 (one record per
62           file). See option -C.
63
64       -C chunksize
65           Specifies chunk size; to be used conjunction with option -s.
66
67       -p
68           Makes yaz-marcdump prints record number and input file offset of
69           each record read.
70
71       -n
72           MARC output is omitted so that MARC input is only checkecd.
73
74       -v
75           Writes more information about the parsing process. Useful if you
76           have ill-formatted ISO2709 records as input.
77
78       -V
79           Prints YAZ version.
80

EXAMPLES

82       The following command converts MARC21/USMARC in MARC-8 encoding to
83       MARC21/USMARC in UTF-8 encoding. Leader offset 9 is set to ´a´. Both
84       input and output records are ISO2709 encoded.
85
86               yaz-marcdump -f MARC-8 -t UTF-8 -o marc -l 9=97 marc21.raw >marc21.utf8.raw
87
88
89       The same records may be converted to MARCXML instead in UTF-8:
90
91               yaz-marcdump -f MARC-8 -t UTF-8 -o marcxml marc21.raw >marcxml.xml
92
93
94

FILES

96       prefix/bin/yaz-marcdump
97
98       prefix/include/yaz/marcdisp.h
99

SEE ALSO

101       yaz(7)
102
103       yaz-iconv(1)
104
105       MARCXML[1].
106
107       ISO25577[2].
108

NOTES

110        1. MARCXML
111           http://www.loc.gov/standards/marcxml/
112
113        2. ISO25577
114           http://www.loc.gov/standards/iso25577/
115
116
117
118YAZ 4.0.2                         03/09/2010                   YAZ-MARCDUMP(1)
Impressum