Page 1 of 1

Jcl behind the Primary Command

PostPosted: Wed Jan 11, 2017 2:48 pm
by ndashore20
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 ...


Thanks

Nilesh

Re: Jcl behind the Primary Command

PostPosted: Wed Jan 11, 2017 2:59 pm
by enrico-sorichetti
the question might be clear to You, but it' s very confusing for us.

what has JCL to do with ISPF commands ?

Re: Jcl behind the Primary Command

PostPosted: Wed Jan 11, 2017 3:19 pm
by Robert Sample
It is not possible, period. If there is a separate program issued for each primary command, those programs could not be invoked through JCL -- and it is quite possible that a single program is used for all the primary commands.

Re: Jcl behind the Primary Command

PostPosted: Wed Jan 11, 2017 4:43 pm
by Aki88
Hello,

<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.