This AE pgm is currently automatically called from SYSTEM PROCESS REQUEST on a daily basis to load data from an input file deposited on the server ready for pickup.
We would like to use the same AE pgm ( thus using the same validation and loading logic ) to load the same file format but defined by the user ( via attachment load ) as needed any time during the day.
The user will initiate this AE pgm online ( ie. from a page with his parameters ).
Currently, the pgm now already runs automatically daily and we wish to make it also available to be run by user anytime in the day
To achieve that, we would need to know:
Is the AE pgm ran by (a) the user or by the (b) SYSTEM PROCESS REQUEST so that the program can decide of where to take input file.
(a) Take from an attachment defined by user or (b) from the input file already deposited on the server for pickup
That is the reason why we try to detect who called the AE pgm in order decide where to pickup the input file.
Your help is much appreciated as I do researches but so far haven't gotten a concluded decision.
Message was edited by: Kel_123