PDA

View Full Version : exit program for ftp rename function



Guest.Visitor
06-03-2003, 10:47 AM
One alternative would be to let the program activate on both calls, but skip the processing on one. The Retrieve Call Stack (QWVRCSTK) API should let you access the program name which caused your exit program to be invoked, and let you determine if you need to run your code or not.

Absolutely_Nobody
06-03-2003, 10:47 AM
I have created an exit program that checks for an ftp rename operation and submits a job if it detects that a rename is being performed. The job kept getting submitted twice and I was able to determine that the rename function is actually two separate ftp commands ( rnfr and rnto ) that cause the exit program to get invoked two times. Anyone have any idea how I can submit my job only when the rnto invokes my exit program ? I though about setting a switch but, it would get initialized each time the exit program gets invoked. The operation = 8, so I know a rename is being done. However, I need to know which part of the rename is being done.