Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to create multiple spool requests at once?

tomas_lindberg
Participant
0 Likes
596

We are setting up alarms in CCMS for when the spool is about to get full.

I want to create several thousand spools automatically to try the alarm settings out and make sure that it works.

This doesn't seem possible to do in SPAD, as only one spool is created, and the maximum to create at a time is 250.

It also seems that it the minimum value that the system takes is 99.000 so I'm not able to lower this value to make an easier percentage alarm test.

I would like to either fake the number of spools so that the alarm is triggered, or if anyone can explain how to create a job that increases the number of spoolrequests so that I can verify the alarm thersholds.

Thanks

Tomas

1 ACCEPTED SOLUTION
Read only

Subhankar
Active Contributor
0 Likes
528

Hi ..

One thing you can do. Create two separate test program. In one program write simple one write statement and from another program submit the previous prog via job .

do 1000 times.

call function 'JOB_OPEN'

exporting

jobname = l_name "Job Name

importing

jobcount = l_number "Job Number

exceptions

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

others = 4.

if sy-subrc = 0.

  • Submit the job in background

submit z2nd_prog

via job l_name number l_number and return.

if sy-subrc = 0.

call function 'JOB_CLOSE'

exporting

jobcount = l_number

jobname = l_name

strtimmed = 'X'

exceptions

cant_start_immediate = 1

invalid_startdate = 2

jobname_missing = 3

job_close_failed = 4

job_nosteps = 5

job_notex = 6

lock_failed = 7

others = 8.

enddo.

We are setting up alarms in CCMS for when the spool is about to get full.

I want to create several thousand spools automatically to try the alarm settings out and make sure that it works.

This doesn't seem possible to do in SPAD, as only one spool is created, and the maximum to create at a time is 250.

It also seems that it the minimum value that the system takes is 99.000 so I'm not able to lower this value to make an easier percentage alarm test.

I would like to either fake the number of spools so that the alarm is triggered, or if anyone can explain how to create a job that increases the number of spoolrequests so that I can verify the alarm thersholds.

Thanks

Tomas

2 REPLIES 2
Read only

Subhankar
Active Contributor
0 Likes
529

Hi ..

One thing you can do. Create two separate test program. In one program write simple one write statement and from another program submit the previous prog via job .

do 1000 times.

call function 'JOB_OPEN'

exporting

jobname = l_name "Job Name

importing

jobcount = l_number "Job Number

exceptions

cant_create_job = 1

invalid_job_data = 2

jobname_missing = 3

others = 4.

if sy-subrc = 0.

  • Submit the job in background

submit z2nd_prog

via job l_name number l_number and return.

if sy-subrc = 0.

call function 'JOB_CLOSE'

exporting

jobcount = l_number

jobname = l_name

strtimmed = 'X'

exceptions

cant_start_immediate = 1

invalid_startdate = 2

jobname_missing = 3

job_close_failed = 4

job_nosteps = 5

job_notex = 6

lock_failed = 7

others = 8.

enddo.

Read only

tomas_lindberg
Participant
0 Likes
528

Thanks Subhankar, this was what I was looking for.

Best Regards

Tomas