I am giving control to user to edit a dataset using
ADDRESS ISPEXEC "EDIT DATASET('datasetname')"
My requirement is to capture user entered command at the command prompt. If he enters PF03 , then dataset has to be saved and proceed with the normal processing and if he enters CANCEL i have to go back to the start of the program.
I know that after executing the above statement if RC = 0 then user has entered PF03 and RC = 4 if user uses CANCEL command..But here if user does't modify any data then also the RC is assigned to 4. My requirement needs even if user doesn't edit dataset but presses PF03 i have to start executing next statements. So I would like to know how to find whether user has entered CANCEL or not ?