Wednesday 23 January 2013

Jes2 Commands


$A A 
=> JES2 releases all the Jobs that are currently held in the JES2 member
$A 'job01' or $AJ'job01'
=> JES2 releases the held batch Job "job01' and makes it available for processing.
$c 'xxxx',d xxxx is job name
=> JES2 cancels the Job "job01" and takes a dump.
$C A,ALL
=> JES2 cancels all the automatic commands.
$C O JQ,Q=B
=> JES2 cancels all the Jobs of the class "B".
$C O JQ,ALL,A>5
=> JES2 cancels output of all Jobs that are more than 5 days old.
$DA,ALL or $DA,ALL,X or $DA,ALL,X,DEV,V=Spoolname or $DN,ALL,Q=XEQ
=> Displays all active Jobs, Startd Tasks, TSU sessions and the Jobs that have space on the SPOOL volume "xxxxxx".
$DA
=> Displays all active batch Jobs.

$DA,S,ALL or $DN,Q=XEQ
or $DA,ALL,STC
=> Displays only active Started tasks.
$DA,XEQ,ALL OR $DN,Q=XEQ or $DA,ALL,TSU
=> Displays only active TSO users and the active batch Jobs.
$D BUFDEF
=> Displays JES2 buffer definitions and current free counts.
$D CKPTDEF
=> Displays the current JES2 checkpoint datasets, their volume and current status.
$D CKPTSPACE,CKPT1=CAPACITY
=> Displays information about the amount of space on the checkpoint dataset and the maximum capacity of the checkpoint dataset.


$D CKPTSPACE,CKPT2=UNUSED
=> Displays the amount of unused space by the secondary checkpoint dataset.
$D CONDEF
=> Displays console communication characteristics.
$D ESTBYTE,INT,NUM,OPT
=> Displays the number of bytes of SPOOL space set for Jobs and their output.
Here, OPT1 => Job is allowed to continue even if it exceeds the limits set.
         OPT2 => Job is cancelled without dump.
         OPT2 => Job is cancelled with dump.
$D ESTLNCT,INT,NUM,OPT
=> Displays the estimated number of lines of SPOOL space set for Jobs and their output.
$D ESTPAGE,INT,NUM,OPT
=> Displays the estimated number of pages of SPOOL space set for Jobs and their output.
$D ESTIME,INT,NUM,OPT
=> Displays the default execution time set for Jobs and their output.
F,J=job01 or $DF,.J=job01
=> Displays the number of datasets queued for output for the Job "job01".
$D INITDEF
=> Displays the number of JES2-managed initiators on this member. The number is identified by the "PARTNUM" parameter.
$DI 
=> Displays all initiators and its associated classes. It also displays the status of each initiators.

$D I7,LONG
=> Displays the status of the initiator "I7", its associated classes, Jobs, STCs and TSUs.

$DJES2
=> Displays the current activity in the JES2 address space, displays active processors, active address spaces etc,.

$DJ'XXXX' or $DJ'XXXX',LONG
=> Displays status, class. priority, userID, SPOOL volume of the Job "job01".

$DJQ,SPOOL=(V=MVEBC1),PERCENT>95)
=> Displays only those Jobs whose SPOOL volume utilization is more than 95%.

$DJQ,DAYS>3
=> Displays all Jobs which are more than 3 days old.

$DJQ,Q=XEQ,BUSY=NO
=> Displays all Jobs which are awaiting execution.

$D JOBPRTY
=> Displays the order of Job priority and the time allocated to each priority.


$D M job01,'PLEASE DECREASE THE REGION SIZE VALUE IN YOUR JCL"
=> ES2 writes the above message on "job01" Job log.

$DOJOBQ,Q=H,HOURS>60
=> Displays all the output that are older than 60 hours.

$DOJOBQ,AGE>3
=> Displays all the output that are older than3 days.

$DOS1-*,AGE>1
=> Displays all started tasks that are older than a day.

$DQ,Q=HOLD,V=XXXX or $DN,Q=HOLD or $DN,Q=HOLD,V=XXXX
DQ,Q=PPU,V=XXXX or $DN,Q=PPU or $DN,Q=PPU,V=XXXX

=> Displays all Held and Print/Purge unit Jobs on the specific SPOOL volume "SPOOL1". It also specified the SPOOL utilization.

$DQ,Q=XEQ,V=XXXX or $DN,Q=XEQ,V=XXXX or $DN,Q=XEQ

=> Displays all currently executing Jobs on the specific SPOOL volume "XXXX". It also specified the SPOOL utilization.

$DQ,Q=OUT,V=XXXX
=> Displays all Jobs on the specific SPOOL volume "XXXX" that are in output queue. It also specified the SPOOL utilization.

$DQ,Q=XMT,V=XXXX
=> Displays all Jobs on the specific SPOOL volume "SPOOL1" that are in Transmit queue. It also specified the SPOOL utilization.

$D SPOOL or $DSPL,LONG or $DSPL(XXXX),LONG
=> Displays the SPOOL volume statistics and usage.

$D SPOOLDEF
=> Displays SPOOL dataset characteristics.

$DU,ALL
=> Displays detailed information about all the JES2 controlled devices.

$DU,RDI
=> Displays the Internal Readers

$E 'job01'
=> Restarts the Job "job01".

$H A
=> JES2 holds all the Jobs that are currently active in that JES2 member.

$HJQ,JM=job*,Q=XEQ
=> JES2 holds all the Jobs matching "job*" as its name in the waiting queue.

$JDDETAILS
> Displays detailed summary of Jobs.

$JD HISTORY
=> Displays history of JES2 resource usage and CPU statistics.

$JD STATUS
=> Checks and displays if JES2 is functioning.

$JSTOP
=> Stops the JES2 monitor. However, JES2 address space restarts it automatically after 32 seconds.

$OJ'job01',Q=ABC
=> Releases the Job "job01" belonging to the classes "A,B and C".

$OJQ,Q=ABC

=> Releases all Jobs belonging to the classes "A,B and C".

$OJ1-10,AGE>2
=> Displays the first 10 batch jobs that are more than 2 days old.

$P
=> Stops JES2 processing. JES2 Initiators, output queues etc,.

$PI4
=> Stops the Initiator "I4" after it completes processing its current jobs.

$P JES2
=> Terminates JES2 normally.

$P JES2,ABEND,FORCE
=> Terminates JES2 abnormally and instantly.


$PJOBQ,Q=PPU,AGE>1
=> Purges the Jobs that are waiting print processing for more than a day.

$PJ'job01'
=> Purges the Job "job01" from the system.


$POJOBQ,Q=ABC,DAYS>1
=> Purges the Job's output of all Jobs belonging to classes "A,B and C" that are older than a day.

$POJOBQ,ALL,PROTECTED,DAYS>3
=> Purges all Jobs that are more than 3 days old.

$PSPL(XXXXX)
=> Purges the POOL volume "XXXXX".

$PSPL(XXXX),CANCEL
=> Cancels all currently processing work on "SPOOL1" SPOOL volume and then drains the volume.

$S
=> Starts JES2 processing, its Initiators etc,.

$SI4
=> Starts the JES2 Initiator "I4".

$S'job01"
=> Starts the Job "job01".

$SSPOOL(SPOOL1),FORMAT,P
=> JES2 formatsa new SPOOL volume "SPOOL1" and then drains it.

$SSPL(SPOOL1),FORMAT,Z
=> JES2 formats the new SPOOL volume "SPOOL1" and then puts it in Halt State.

$t CKPTDEF,NEWCKPT=(DSN=SYS1.CKPTNEW1,VOL=SMS001)
=> Renames the SYS1.HASPCKPT dataset to "SYS1.CKPTNEW1".

$t CKPTSPACE,CKPT1=(CAPACITY=150,UNUSED=2)
=> Modifies the CKPT1 dataset space capacity

$T ESTBYTE,INT=200,OPT=2
=> Modifies the number of bytes of SPOOL space set for Jobs and their output.

$T ESTTIME,INT=120,OPT=YES
=> Modifies the default execution time to 120 seconds. "YES" option lets the Job to still wait(without ABEND'ing) for getting executed and keeps sending warning message $HASP308 every few seconds as specified in INT.

$TI4,C=DEF
=> Modifies the Initiator "I4" such that it accepts Jobs from the classes "D, E and F".

$T 'job01',CLASS=B,P=5
=> Modifies the Job class to "B" for the Job "job01" and sets the priority 5.

$TJQ,/USERID=IBMUSER,/Q=XEQ,CLASS=ABC
=> Modifies the userID and Job class for all Jobs that are awaiting execution.


$TJQ,/AGE>7,PRIORITY=7
=> Modifies the priority for all the Jobs to 7 if they are more than 7 days old.


$T JOBPRTY(2),PRIORITY=14,TIME=3
=> Priority "14" is modified and assigned with priority "2" and a 3 minute limit for execution time is set.

$T OSC,D=M
=> Modifies the mode of OS console message to Message Text only. Also, you can change this value to D=J(Job Name and Job ID is displayed), D=T(Timestamp information is displayed)


$TSPL(SPOOL1),SYSAFF=-MEM3
=> In a MAS configuration, it removes the member "MEM3" from the list of members that are associated with the SPOOL volume "SPOOL1"

$TSPOOLDEF,TGSPACE=(WARN=400),LARGEDS=ALLOWED,TGSIZE=80
=> Increases the SPOOL dataset(SPOOL volume) size.

$ZSPL(XXXX)
=>Halt the SPOOL volume.

$djq,spl=(%>5)
Display all jobs which occupy more than 5% of the spool

$djq,a>5,q=ppu
=>Display all jobs on the print/punch queue more than 5 days old

$djq,q=ppu,type=tsu
  • Display all TSUs on the print/punch queue

$djq’jobname‘,spl
=>isplay spool percent occupied by the named job

$djq,q=ppu,userid
=> Display userid associated with jobs on print/punch queue
$da,x
=>Displays all jobs, including TSU and STC

$DJQ,SPL=%>1 => or $djq,spl=(TGSIZE>n)
Display spool jobs with the maximum spool lines occupied:

$pjq,a>5,q=ppu
=>Purges all jobs on the print/punch queue more than 5 days old

$pjq,q=ppu,type=tsu
=>Purge all TSUs on the print/punch queue

$pjnnnnn
=>Purge JOB number nnnnn

$psnnnnn
=>Purge STC number nnnnn

$ptnnnnn
=>Purge TSU number nnnnn
TSO/ISPF – sd.st –
=>  //P …..// – purge  more job outputs:
$pos’syslog’,a>5
=>Delete SYSLOG output groups more than 5 days old

1 comment:

  1. Showing job queue error while server is running on

    ReplyDelete