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

Data Archive Administration

Specify an end time for the output file

  • Last UpdatedOct 02, 2024
  • 1 minute read

To specify the end time for the output file, use the -oet flag with the piarchss command.

piarchss -oet option

Where option is one of the following:

Option

Description

input

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

event

Sets the end time to the time of last event in input file.

time

Sets the end 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 end time to time of last event which passes the time filter.

primary

Sets the end time to indicate the archive is a primary archive.

NoChange

End time is not altered.

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