FAQ

How do i turn a filejob in OPRS into a prestart job?

How do i turn a filejob in OPRS into a prestart job?

BUREPFJB

 

This command is used to convert a filejob in OPRS, to a PJ in the PDSOPRS subsystem.

Use F4 to initate a command prompt, using the default values usually works just fine.

The benefit of always using PJ instead of a scheduled job, is that when the server has been down for backup/IPL/Maintainance, all the necessary jobs in the PDSOPRS subsystem will be started automatically.

How do i use OPRS to change to summertime/wintertime?

How do i use OPRS to change to summertime/wintertime?

The recommended way to change from wintertime to summertime is manually as follows:
-  Change the execution time for jobs scheduled with in the next hour  if needed.
GO PJOB
Select option 2="Work with scheduled jobs"
-  Stop applications
-  Make sure no important jobs are running in the OPRS subsystem
WRKACTJOB
- Stop the OPRS subsystem
ENDSBS   PDSOPRS   *IMMED
- Change the system value
WRKSYSVAL   QHOUR
Use Option 2=Change to set the system time
-  Start the OPRS subsystem
STRSBS   PDSOPRS
Note: Many applications and servers (such as Domino servers) may also need to be stopped while changing the system time.


Another solution is to schedule a file job containing the following commands:
Filejob SUMMERTIME:
CHGSYSVAL SYSVAL(QHOUR) VALUE('03')
ENDPJ  PDSOPRS  BUBMUPR  *IMMED
DLYJOB 15
STRPJ  PDSOPRS  BUBMUPR
Use the following attributes when scheduling the job:
Time for execution:                0201
Text                                Change to summer time
Sequence                        8 = Once
First execution:                30/03/07   Sunday
Command:                        PEXCFILJOB  SUMMERTIME
Job (on page 2):                SUMMERTIME
You may also need to change the execution time for jobs scheduled between 0201 to 0305 on sunday.
GO PJOB
Select option 2="Work with scheduled jobs"

How do i hold jobs in a particular time period?

How do i hold jobs in a particular time period?

You will need version 9 of OPRS to use this function. You can find the version number on the top of the main menu in OPRS. Contact us for the latest version if you have an older version.

If you are going away on a holiday, or running some maintenance on the system in a weekend, you can use the function “Calendar Entries” to prevent jobs from being run in that particular period of time. Instead of using the job scheduler “hold” function for each and every job, you will find the “Calendar Entries” much easier to use.

Here is what you do:

If you want all the jobs in a period of time to be held, skip the next section. If only certain types of jobs are to be held, and you already have given them a 3 digit code in the job scheduler, you will need to register that code in the “Calendar Entries” system.

Say your report jobs are categorized in the job scheduler with the code “REP”. Now you need to register the code “REP” in the “Calendar Entries” system. This is what you do:

From the main menu of OPRS, choose menu option 4: Job Scheduling Menu, and then choose menu option 8: Work with group codes and authorization. Hit F6 to add a new group, call it “REP”, and enter a description for it, for instance “My Report Jobs”

At this point, you either have a valid group code for the jobs you would like to hold, or you just want all jobs to be held for a period of time. The next thing you need to do is specify the from and to dates. On the Job Scheduling Menu, choose menu option 9: Work with calendar entries. Hit F6 to add a new interval of time. Enter *ALL in the first field if you want all jobs in that time period to be held, or the code “REP” that you registered earlier if for instance only your report jobs are to be held. Then specify from and to date, and you are done.

To confirm what jobs are being affected, choose menu option 2: Work with scheduled jobs and on the right-hand side of the screen you will see the text “Calend” on the jobs that are being held due to an entry in the “Calendar Entries” system.

Note: When you schedule jobs, you have the option to specify whether a job should be affected by the “Calendar Entries” system or not. You will see a parameter that can be set to “Y” or “N”, like this: Hold on calendar days    Y          Y=Yes, N=No

If you choose “N” here, this job will not be held even if it qualifies by *ALL or group name.

How can i locate scheduled jobs with a certain output queue?

How can i locate scheduled jobs with a certain output queue?

You may use F10=Subset from from the "Work with jobs to schedule" display to search for jobs with a certain job name, job queue and etc. However, "Output Queue" is not one of the fields available on the "Subset jobs" display. Instead you can use Query to display information in the file.

E.g. :   Runqry   *none   BUBSREP  rcdslt(*yes)

Files that could be of interrest:

BUBSREP - Jobs to schedule

BUA9REP - File jobs

BUCAREP - Scheduled jobs

In addition you may use the "Work with job parameters" on the PPARM menu to verify output queues used by OPRS.

PPRTDSKINF - how to omit library from "possible old, test or temp. objects report.

PPRTDSKINF - how to omit library from "possible old, test or temp. objects report.

The selection criteria is stored in a message. Use the following command to work with the message description:

Wrkmsgd  OPR0326  BUOPMSG

The message looks this:

Message:

Query selection to be made when looking for temporary,
test or old versions of objects. Enter selection as Second level text.

Second Level message:

ODOBNM *eq %wldcrd("*TEMP*") *or ODOBNM *eq %wldcrd("*tmp*") *or ODOBNM *EQ
%wldcrd("*TEST*") *or ODOBNM *eq %wldcrd("*TST*") *or ODOBNM *eq        
%wldcrd("*001") *or ODOBNM *eq %wldcrd("*OLD")

To omit a certain library from the report, you can change the second level text as shown in the example below:

(ODOBNM *eq %wldcrd("*TEMP*") *or ODOBNM *eq %wldcrd("*tmp*") *or ODOBNM *EQ
%wldcrd("*TEST*") *or ODOBNM *eq %wldcrd("*TST*") *or ODOBNM *eq          
%wldcrd("*001") *or ODOBNM *eq %wldcrd("*OLD")
) *and ODLBNM *NE "BUENGGEN"

How do i check what version of OPRS i have?

How do i check what version of OPRS i have?

Sometimes you will need to know what release of OPRS you are running. Specially if you are about to upgrade your OS or OPRS itself, you need to know what release you have. When you contact us about anything releated to OPRS, one of the first questions that we will ask you, is what version of OPRS you are running.

The answer is right in front of you, hit PDS and Enter, and then look at the top of the screen, it will say something like: OPRS Major menu - Release X.X. where X symbolize the actual release number, i.e. 9.3. If you dont use the standard delivered PDS command for accessing the OPRS system, use the one you created instead.