I want to write to Rexx to read in a member to a STEM variable and then check if a line has specific text, if so then replace it with new text, I am struggling to get my head around REXX syntax.
This is what I have tried so far:
IF MYFILE.I =="TEXT I WISH TO REPLACE" THEN DO
MYFILE.I == NEW TEXT
SAY ' LINE ' I ' : ' MYFILE.I
I = I + 1
I do hope this sort of code is possible using REXX, but I cannot seem to find any examples of this.
Any assistance with my code would be greatly appreciated!!
My goal is to replace a specific line in a member with a new line of text.
Thank you for your time!!