1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2 <!-- $Id: yaz-marcdump-man.xml,v 1.5 2005-02-08 23:43:56 adam Exp $ -->
3 <refentry id="yaz-marcdump">
5 <refentrytitle>yaz-marcdump</refentrytitle>
6 <manvolnum>1</manvolnum>
10 <refname>yaz-marcdump</refname>
11 <refpurpose>MARC record dump utility</refpurpose>
16 <command>yaz-marcdump</command>
17 <arg choice="opt"><option>-x</option></arg>
18 <arg choice="opt"><option>-X</option></arg>
19 <arg choice="opt"><option>-e</option></arg>
20 <arg choice="opt"><option>-I</option></arg>
21 <arg choice="opt"><option>-O</option></arg>
22 <arg choice="opt"><option>-f <replaceable>from</replaceable></option></arg>
23 <arg choice="opt"><option>-t <replaceable>to</replaceable></option></arg>
24 <arg choice="opt"><option>-v</option></arg>
25 <arg choice="opt"><option>-c <replaceable>cfile</replaceable></option></arg>
26 <arg choice="opt" rep="repeat">file</arg>
30 <refsect1><title>DESCRIPTION</title>
32 <command>yaz-marcdump</command> reads ISO2709/MARC records from one or
34 It validates each record and supports output in line-format,
35 MARCXML, OAIMARC as well as Hex output.
38 By default, each record is printed to standard output in a line
39 format with newline for each field, $x for each subfield x.
42 <command>yaz-marcdump</command> can also be requested to perform
43 character set conversion of each record.
47 <refsect1><title>OPTIONS</title>
53 Print MARC records in a simple XML format.
54 This format is equivalent to YAZ_MARC_SIMPLEXML in
55 <filename>yaz/marcdisp.h</filename>.
62 Print MARC records in MARCXML.
63 This format is equivalent to YAZ_MARC_MARCXML in
64 <filename>yaz/marcdisp.h</filename>.
71 Print MARC records in MarcXchange format.
72 This format is equivalent to YAZ_MARC_XCHANGE in
73 <filename>yaz/marcdisp.h</filename>.
80 Print MARC records in ISO2709 format.
81 This format is equivalent to YAZ_MARC_ISO2709 in
82 <filename>yaz/marcdisp.h</filename>.
89 Print MARC records in OAIMARC. Another XML variant.
90 This format is equivalent to YAZ_MARC_OAIMARC in
91 <filename>yaz/marcdisp.h</filename>.
96 <term>-f<replaceable>from</replaceable>]</term>
98 Specify the character set <replaceable>from</replaceable>
99 of the input MARC record.
100 Should be used in conjunction with option <literal>-t</literal>.
105 <term>-t<replaceable>to</replaceable>]</term>
107 Specify the character set <replaceable>of</replaceable>
109 Should be used in conjunction with option <literal>-f</literal>.
116 Print more information about the parsing process.
117 Useful if you have ill-formatted ISO2709 records as input.
124 <refsect1><title>EXAMPLES</title>
126 The following command converts MARC21/USMARC in MARC-8 encoding to
127 MARC21/USMARC in UTF-8 encoding. (Both input and output is in ISO2709).
129 yaz-marcdump -f MARC-8 -t UTF-8 -I marc21.raw >marc21.utf8.raw
133 The same records may be converted to MARCXML instead in UTF-8:
135 yaz-marcdump -f MARC-8 -t UTF-8 -X marc21.raw >marcxml.xml
140 <refsect1><title>FILES</title>
142 <filename><replaceable>prefix</replaceable>/bin/yaz-marcdump</filename>
145 <filename><replaceable>prefix</replaceable>/include/yaz/marcdisp.h</filename>
148 <refsect1><title>SEE ALSO</title>
155 <!-- Keep this comment at the end of the file
160 sgml-minimize-attributes:nil
161 sgml-always-quote-attributes:t
164 sgml-parent-document:nil
165 sgml-local-catalogs: nil
166 sgml-namecase-general:t