<Apologies for incorrect usage of terminology, if any
ndashore20 wrote:which program is executed when the primary command is triggered or applied . I want to generate the jcl for various primary command such as X all , c all and F all. Is it possible and if it is please guide me ...
As Mr. Sorichetti has already pointed out, the query is not clear, though giving it a far-shot.
Assumption: you want to execute X (eXclude) ALL, C (Change) ALL and F (Find) ALL commands, via JCL, and you want to know which program can help you achieve this.
a. All the aforementioned commands are ISREDIT MACRO commands
b. So, what you would need is a small REXX, which first sets up ISPEXEC environment - read ADDRESS ISPEXEC
c. From this, you'll have to set-up a VIEW/EDIT environment- your call
d. And while you set this environment up, you'll need to call the MACRO
e. Within the MACRO, you use the ISREDIT environment and execute the 'X ALL', 'C ALL' etc MACROs.
f. All of this chunk can be easily executed using IKJEFT01, which in turn runs in batch (mode)
Hope this helps.