Return to Mainframe Utilities Page
Module
ISREDIT MACRO /********************************************************************** /* UTILITY: EXECME * /* AUTHOR: DAVID LEIGH * /* FUNCTION: INVOKE THE DATASET BEING EDITED AS A CLIST. * /********************************************************************** ISREDIT (DSN) = DATASET ISREDIT (MBR) = MEMBER IF &STR(&MBR) > THEN SET DSN = &STR(&DSN(&MBR)) EXEC '&DSN'
Documentation
The EXECME EDIT MACRO determines the name of the dataset being edited and then invokes it as a CLIST with an "explicit" call. For instance, if you are editing a file named XYZ.ABC.FLAT.FILE, EXECME will invoke it like this: EXEC 'XYZ.ABC.FLAT.FILE' No attempt is made to determine what keyword or positional parameters are necessary for the CLIST. It is also important to note two things: 1. The most recently saved version is the one which is executed. 2. If the file you are editing has a RECFM with carriage control in column 1, the TSO CLIST processor will ignore column 1 data during execution.