SNDRPTJS (Send Reports using Job Scheduler)

Note: To use this command, have the 5722-JS1 (Job Scheduler for iSeries) licensed program installed.

SNDRPTJS Command syntax diagram

 

Purpose

The Send Reports using Job Scheduler (SNDRPTJS) command allows you to distribute reports to a specified report distribution ID as part of Job Scheduler's report distribution function. This command can be used outside of Job Scheduler in a user's control language program for distributing reports specified in the report distribution ID to the specified recipients.

 

Required Parameters

RPTDSTID
Specifies the name of the report distribution ID whose entries are used when distributing spooled files created by the specified job.

report-distribution-ID: Specify the report distribution ID.

 

Optional Parameters

JOB
Specifies the name of the user job whose spooled files are being distributed.

This job identifier is a three-part qualified name. It can be specified several ways. For example:

job

user-name/job

job-number/user-name/job

*: The job whose spooled files are being distributed is the job where this SNDRPTJS command is issued.

job-name: Specify the qualified name of the job whose spooled files are being distributed. If no job qualifier is given, all jobs currently in the system are searched for the job. If more than one job of the specified name is found, a qualified job must be specified.

user-name: Specify the name of the user of the job whose spooled files are being distributed.

job-number: Specify the number of the job whose spooled files are being distributed.

Example for SNDRPTJS

Example 1: Distributing Reports

SNDRPTJS RPTDSTID(GLEOM)

In this example a job is being distributed using report distribution ID GLEOM.

Error messages for SNDRPTJS

None