JCL Program to set PFK keys on Mainframe Consoles



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

JCL Program to set PFK keys on Mainframe Consoles

Postby senmahes15 » Tue May 21, 2019 8:41 pm

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
senmahes15
 
Posts: 1
Joined: Tue May 21, 2019 8:33 pm
Has thanked: 1 time
Been thanked: 0 time

Re: JCL Program to set PFK keys on Mainframe Consoles

Postby willy jensen » Tue May 21, 2019 11:29 pm

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.

These users thanked the author willy jensen for the post:
senmahes15 (Wed May 22, 2019 12:05 pm)
willy jensen
 
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post