3.1.4 - Get Local Files
Action Option -GL (-GetLocalFile) (Alias: -GetLocal) :
(Alias: -GetLocal) retrieves local file update records for a given dataset. When local file indices or names are provided, only the matching records are returned.
Available Mode option:
formats each column to a uniform fixed width |
Use -FN (-FieldNames) to specify which local file fields to retrieve. The default is ‘LFAIUCOQJNVWZ’. Use -FN ALL to retrieve all available fields.
Valid field names of local files and their corresponding Info option names:
Names |
Descriptions |
|
|---|---|---|
L |
index of update record |
|
F |
local, original or source file names |
|
A |
Action name for dsarch |
|
I |
update control indices |
|
P |
parent index, refers to a dlupdt.lindex if not 0 |
|
U |
archived file names on GDEX Servers |
|
C |
command for downloading a remote file |
|
O |
options following the Action |
|
X |
order indices for update execution |
|
Q |
frequency of data files, i.e., 1W, 1M |
|
E |
0=Sunday/EndMonth if FQ=1W/1M |
|
J |
data end date of next update |
|
K |
data end hour of next update |
|
N |
data next due period, i.e., 1M2D |
|
V |
update valid interval, i.e., 2D, 1M |
|
T |
remote file age interval, i.e., 2D, 1M |
|
W |
working directory for processing update |
|
Z |
command for removing data files after update |
|
M |
flag (Y/N) indicating whether a missing remote file is allowed |
|
R |
external utility to process remote files |
|
B |
external utility to build local files |
|
S |
GDEX specialist who owns the local file record |
|
D |
File description, include temporal patterns |
Specific local files can be filtered by name using -LF (-LocalFile), which accepts the ‘%’ wildcard to match any number of characters.
When no dataset number is given, update information is displayed for every local file across all datasets owned by the specialist running dsupdt.
EXAMPLE 4. To retrieve the default local file fields for d744004, local file indices 33 and 34:
Content of the output:
Dataset<=>d744004
LocalIndex<:>LocalFile<:>Action<:>ExecOrder<:>ControlIndex<:>FileArchived<:>DownloadCommand<:>Options<:>Frequency<:>DueInterval<:>EndDate<:>ValidInterval<:>WorkDir<:>CleanCommand<:>
33<:>uv.<YYYYMM>.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__<:>
34<:>curl.<YYYYMM>.bln<:>Aw<:>2<:>0<:><:>cp -p /huron/ftp/rossby/upload/morzel/<:>-GI 12 -DF BINARY<:>1M<:><:>2009-08-31<:><:>$UPDTDATA/zji/BLNWIND<:>rm -f __FN__<:>