When we compare our enhanced program with production program, if we want to retrofit any lines that was missing in our program from production program, we will just type MD in the line numbers column of the mainframe screen. Then the line will be retofitted into our code. Can we do the same thing using rexx.
i.e., how can we code command like MD or D(for deleting a line) or I(for inserting a new line) or CC(for copying a set of lines) using rexx.
enrico, when you do a COMPARE within an edited file, new lines appear with a label, deleted lines appear with '======' (info lines).
These deleted lines can be reintroduced by typing MD in the prefix area.
The manual shows the line commands that can be used in a macro.
MD is not among them.
I have not found how info lines (the ones with '======') can be inserted from within a macro.
If you are really stuck, try using COMPARE with the SAVE option, then analyse the file created: prefix.ISPFEDIT.COMPARE.LIST
( with edit macros
You can insert ==== lines with mask token of the line insert commands )
Anyhow I do not see at all how a REXX can be used to do this kind of task..
They should have a STRONG standard enforced on the format of program updates
( tagging every modified line with a change level token ),
in order to programmatically select for partial upgrade/retrofit
I do not see how a rexx program can achieve that..
A strong change management program/standards with networked change capability would be the solution :-)
together with a standard enforced for small atomic changes and versioning
in order to apply/retrofit the changes in a bundle indepently
OK... messy append, but if You ask I can clarify later
anyway for the o/p request,, better to avoid any programmatic retrofit