using @keyx to initiate processing of several system commands to create / export several small files to combine into one file for web based service to view customer data in a specific format.
the files are made w/o problem.
the problem is that once completed and another record is brought up via index selection and @keyx is pressed again it sends the previous record data again and not the new record on screen. if i exit the program and come back into add, update, inquire and select the second record it will send the data.
from withing the @keyx processing with new record on screen how can have it "clear the previous data" or initiate the @keyx processing with the new record info.
i have not used @entsel so am not sure if it could be used but i have tried using "restart" which doesn't seem to work correctly. could i use either of these or do a lookup within the current file and force it to reprocess. i have set up a variable to see if prev used @keyx to send the previous record but then what do i do with it.
any help or guidance would be appreciated.