I want to vaildate dataset to check if it is catloged with in ISPF panels (Not inside Rexx). for this I used the following code:
The code is working fine But I am not getting the error message "DS NOT FOUND" on the screen.
IF SYSDSN("'"STRIP(FILE1)"'") <> 'OK' THEN DO
FILE1 = ''
ZEDSMSG = " DS NOT FOUND"
IF (&FILE1 = '')
To be pedantic - you are within Rexx. You are using an exit written in Rexx. I have never done this but I guess normal rexx syntax applies but I would need to check a manual that I do not currently have and cannot get until some later date.