so last part is to write the member modified in VIEW mode to an existing PDS as a new member using CREATE. When I add the following line (LASTLINE is a variable equal to the numeric value of the last line) :
"CREATE CCP.BASE.REXX.MFOPS(TESTPROC) 1 "LASTLINE
I get the following error :
Data set not allocated
In a macro the target data set must be allocated for the CREATE command
I do not see an ALLOCATE command within the ISREDIT commands and so I tried adding
"ALLOCATE DDNAME(INFILE) DSNAME('CCP.BASE.REXX.MFOPS') SHR"
prior to
ADDRESS ISREDIT
"MACRO"
this doesn't cause any error/issue but I still get the same error from the CREATE