Jcl behind the Primary Command



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Jcl behind the Primary Command

Postby ndashore20 » Wed Jan 11, 2017 2:48 pm

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
ndashore20
 
Posts: 14
Joined: Sun Sep 25, 2016 10:28 pm
Has thanked: 13 times
Been thanked: 0 time

Re: Jcl behind the Primary Command

Postby enrico-sorichetti » Wed Jan 11, 2017 2:59 pm

the question might be clear to You, but it' s very confusing for us.

what has JCL to do with ISPF commands ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Jcl behind the Primary Command

Postby Robert Sample » Wed Jan 11, 2017 3:19 pm

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.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Jcl behind the Primary Command

Postby Aki88 » Wed Jan 11, 2017 4:43 pm

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.

These users thanked the author Aki88 for the post:
ndashore20 (Wed Apr 26, 2017 6:42 pm)
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post