This is a windows OS, file trigger is going to be something like 'D:\Filename\ACC001.txt'. The ACC# is different every time it runs, however I want that number to be pass to qualifier and argument. I need to understand how the SUBSTR function work, does the drive and slash count as part of the stream?, if it doesn’t them it should look like the following example, please let me know If is ok.
The ‘*’ represent the field that need to be pass, which it could be ACC001, ACC002, etc, etc..
EVENT ID(ESP.APPL01) SYSTEM(ESPQA) REPLACE
INVOKE ‘ESP.TEST.PROC(APPL01)'
WOBTRIG FILE_TRIGGER Agent(SERVERNAME03) -
FileName('D:\Filename\*.txt') CREATE/UPDATE
APPL APPL01
QUAL = SUBSTR(8,6,%ESPWTFILE)
WARG = SUBSTR(8,6,%ESPWTFILE)
Agent SERVERNAME03
NT_JOB JOB015DS.%QUAL
RUN WORKDAYS
CMDNAME D:\FileName\Incoming
ARGS %WARG
ENDJOB