Is there a way i can deactivate the 'sub' command
1. when you start VIEW, specify the MACRO parameter. Specify the name of your initial editor macro.
/* rexx */
Address ISPEXEC
"VIEW DATASET(pnch.cntl) MACRO(mymac1)"
2. Write an initial editor macro. Here is an example:
/* rexx */
Address ISREDIT
"MACRO"
"DEFINE SUBMIT DISABLED"
Where the DEFINE statement is used to disable the SUBMIT command. SUB is an alias of SUBMIT and is also disabled at the same time.
Another useful function of the DEFINE statement is to define alternate processing for some commands.
/* rexx */
Address ISREDIT
"MACRO"
"DEFINE USRSUBMT MACRO
"DEFINE SUBMIT ALIAS USRSUBMT"
Where you have a macro called USRSUBMT that may do something in addition to the actual SUBMIT. For example, you can log the name of the user and the name of the file. Or perhaps, you can do some quality checking of the JCL before actually doing the SUBMIT. I leave it up to your imagination.