Learn the correct JES2 command for clearing the SPOOL in a mainframe environment. Discover the difference between $DOJQ and $POJQ and when to use CANCEL vs PURGE.
Table of Contents
Question
The command used for clearing the SPOOL is?
A. $DOJQ, CANCEL, JOBS>n
B. $POJQ,JOBS>n
C. $POJQ, PURGE,JOBS>n
D. $DOJQ,PURGE,JOBS>n
Answer
The correct command for clearing the SPOOL in a mainframe environment using JES2 is:
C. $POJQ,PURGE,JOBS>n
Explanation
The $POJQ command is used to purge output from the JES2 SPOOL. The PURGE operand specifies that the output should be deleted rather than put in HOLD status. JOBS>n indicates that all jobs with a job number greater than n should be purged.
$DOJQ is used to display the number of jobs queued rather than purge them. And CANCEL would cancel the jobs rather than purging the output.
Therefore, to clear the SPOOL by purging job output, the full correct command is $POJQ,PURGE,JOBS>n. The other options listed would either just display the queued jobs, cancel them, or use the incorrect $DOJQ command.
Wipro Mainframe MySkillz Trendnxt certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Wipro Mainframe MySkillz Trendnxt exam and earn Wipro Mainframe MySkillz Trendnxt certification.