I am writing a Rexx program to read a dataset into a stem and edit some lines of text depending on a few conditions.
I have a problem and I am not sure about the best method to solve it. My problem is that I will run this Rexx every week and it will update the text in the dataset every week. But there is a chance that the text in that dataset could be manually changed. In that case I would like to set a variable so that when the weekly run of my Rexx starts it can check to see if the text has been manually changed during the past week. The only way I can think to do this is create another member in the dataset and write to that, for example a single line in there saying "CHANGED" or "NOTCHANGED", then read this in at the start of the Rexx, if the word CHANGED is read then the program knows that the dataset it normally works with has been manually altered.
I do not like this idea as the dataset could be deleted, moved or renamed by someone, I just do not like the fact this could cause issues.
So, is there another way that this could be done? I tried to find some way of creating permanent variables in Rexx, but could not see a way. I am not sure if persistent data is possible in Rexx, any advice is appreciated!