.. _section3.2.2: 3.2.2 - Get Version Control ================================= .. _GV: Action Option -**GV** (-**GetVersion**) : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ retrieves DOI/Version control records from GDEXDB for a given dataset. | **dsarch** [:ref:`-(DS|Dataset) `] dNNNNNN [-](GV|GetVersion) [:ref:`Mode Option `] | [:ref:`-(FN|FieldNames) ` FieldNameString] | [:ref:`-(KV|KeyValue) ` KeyNames] | [:ref:`-(OF|OutputFile) ` OutputFileName] | [:ref:`-(DB|Debug) ` DebugModeInfo] Available mode option: .. list-table:: :widths: auto :header-rows: 0 * - :ref:`-(FO|FormatOutput) ` - formats each column to a uniform fixed width Use :ref:`-FN ` (-FieldNames) to specify which version control fields to retrieve. Defaults to 'VIEDSJX'. Use :ref:`-FN ` ALL to retrieve all available fields. Valid version control field names and their corresponding :ref:`Info options `: .. list-table:: :widths: auto :header-rows: 1 * - Names - :ref:`Info Options ` - Descriptions * - V - :ref:`-(VI|VersionIndex) ` - version control index * - I - :ref:`-(IV|InternalVersion) ` - Internal version number * - E - :ref:`-(EV|ExternalVersion) ` - External version number to publish * - D - :ref:`-(DN|DOINumber) ` - DOI number created for the version control * - S - :ref:`-(VT|VersionStatus) ` - version control status, A-Active, P-Pending and H-History * - J - :ref:`-(BD|BeginDate) ` - date the version control starts at * - K - :ref:`-(BT|BeginTime) ` - time the version control starts at * - X - :ref:`-(ED|EndDate) ` - date the terminated version control ends by * - Y - :ref:`-(ET|EndTime) ` - time the terminated version control ends by * - N - :ref:`-(DE|Description) ` - note for the version control record Use :ref:`-OF ` (-OutputFile) to save the retrieved information to a file. Without it, results are displayed on screen. .. _3.2.2_e4: **EXAMPLE 4. To retrieve all version control fields for d132000 and save to a file:** | **dsarch** d132000 :ref:`GV ` :ref:`-FN ` ALL :ref:`-OF ` d132000.vrsn Content of output file d132000.vrsn: .. code-block:: none Dataset<=>d132000 VersionIndex<:>InternalVersion<:>ExternalVersion<:>DOINumber<:>VersionStatus<:>BeginDate<:>BeginTime<:>EndDate<:>EndTime<:>Description<:> 9<:>1<:><:>10.5065/D6SQ8XDW<:>A<:>2013-03-04<:>14:38:44<:><:><:><:> | :ref:`Back to Top ` | :ref:`Back to Table of Contents `