Original Message:
Sent: Mar 12, 2024 12:46 PM
From: Chinnu MNK
Subject: Re: question on the new uss file trigger functionality
Hi Lucy,
Thank you for your help.It worked and I was able to trigger the event.
But I am having few questions,
- Can we trigger the DSTRIG only once.(i.e. if after the event ran at scheduled time and then the file got placed,the event would have completed) ...if in case 2 files will be placed on the same day.will it work.
- I tried with %ESPADD,it didnot work.Should I include the path in brackets in the DSNAME.
- If the event /the file can be triggered only once...is there a way to achieve multiple DSTRIG on the same day
Your help is highly appreciated.
Thank you and regards
Chinnu
Original Message:
Sent: Mar 11, 2024 05:29 PM
From: Lucy Zhang
Subject: Re: question on the new uss file trigger functionality
Hi Chinnu,
Firstly you should use INVOKE instead of SUBMIT in the event definition, like:
INVOKE 'ESPPROC PDS NAME(PDSMEM)'
Secondly the DSTRIG name should not have spaces, so:
DSTRIG USS FILE
Should be:
DSTRIG USSFILE
Please adjust as above, and run simulation and see if it has no errors.
If it still doesn't work, you may open a support case to provide more related information.
Hope this helps,
Lucy
Original Message:
Sent: Mar 11, 2024 12:44 PM
From: Chinnu MNK
Subject: Re: question on the new uss file trigger functionality
Hi Lucy,
I tried the USS DSTRIG in a ESP Proc and the file is not getting triggered.The DSTRIG is working fine with static file at Event level, but not working when defined at application level.
I defined as below
APPL DSTRIGT
INVOKE ' XXX.YYY.ZZZ'
JCLLIB 'PDS.NAME'
DSTRIG USS FILE
DSNAME '/al/bl/file.txt USS
RUN DAILY
RELEASE JOBA
JOB JOBA
RUN DAILY
ENDJOB
Event id(name) system(name) replace
Schedule 00.00 daily
Submit 'pds name'
Could you please let me know the error I am doing here?
I just tried without wildcard, and that too was not working.
Thanks in advance.
Regards,
Chinnu.
Original Message:
Sent: Mar 07, 2024 12:16 PM
From: Lucy Zhang
Subject: Re: question on the new uss file trigger functionality
Hi Chinnu,
Sure, following is an example for your reference:
APPL DSTRIG
............
DSTRIG USSFILE
RUN DAILY
DSNAME /a/zhali13/t%ESPADD.est1 USS RENAME
ENDJOB
Note: variable %ESPADD will be resolved to the day when the event is triggered when the application is created.
And the event needs to be triggered BEFORE the USS activity occurs. For example, if the activity should occur after 1AM, then you can add below in the event, so that it will fire at 1AM:
SCHEDULE 1AM DAILY
Hope this helps,
Lucy
Original Message:
Sent: Mar 07, 2024 11:53 AM
From: Chinnu MNK
Subject: Re: question on the new uss file trigger functionality
Hi Lucy,
Thank you for your reply.
Could you please provide me few example esp proc with wildcard character in DSTRIG uss type trigger?
And when I tried DSTRIG in esp proc,I found the event was not triggered when the file was placed in the USS path.
Our requirement: when a file is placed in the zOS Unix server, our event should be triggered automatically(i.e) based on the file activity.Also, the file name will be like below example:
Ex : A.b.c.Dddmmyy.file where the 4th qualifier will change with current date and the file should be triggered.When a file is placed directly in mainframe server we were able to achieve that.But as the file is placed in zOS Unix server, uss type DSTRIG supports only static file trigger.
Thanks in advance.
Chinnu.
Original Message:
Sent: Mar 06, 2024 09:48 AM
From: Lucy Zhang
Subject: Re: question on the new uss file trigger functionality
Hi Chinnu,
Unfortunately, the USS file name can't use wildcard. You may post an idea for future enhancement consideration.
One possible workaround is to use the USS DSTRIG in ESP Proc, and use the composed date variable as part of the path on DSNAME.
Hope this helps,
Lucy
Original Message:
Sent: Mar 06, 2024 02:26 AM
From: Chinnu MNK
Subject: Re: question on the new uss file trigger functionality
Hello Mike,
Did you find any way to include wildcard in the DSTRIG with USS file trigger?
We want an event trigger that will trigger automatically if a file is placed in mainframe unix server. DSTRIG USS file trigger is working if the file name is static. When the file name dynamically changes with date in 3rd place, then the wildcard "-" doesnot work as you mentioned .
Could you please let me know if you found any way?
Original Message:
Sent: May 11, 2017 11:02 AM
From: Michael Bieganski
Subject: Re: question on the new uss file trigger functionality
This is why my hair is gray....Now all the ftp updating jobs are working and causing the uss dstrig to fire, whether it's event level, appl level with or without job(a#biega)......I changed nothing!...no bounces of the ESP stcs, no ipls, no change to the esp procs....just what was sitting there idling yesterday is now working when I trigger them.
I guess I should be happy, and I am kinda...but perplexed why none of the ftps were working yesterday.
So, I'll leave this for now unless I find some other head-scratchers. No wildcarding allowed apparently, but getting ftp to work (at least right now) is huge boost for us.
Thanks for your help with this!