You are on page 1of 7

JES2 Command Format and Listing

Description: JES2 = Job Entry Subsystem 2
An MVS subsystem that receives jobs into the system, converts them to internal format, selects them for execution, processes their output, and purges them from the system. In an installation with more than one processor, each processor's JES2 subsystem independently controls job input, scheduling, and output processing.

The following commands can be issued in lower or UPPER case Depending on the site they are prefixed by either £ or $

Command
£AA £AJ123 £AS123 £AT123 £A’Jobname’ £AQ £AQ,All £AQ,C=M £BPRT1,700 £BPRT1,DS £CA5 £CJ888 £CS350 £CT123 £CJ123,DUMP £CS123,DUMP £CT123,DUMP £CJ100-255 £CJ789,PURGE £CJ789-945,PURGE £C’Jobname’ £CPRT1

Detail
Releases all jobs previously held by £HA command Releases Job 123 ready for execution Releases Started Task 123 ready for execution Release TSU 123 ready for execution Release the job ‘Jobname’ ready for execution Release all queues previously held by the £HQ command Release all queues Release the ‘M’ class queue Backspace PRINTER1 by 700 pages Backspace PRINTER1 by one dataset Cancel Automatic command with Id=5 Cancel job no 888 Cancel Started Task 350 Cancel TSU 123 Cancel job no 123 with a Dump Cancel STC 123 with a Dump Cancel TSU 123 with a Dump Cancel jobs numbered 100-255 Cancels the job numbered 789 and Purges the output Cancel jobs numbered 789-945 and Purge the output Cancel job ‘Jobname’ Cancel the job currently on PRINTER1

Q=PPU.Q=HOLD £DN.Q=XEQA Cancel the current reader activity on RDR1 Display the active jobs executing (jobs. readers) Display all jobs on unit record devices Display executing jobs (Jobs only) Display all active system tasks (STC’s only) Display all active time sharing users (TSU’s only) Display all active jobs executing with step and proc info Display all forms awaiting output Displays the output information for job 789 Displays the forms awaiting output at remote R10 Display all local initiators Display local initiator 1 Display the local initiators from 1 to 4 Display job number 123 Display started task 123 Display TSU 123 Display the job jobname Send message ‘TEXT’ to remote 20 Send (write) the message ‘TEXT’ in Joblog of Job 689 (active jobs only) Display the names of all the jobs on the queue for all remotes Display the names of jobs on the queue for remote R20 Display all jobs awaiting execution on the hold queue Displays the number of jobs awaiting output processing Display all jobs awaiting Printing Display all jobs awaiting printing at remote R20 Display all jobs awaiting execution Display all jobs awaiting execution at remote R20 Display all jobs awaiting execution in class A (Note : The above £DN can be replaced by £DQ which then only gives the number of jobs) Display Operator requests Display outstanding requests Display the status and utilisation of the current spool volume Display the status and utilisation of all spool volumes £DO £DR £DSPL £DSPL.R=R10 £DI £DI1 £DI1-4 £DJ123 £DS123 £DT123 £D’Jobname’ £DMR20.’TEXT’ £DN £DNR=R20 £DN.R=R20 £DN.J £DA.’TEXT’ £DMJ689.Q=PPU £DN.Q=XEQ.X £DF £DF.£CRDR1 £DA £DA.R=R20 £DN.Q=OUT £DN.T £DA.S £DA. printers.Q=XEQ £DN.D £DA.J=J789 £DF.ALL .

OFF1.OFF1.OFFS £DU. The dsn etc can be altered (normally incrementally) Display status of PRINTER4 Display status of all printers Display status of READER3 Display status of all readers Display the status of REMOTE12 Display status of device PRINTER1 attached to REMOTE1 Display status of all units that are started Displays information on the status of all lines and the JES2/Vtam interface Restart job 123 (same format for STC’s and TSU’s) Restart (requeue) LINE2 Restart (requeue) PRINTER4.OFF1. lines.RDR3 £DU.STA £DU.LNES £DU. The job that is printing is returned to the queue in total Forward space PRINTER3 by 200 pages Forward space PRINTER5 by one dataset Hold all jobs Hold job 634 (same format for STC’s and TSU’s) Hold jobs 20 through 75 (same format for STC’s and TSU’s) Hold all queues Hold all jobs on the class A queue Interrupt the job currently on PRINTER2 . printers etc Display the status of line 100 including sub channel address Display the status of all lines including the sub channel addresses Display all lines that are active Display the current status of the Offload facility Display the status of the transmit facilities of the Offload.ACT £DU.200 £FPRT5.PR1 £DU.PRTS £DU.ST £DU.DS £HA £HJ634 £HJ20-75 £HQ £HQ. The relevant characteristics may be altered by the set (£T) option Displays the current status of OFFLOAD1.OFF1. printers.JT £DU.£DSPL.LNES.ACT £DU.SR £DU.PRT4 £DU. The characteristics of the transmitters Outgroup etc may be altered using the set (£T) option.JR £DU.RMT12 £DU.A £IPRT2 Display jobs using over 1% of spool utilisation Display the status and utilisation of spool volume XXXX Display the number of jobs on the various job queues Display all active line. units etc Display all active units.R1.RDRS £DU.TP £EJ123 £ELNE2 £EPRT4 £FPRT3.LNE100 £DU.V=XXXX £DQ £DU £DU. Display the status of the receive facilities of the current offload.JOBS=1 £DSPL.OFFLOAD1 £DU.

Q=A £P’TEST3’ £PLNE6 £PRDR2 £PPRT7 Interrupt the job currently on LINE3 Interrupt the job currently on READER4 Displays (lists) the output information for job 333 (same format for STC’s and TSU’s.C £OJ23-760.ALL £LJ10-30.Q=AH7 £OQ.Q=A £OQ. Displays (lists) the output information for jobs in the range 20 through 53 Displays held output datasets for job 401 (same format for STC’s and TSU’s) Display held output datasets for jobs in the range 10 through 30 Displays (lists) output information for the job ‘ACCOUNT’ Repeat the print of the job currently printing on PRINTER5 Release held output datasets for job 250 (same format for STC’s and TSU’s) Release held output datasets for jobs in the range 11 through 15 (same format for STC’s and TSU’s) Deletes the held output datasets for job 342 (same format for STC’s and TSU’s) Deletes the held output datasets for jobs in the range 23 through 760 (same format for STC'’ and TSU's) Release all output held in class A Release all output held in classes A.£ILNE3 £IRDR4 £LJ333 £LJ20-53 £LJ401.Q=A.A=3.A=2 £OQ.Q=Q.C £P £PI £PI2 £PI1-6 £PJES2 £PJ468 £PJ36-121 £PJ999.C £OQ. lines. printers etc) Purge job 468 from the system (same format for STC’s and TSU’s) Purge jobs in the range 36 through 121 from the system (same format for STC’s and TSU’s) Purges (cancels) all datasets held in output class A for job 999 Purge (terminate) job ‘TEST3’ after it completes its current activity Purge (drain) LINE6 Purge (drain) READER2 Purge (drain) PRINTER7 after completion of current print activity .Q=C.H=6 £OQ. H and 7 Releases all held output in class A older than 2 days old Releases all held output in class Q older than 6 hours old Releases all held output in class C older than 3 days old and deletes it Drain (purge) the system Drain (purge) all local initiators Drain (purge) local initiator 2 Drain (purge) local initiators 1 to 6 Drain (purge) JES2 (initiators.ALL £L’ACCOUNT’ £NPRT5 £OJ250 £OJ11-15 £OJ342.

Replacing the ‘P’ option with a ‘Z’ would halt it £TA.£RALL.T=HH.ALL Display all current automatic commands £TA.I=XXX.R=AA.V=SPOOL2 Route all of the output for job 123 to REMOTE 55 (same format for routing output elements for STC’s and TSU’s) Route all of the queue’s from REMOTE AA to REMOTE BB Reroute job 955 for execution at NODE 7 Reroute all the jobs on the local system currently queued for execution at NODE 2 for execution at NODE 4 Start system activity (after a manual load of JES2) Start automatic command processing Start all real initiators (local) Start local initiator 1 Start local initiators 2 through 9 Start LINE100 Start the JES2/VTAM interface (LOGONX) Start networking to the relevant application name.D=N4 £S £SA £SI £SI1 £SI2-9 £SLNE100 £SLOGON1 £SN.D £TI4. Application to application within VTAM definition Starts a VTAM network connection to the node attached via LINE6 to the system Starts PRINTER1 Starts READER4 Starts the inactive spool volume SPOOL2 £SSPL.D=BB £RXEQ.MM.’’COMMAND’’’ Set an automatic command to start at HH.R=N2.FORMAT.V=SPOOL2.J=J123.P £TJ456. It makes viewing the log via SDSF and displays in the control frame easier .A=APPLNAME £SN.D=R55 £RALL.Q=P £TI4.C=F £TMZ Sets (alters) the input class of job ‘TEST4’ from its current class to a class of F Sets (alters) the output class of job ‘TEST4’ from its current class to a class of P Sets (alters) local initiator 4 to run input class D jobs Sets (alters) local initiator 4 to run job classes D.D=N7 £RXEQ.MM and repeat at I=XXX seconds £T’TEST4’.DE9 £TIA-G.J=J955.’£VS. Priority is given to class D.C=F £T’TEST4’.LNE6 £SPRT1 £SRDR4 £SSPL. E and 9 respectively Sets (alters) a block of local initiators A through G to run jobs on the class P input queue Sets (alters) the class of job 456 to F This command condenses the main console display from right to left.P Starts (adds) and formats a new spool volume SPOOL2 and after formatting drains it. E and 9.

Q=A Set PRINTER1 to print forms 001.2. Carriage control of 6. The set command can be used to alter all sub-parameter options for the printer (these are displayed with the £DU.D=M £TPRT1.D=T £TOSC20.OUTGROUP=1.1 Sets (alters) all the output elements from job 999 to the standard default £TOJ888.£TJ123. from output class A.OUTGROUP=1.F=001.P=10 £TJ1 £TS1 £TT1 £TOJ256.C=9 £ZA £ZI £ZI3 £ZPRT5 £ZRDR2 Sets (alters) the jobs processed by READER1 to an input class of P and an output class of 9 Stops (halts) automatic command processing Stops (halts) all local initiators after each has completed its current activity Stops (halts) local initiator 3 Stops (halts) PRINTER5 Halts local reader READER2 Set console 20 to display time Set console 20 to display job numbers only Set console 20 to display messages only .OUTGROUP=GROUP4.PRTX command).C=6.ALL.C Sets (alters the priority of job 123 within its current job queue to 10 Sets (alters) job numbering back to 1 Sets (alters) started task numbering back to 1 Sets (alters) TSU numbering back to 1 Sets (alters) all sysout datasets for job 256 to an output class of C £TOJ68. line size.2 Sets (alters) the second copy within the job output element of output group1 £TOSC20.1. £TRDR1.1.D=N3 Sets (alters) output for job 68 so that the output element for GROUP4 prints the second output element at NODE3 £TOJ999.D=J £TOSC20. Output can be selected by class.Q=P. job number etc.

This will give a fixed line display area that does not scroll.PPRT4.Useful notes on JES2 Multiple Commands Commands can be entered in multiples.LNES.PRT4.D .12’ .P £PPRT4 £ELNE57 on the same command line. To do this set the control command to display a set number of lines in the control frame (in our example 12) by issuing ‘K A. For example we can enter the following 3 commands £TIA.F To erase display K E. For example £DU.L=A £DU.L=A £DU.L=A To scroll forward enter K D.P. It retains all MVS displays responses and any JES2 displays suffixed with L=A.ACT. The command only needs to be prefixed by one £ and all subsequent commands seperated by a semi colon – for example £TIA.ELNE57 MVS master console control frame Any of the JES2 display commands and subsequent displays can be retained in the master console control frame without them scrolling off the screen.