Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Data Archive Administration

Specify a start time for the output file

  • Last UpdatedOct 02, 2024
  • 1 minute read

To specify the start time for the output file, use the -ost flag with the piarchss command.

piarchss -ost option

Where option is one of the following:

Option

Description

input

Sets the start time to the start time of the input file. This is the default behavior.

event

Sets the start time to the time of the first event in the input file.

time

Sets the start time to the specified time string. The following rules apply:

  • Specify times in fixed or reference PI time format. Time offsets are not supported.

  • Enclose times that contain spaces in double quotes.

  • If only a date is specified, the time defaults to 00:00:00 (midnight).

  • Output file start and end times must differ by at least one second.

    Example time strings:

    "22-JAN-17 23:59:59"
    23-JAN-17
    21-Feb

NFE

Sets the start time to the time of the first event that passes the time filter.

Example

For example, the following command specifies the output archive start and end times.

piarchss -if D:\pi\dat\bigfile.dat -of D:\pi\dat\january.dat
-filter_ex "1-jan-02" "1-Feb-02" -ost "1-jan-02" -oet "1-feb-02"

Note: If the start or end time contains a space, for example 1-Jan-02 12:00:00, you must enclose the date string in double quotes.

Related Links
TitleResults for “How to create a CRG?”Also Available in