<!ENTITY % idcommon SYSTEM "common/common.ent">
%idcommon;
]>
-<!-- $Id: yaz-marcdump-man.xml,v 1.14 2007-05-22 11:10:08 adam Exp $ -->
+<!-- $Id: yaz-marcdump-man.xml,v 1.15 2007-09-23 07:40:13 adam Exp $ -->
<refentry id="yaz-marcdump">
<refentryinfo>
<productname>YAZ</productname>
<arg choice="opt"><option>-l <replaceable>spec</replaceable></option></arg>
<arg choice="opt"><option>-v</option></arg>
<arg choice="opt"><option>-c <replaceable>cfile</replaceable></option></arg>
+ <arg choice="opt"><option>-s <replaceable>prefix</replaceable></option></arg>
+ <arg choice="opt"><option>-C <replaceable>size</replaceable></option></arg>
+ <arg choice="opt"><option>-p</option></arg>
<arg choice="opt" rep="repeat">file</arg>
</cmdsynopsis>
</refsynopsisdiv>
<listitem><para>
Specifies input format. Must be one of
<literal>marcxml</literal>, <literal>marc</literal> (ISO2709),
+ <literal>marcxchange</literal> (ISO25577),
<literal>line</literal> (line mode MARC).
</para></listitem>
</varlistentry>
<listitem><para>
Specifies output format. Must be one of
<literal>marcxml</literal>, <literal>marc</literal> (ISO2709),
+ <literal>marcxchange</literal> (ISO25577),
<literal>line</literal> (line mode MARC).
</para></listitem>
</varlistentry>
</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term>-s <replaceable>prefix</replaceable></term>
+ <listitem><para>
+ Writes a chunk of records to a separate file with prefix given,
+ i.e. splits a record batch into files with only at most
+ "chunk" ISO2709 record per file. By default chunk is 1 (one record
+ per file). See option <literal>-C</literal>.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>-C <replaceable>chunksize</replaceable></term>
+ <listitem><para>
+ Specifies chunk size; to be used conjunction with option
+ <literal>-s</literal>.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term>-p</term>
+ <listitem><para>
+ Makes yaz-marcdump prints record number and input file offset
+ of each record read.
+ </para></listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: marcdump.c,v 1.52 2007-04-17 20:26:18 adam Exp $
+ * $Id: marcdump.c,v 1.53 2007-09-23 07:40:13 adam Exp $
*/
#define _FILE_OFFSET_BITS 64
{
fprintf (stderr, "Usage: %s [-c cfile] [-f from] [-t to] "
"[-i format] [-o format] "
- "[-n] [-l pos=value] [-v] [-C chunk] [-s splitfname] file...\n",
+ "[-n] [-l pos=value] [-v] [-C chunk] [-s splitfname] [-p] file...\n",
prog);
}