1 .\" Title: yaz\-marcdump
3 .\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
8 .TH "YAZ\-MARCDUMP" "1" "09/04/2006" "YAZ 2.1.28" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 yaz\-marcdump \- MARC record dump utility
17 \fByaz\-marcdump\fR [\fB\-x\fR] [\fB\-X\fR] [\fB\-e\fR] [\fB\-I\fR] [\fB\-f\ \fR\fB\fIfrom\fR\fR] [\fB\-t\ \fR\fB\fIto\fR\fR] [\fB\-l\ \fR\fB\fIspec\fR\fR] [\fB\-v\fR] [\fB\-c\ \fR\fB\fIcfile\fR\fR] [file...]
22 reads MARC records from one or more files. It parses each record and supports output in line\-format, ISO2709, MARCXML, MarcXchange as well as Hex output.
24 This utility parses records ISO2709(raw MARC) as well as XML if that is structured as MARCXML/MarcXchange.
27 .nr an-no-space-flag 1
32 As of YAZ 2.1.18, OAI\-MARC is no longer supported. OAI\-MARC is deprecated. Use MARCXML instead.
34 By default, each record is written to standard output in a line format with newline for each field, $x for each subfield x. The output format may be changed with options
41 can also be requested to perform character set conversion of each record.
45 Reads MARC records in MARCXML/MarcXchange format. Without this option,
47 reads records in ISO2709 format.
50 Writes MARC records in MARCXML. This format is equivalent to YAZ_MARC_MARCXML in
54 Writes MARC records in MarcXchange format. This format is equivalent to YAZ_MARC_XCHANGE in
58 Writes MARC records in ISO2709 format. This format is equivalent to YAZ_MARC_ISO2709 in
62 Specify the character set
64 of the input MARC record. Should be used in conjunction with option
68 Specify the character set
70 of the output. Should be used in conjunction with option
74 Specify a simple modification string for MARC leader. The
76 is a list of pos=value pairs, where pos is an integer offset (0 \- 23) for leader. Value is either a quoted string or an integer (character value in decimal). Pairs are comma separated. For example, to set leader at offset 9 to a, use
80 Writes more information about the parsing process. Useful if you have ill\-formatted ISO2709 records as input.
83 The following command converts MARC21/USMARC in MARC\-8 encoding to MARC21/USMARC in UTF\-8 encoding. Leader offset 9 is set to 'a'. Both input and output records are ISO2709 encoded.
87 yaz\-marcdump \-f MARC\-8 \-t UTF\-8 \-I \-l 9=97 marc21.raw >marc21.utf8.raw
93 The same records may be converted to MARCXML instead in UTF\-8:
97 yaz\-marcdump \-f MARC\-8 \-t UTF\-8 \-X marc21.raw >marcxml.xml
105 \fI\fIprefix\fR\fR\fI/bin/yaz\-marcdump\fR
108 \fI\fIprefix\fR\fR\fI/include/yaz/marcdisp.h\fR