开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: Can anyone please share a JCL file with program that takes more than 0 seconds to run?


 

Hello Andre,
?
To my knowledge, on DOS/VS, jobs of different classes (running in different partitions) will execute concurrently. Within a class, POWER dispatches jobs according to their priority (0 to 9, 9 highest), proceeding FIFO if the priorities are the same. On George Shedlock 5-pack, the default priority (when it is not coded in the * $$ JOB statement) is 3 (hard coded in POWER).
?
Here's a suggestion for you. Create a series of jobs like these:
?
* $$ JOB JNM=JOBxx,CLASS=n,DISP=H,PRI=p
* $$ LST CLASS=A,DISP=D,JSEP=0
// JOB Jxx
// LISTIO SYS
// EXEC LSERV
/&
* $$ EOJ
?
For each job number xx, choose a class (n=0,2,3,4) and a priority (p=0,1,...,9), and then submit them. They will be all kept in the reader queue because of the DISP=H parameter. Then release all of them at the same time with the POWER command: PRELEASE RDR,*JOB and check how POWER will dispatch the execution.
?
Cheers,
?
Rene FERLAND, Montreal
?
P.S. -- If you want longer execution, repeat LISTIO and LSERV within the job. On my Mac, running these ten times (inside the same job) took about fifteen seconds real-time.
?

Join [email protected] to automatically receive all group messages.