Troubleshooting
Problem
This document steps the user through creating a new environment for Advanced Job Scheduler that can be used in an HA environment.
Resolving The Problem
Creating a New Environment
The data library can also be created using System i Navigator or System Director Navigator. This feature is available starting in V6R1 client access or access for Windows.
In Navigator, right click the Advanced Job Scheduler and select Properties. Then select the Data Libraries tab. Select Add and fill in the new library name, description, and so on. Make sure to check the Create data library as in the screen shot below:

In Systems Director Navigator, expand Work Management, then All Tasks. Expand Advanced Job Scheduler and select Properties. Then select Data Libraries and New. Fill in the same information.
Steps Needing to be Done at Switch-Over Time
AJSTOOLS Library
The instructions for the AJSTOOLS library follow. The AJSTOOLS53 savefile is good for V5R3 or V5R4. Within the tools, there are two commands:
1. SETDLJS can set the data library for any user.
2. CHGDLJS can change the monitor field for any data library.
The SETDLJS command is used to change a user's Data library. This is the same as using the GUI and changing the User. In V5R4, there is a new option from the Systems Controls menu where a user can change their data library and the monitor field of a data library.
The CHGDLJS command is good for the switchover in order to change the Monitor field from *YES to *NO and *NO to *YES. After the CHGDLJS command, you can run a STRJS DTALIB(??????) to start the monitor for that environment.
Note: These three commands are now shipped with the product starting in V6R1 OS.
Lastly, here is an article about multiple scheduling environments that might be helpful. Refer to the following URL:
http://www.ibmsystemsmag.com/i5/june06/tipstechniques/6294p1.aspx?ht=
Here is the tool in a save file:

| 1. | ENDJS DTALIB(*ALL) |
| 2. | Using a program from the AJSTOOLS library: CALL AJSTOOLS/DUPAJS QUSRIJSNEW This will create a clean data library that is taking place of QUSRIJS. |
| 3. | RNMOBJ QUSRIJS *LIB AJSSYSA This library can be any name. It is now the main library for system A. This will need to be replicated to system B. |
| 4. | RNMOBJ QUSRIJSNEW *LIB QUSRIJS This library should be backed up periodically or replicated to the other system to a totally different library name. We are doing this because a QUSRIJS has to exist for the product. |
| 5. | Add the data libraries back to the list of data libraries using the GUI. This should include the AJSSYSA library and your existing QUSRIJSB and on other system QUSRIJSP. Make sure to set Monitor flag correct. |
| 6. | If the list of users need to be copied, issue the following command: CPYF FROMFILE(AJSSYSA/QAIJSUSR) TOFILE(QUSRIJS/QAIJSUSR) MBROPT(*ADD) This step may not be needed. This is if you only have a group of users listed in the 'Users' tab in AJS. |
| 7. | Change the default data library. CHGDTAARA DTAARA(QIJS/QRIJSLIB) VALUE(AJSSYSA) or whatever you named the library taking place of QUSRIJS. |
| 8. | STRJS DTALIB(AJSSYSA) OR *ALL, if you have the monitoring set correctly. Most likely, QUSRIJS is going to be active or will start at IPL as the default is *ALL. |
In Navigator, right click the Advanced Job Scheduler and select Properties. Then select the Data Libraries tab. Select Add and fill in the new library name, description, and so on. Make sure to check the Create data library as in the screen shot below:

In Systems Director Navigator, expand Work Management, then All Tasks. Expand Advanced Job Scheduler and select Properties. Then select Data Libraries and New. Fill in the same information.
Steps Needing to be Done at Switch-Over Time
| 1. | ENDJS DTALIB(*ALL) |
| 2. | AJSTOOLS/CHGDLJS and set current data library to *NO-this sets the monitor function |
| 3. | AJSTOOLS/CHGDLJS and set new data library to *YES-this sets the monitor function |
| 4. | Run an SQL statement over file QUSRIJS/QAIJSUSR and change the USLIB from the current data library to the new data library. This is one of the steps to set all users to go to the new data library. This step only needs to be done if users are listed in the 'Users' tab in GUI. |
| 5. | Use this command to change data area QIJS/QRIJSLIB: CHGDTAARA DTAARA(QIJS/QRIJSLIB) VALUE(AJSSYSA) |
| 6. | Finally, do a STRJS DTALIB(*ALL), or you can do it for the specific data library. This is your preference; however, by doing Steps 2 and 3, only the new one should start if you do *ALL. |
AJSTOOLS Library
The instructions for the AJSTOOLS library follow. The AJSTOOLS53 savefile is good for V5R3 or V5R4. Within the tools, there are two commands:
1. SETDLJS can set the data library for any user.
2. CHGDLJS can change the monitor field for any data library.
The SETDLJS command is used to change a user's Data library. This is the same as using the GUI and changing the User. In V5R4, there is a new option from the Systems Controls menu where a user can change their data library and the monitor field of a data library.
The CHGDLJS command is good for the switchover in order to change the Monitor field from *YES to *NO and *NO to *YES. After the CHGDLJS command, you can run a STRJS DTALIB(??????) to start the monitor for that environment.
Note: These three commands are now shipped with the product starting in V6R1 OS.
Lastly, here is an article about multiple scheduling environments that might be helpful. Refer to the following URL:
http://www.ibmsystemsmag.com/i5/june06/tipstechniques/6294p1.aspx?ht=
Here is the tool in a save file:
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000CNEAA2","label":"Advanced Job Scheduler"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions"}]
Historical Number
515865866
Was this topic helpful?
Document Information
Modified date:
08 October 2024
UID
nas8N1013150