Page 1 of 1

JCL Program to set PFK keys on Mainframe Consoles

PostPosted: Tue May 21, 2019 8:41 pm
by senmahes15
Hi,

I have a requirement to write a JCL to set PFK Keys on Mainframe Consoles on a system.

For Eg: K N,PFK=(2,CMD='K E,1'),CON=N
When the JCL runs the job should send this command to the Console xxxMCSxx.

I am aware that this can be done in CONSOLXX and PFKTABXX or SET PFK=xx by having PFK key tables. But there is a requirement to achieve it using JCL.

Any suggestion will be of great help. ThanQ

Re: JCL Program to set PFK keys on Mainframe Consoles

PostPosted: Tue May 21, 2019 11:29 pm
by willy jensen
To issue a command via JCL, you can use the COMMAND JCL statement - if you are authorized and the COMMAND statement is allowed in JES2 parm.
Samle:
// COMMAND 'K A,NONE,L=L700'  
//A   EXEC PGM=IEFBR14  

Note that are are a number of limitations, i.e. the K N command is not allowed for MCS consoles, which the name in your sample indicates that it is. Check the CONTROL command in the MVS System Commands manual for details.