1 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
2 <!-- $Id: yaz-marcdump-man.xml,v 1.2 2003-11-18 20:34:34 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>-O</option></arg>
20 <arg choice="opt"><option>-f <replaceable>from</replaceable></option></arg>
21 <arg choice="opt"><option>-t <replaceable>to</replaceable></option></arg>
22 <arg choice="opt"><option>-v</option></arg>
23 <arg choice="opt"><option>-c <replaceable>cfile</replaceable></option></arg>
24 <arg choice="opt" rep="repeat">file</arg>
28 <refsect1><title>DESCRIPTION</title>
30 <command>yaz-marcdump</command> reads ISO2709/MARC records from one or
32 It validates each record and supports output in line-format,
33 MARCXML, OAIMARC as well as Hex output.
36 By default, each record is printed to standard output in a line
37 format with newline for each field, $x for each subfield x.
40 <command>yaz-marcdump</command> can also be requested to perform
41 character set conversion of each record.
45 <refsect1><title>OPTIONS</title>
51 Print MARC records in a simple XML format.
52 This format is equivalent to YAZ_MARC_SIMPLEXML in
53 <filename>yaz/marcdisp.h</filename>.
60 Print MARC records in MARCXML.
61 This format is equivalent to YAZ_MARC_MARCXML in
62 <filename>yaz/marcdisp.h</filename>.
69 Print MARC records in OAIMARC. Another XML variant.
70 This format is equivalent to YAZ_MARC_OAIMARC in
71 <filename>yaz/marcdisp.h</filename>.
76 <term>-f<replaceable>from</replaceable>]</term>
78 Specify the character set <replaceable>from</replaceable>
79 of the input MARC record.
80 Should be used in conjunction with option <literal>-t</literal>.
85 <term>-t<replaceable>to</replaceable>]</term>
87 Specify the character set <replaceable>of</replaceable>
89 Should be used in conjunction with option <literal>-f</literal>.
96 Print more information about the parsing process.
97 Useful if you have ill-formatted ISO2709 records as input.
104 <refsect1><title>EXAMPLES</title>
106 The following command converts MARC21/USMARC using MARC-8 encoding to
107 MARCXML in UTF-8 encoding.
109 yaz-marcdump -f MARC-8 -t UTF-8 -X marc21.raw >marcxml.xml
114 <refsect1><title>FILES</title>
116 <filename><replaceable>prefix</replaceable>/bin/yaz-marcdump</filename>
119 <filename><replaceable>prefix</replaceable>/include/yaz/marcdisp.h</filename>
122 <refsect1><title>SEE ALSO</title>
129 <!-- Keep this comment at the end of the file
134 sgml-minimize-attributes:nil
135 sgml-always-quote-attributes:t
138 sgml-parent-document:nil
139 sgml-local-catalogs: nil
140 sgml-namecase-general:t