.. _section3.1.3: 3.1.3 - Set Local Files ================================= .. _SL: Action Option -**SL** (-**SetLocalFile**) (Alias: -**SetLocal**) : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (Alias: -SetLocal) creates or modifies local file update records in GDEXDB for a given dataset. One or more records may be processed per execution. | **dsupdt** [[:ref:`-(DS|Dataset) `] dNNNNNN] -(SL|SetLocalFile) [:ref:`Mode Options `] | :ref:`-(LI|LocalIndex)
  • ` LocalFileIndices | [:ref:`-(LF|LocalFile) ` LocalFileNames] | [:ref:`-(CI|ControlIndex) ` UpdateControlIndices] | [:ref:`-(PI|ParentIndex) ` ParentLocalIndices] | [:ref:`-(FA|FileArchived) ` ArchivedFileNames] | [:ref:`-(DC|DownloadCommand) ` DownloadCommand] | [:ref:`-(AN|ActionName) ` DSARCHActionNames] | [:ref:`-(OP|Options) ` DSARCHOptions] | [:ref:`-(XO|ExecOrder) ` ExecuteOrderIndices] | [:ref:`-(FQ|Frequency) ` DataFrequencies] | [:ref:`-(EP|EndPeriod) ` PeriodEndAt] | [:ref:`-(DI|DueInterval) ` DataDueInterval] | [:ref:`-(ED|EndDate) ` NextDataEndDate] | [:ref:`-(EH|EndHour) ` NextDataEndHour] | [:ref:`-(VI|ValidInterval) ` UpdateValidInterval] | [:ref:`-(AT|AgeTime) ` RemoteFileAgeTime] | [:ref:`-(WD|WorkDir) ` WorkingDirectory] | [:ref:`-(CL|CleanCommand) ` FileCleaningCommand] | [:ref:`-(MR|MissRemote) ` AllowMissRemote] | [:ref:`-(PR|ProcessRemote) ` AdditionalRemoteFileProcess] | [:ref:`-(BC|BuildCommand) ` CommandBuildLocalFile] | [:ref:`-(SN|Specialist) ` GDEXSpecialist] | [:ref:`-(DE|Description) ` FileDescription] | [:ref:`-(DB|Debug) ` DebugModeInfo] Available :ref:`Mode options `: .. list-table:: :widths: auto :header-rows: 0 * - :ref:`-(MD|MyDataset) ` - sets information into GDEXDB regardless of dataset ownership * - :ref:`-(NL|NewLocfile) ` - adds a new local file update record to GDEXDB * - :ref:`-(RO|ResetOrder) ` - resets execution order indices to match the order in which records are provided An existing local file record in GDEXDB for the given index is modified in place. A new record is created when the index is 0 and :ref:`-NL ` (-NewLocfile) is supplied. The dataset name via :ref:`-DS ` is required only when adding a new record. Temporal or generic patterns enclosed by delimiters (default '<' and '>') may be embedded in local file names (:ref:`-LF `), remote file names (:ref:`-RF `), download commands (:ref:`-DC `), and file descriptions (:ref:`-DE `). Delimiters can be changed via :ref:`-PD ` (-PatternDelimiter). Patterns are placeholders substituted with real values at update time. For example, represents a 4-digit year followed by a 2-digit month. A file named 'filename..ext' updated to end date 2007-10-31 becomes 'filename.200710.ext'. Linking a local file record to an update control record (via :ref:`-CI `) causes the control record's scheduled action to run automatically against that local file. .. _3.1.3_e3: **EXAMPLE 3. To set update information for two new local files of d744004 via input file 'd744004.loc':** | **dsupdt** :ref:`SL ` :ref:`-NL ` -IF d744004.loc Content of input file d744004.loc: .. code-block:: none Dataset<=>d744004 LocalIndex<:>LocalFile<:>Action<:>ExecOrder<:>ControlIndex<:>FileArchived<:>DownloadCommand<:>Options<:>Frequency<:>DueInterval<:>EndDate<:>ValidInterval<:>WorkDir<:>CleanCommand<:> 0<:>uv..bln<:>AW<:>1<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 11 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:> 0<:>curl..bln<:>AB<:>2<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 12 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:> | :ref:`Back to Top ` | :ref:`Back to Table of Contents `