user19838037
user19838037

Reputation:

Rexx sleep command

I want to make the CPU go from 0% utilization back to 100% every 10 seconds. Kind of like waves if that makes sense. I was wondering if anybody could help me since I have no clue how to do it.

Upvotes: 0

Views: 425

Answers (2)

Lionel B Dyck
Lionel B Dyck

Reputation: 696

OPSWAIT looks like an OPS/MVS command which the OP may not have.

Here is a general routine that you can model that uses the OMVS (aka USS) sleep function:

/* rexx */                                 
/* call USS sleep routine */               
parse arg sleep_sec .                      
say time()                                 
address 'SYSCALL' 'SLEEP ('sleep_sec')'    
say time()                                 
return 0   

                            

Upvotes: 0

Polluks
Polluks

Reputation: 572

You may try Address TSO "OPSWAIT 10" and some kind of busy loop.

Upvotes: 0

Related Questions