Information Systems:Change Job Queue for ASW Program
Programs can run either interactively, or in batch (background). When a job is submitted to batch, it goes into a lineup, or ‘queue’. Usually, ASW jobs go into a queue named QBATCH, which is set up to submit two jobs at a time. There are some jobs that can take a long time to run, and if two are submitted around the same time (say at month end) no other jobs will run until they are complete. In that case users start calling IT to find out why things aren’t working.
We have changed several of these long running jobs to a different job queue, so that they do not block normal production jobs.
ASTC450 run query application FSC551 print A/R & A/P analysis list INVC401 inventory calculation RWRC252 print Report Writer version report RWRC256 print Report Writer line report
First find the name of the program. If it is currently running, you can look at the job log. Key in WRKACTJOB SBS(QBATCH) and press enter. Use option 5 to work with the job, then option 10 to display the job log. Press F10 to display all messages.
Display All Messages
System: BART
Job . . : AMTRDR_VAA User . . : ASW4OWN Number . . . : 968616
>> CALL PGM(ASGC900) PARM('ASTC921 ' 'Y' 'AMTRDR AMTADM
Y')
Member SR3PWF file SR3PWF in XX1480BP opened.
Member SRBCTLAP file SRBCTLAP in UP1480BFVA opened.
Member SRBCTLAU file SRBCTLAU in UP1480BFVA opened.
Member SRBCTLSE file SRBCTLSE in UP1480BFVA opened.
Member SRBCTLSI file SRBCTLSI in UP1480BFVA opened.
Member SRBPWA file SRBPWA in XX1480BP opened.
In this case, ASTC921 is the name of the program.
If the job is not currently running, but you know the menu and option number, you can look it up in the ASW menu system. For example,
*PL/480B* Asset Mgmt Physical Analysis Tasks 5/02/14 14:21:23 AACANALP
Select one of the following: Application SoftWare
Release: XX1:480
1. Print assets
2. Print insurances
3. Print insurance assets
4. Print locations
5. Print service list
6. Print service assets
7. Print warranty control list
8. Print reference assets
9. Print asset labels
10. Print asset comments
Selection or command (C) IBS 1989-2002
===>
F3=Exit F4=Prompt F9=Retrieve F12=Cancel
F13=Information Assistant F16=System main menu
Key in GO MEDEA, and press enter.
*PL/480B* Menu Handling Tasks 5/02/14 14:22:54 MEDEA
Select one of the following: Application SoftWare
Release: XX1:480
1. Work with menu items
2. Work with menus
3. Display menu option
Selection or command (C) IBS 1989-2002
===> 2
F3=Exit F4=Prompt F9=Retrieve F12=Cancel
F13=Information Assistant F16=System main menu
Select option 2 Work with menus. Key the name of the menu into ‘position to’, and press enter.
Work with Menus ASGD4501
Subset . . . . . . . . *ALL
Position to . . . . . AACANALP Starting characters
Type option (and Menu), press Enter.
1=Create 2=Revise 3=Copy 4=Delete 5=View 6=DW-Document 7=Rename
11=Move menu 14=Create Menu 15=Translate
Opt Menu Library Subset Description MEDEA
5 AACANALP *APP *STANDARD Asset Mgmt Physical Analysis Tasks YES
__ AACFIN *APP *STANDARD Asset Management Financial Tasks YES
__ AACMAIN *APP *STANDARD Asset Management Tasks YES
__ AACPER *APP *STANDARD Asset Control Periodical Tasks YES
__ AACPHY *APP *STANDARD Asset Management Physical Tasks YES
__ AACSET *APP *STANDARD Asset Control Setup Tasks YES
__ AACYEAR *APP *STANDARD Year End Tasks YES
__ ACACCON *APP *STANDARD Account Control Tasks YES
__ ACBUDGET *APP *STANDARD Investment Budget Tasks YES
__ ACCOUNT *APP *STANDARD G/L Accounting Control Tasks YES
F1=Shift info F3=Exit F5=Refresh F6=Create DW-document F8=Select subset
F9=Menu items - Where used F11=Display by desc F12=Cancel F13=Repeat
Use option 5 and enter to view menu details. Press enter again to view menu options.
View Menu Options ASGD4522
Menu . . . . . . . . . . . . . . AACANALP
Library. . . . . . . . . . . . *APP
Subset . . . . . . . . . . . . . *STANDARD
Menu Description . . . . . . . . Asset Mgmt Physical Analysis Tasks
Type option, press Enter.
5=View 6=Print 8=X-ref
Op MO Menu item Subset Description
_ 1 AA475 *STANDARD Print assets
_ 2 AA460 *STANDARD Print insurances
_ 3 AA465 *STANDARD Print insurance assets
5 4 AA330 *STANDARD Print locations
_ 5 AA450 *STANDARD Print service list
_ 6 AA455 *STANDARD Print service assets
_ 7 AA468 *STANDARD Print warranty control list
_ 8 AA541 *STANDARD Print reference assets
_ 9 AA478 *STANDARD Print asset labels
_ 10 AA380 *STANDARD Print asset comments
F3=Exit F5=Refresh F12=Cancel
Use option 5 and enter the view menu item.
View Menu Item ASGD4526
Menu . . . . . . . . . . AACANALP
Library. . . . . . . . *APP
Subset . . . . . . . . . *STANDARD
Menu Description . . . . Asset Mgmt Physical Analysis Tasks
Menu Option. . . . . . . 4
Menu Item. . . . . . . . AA330
Menu Item Description. . Print locations
Menu Item Command. . . . CALL PGM(ASGC800) PARM('AACR330 ' '*MNUITM ' '*A
PCDMNU ' '00')
Menu Item subset . . . . *STANDARD
Menu Item identity . . .
Menu Item mod.number . .
Menu Item change date. .
In this case, AACR330 is the program that will prompt, then submit the program that runs in batch. To find the name of that program, run Query on file SROCTLBP in library UP1480BS. Select records where field CTSPGM is equal to the start up program, or in this example, 'AACR330'.
Display Report
Report width . . . . . : 138
Position to line . . . . . Shift to column . . . . . .
Line ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+...10....+.
Program Batch Sub Identity Release Mod Change Description Routine ID DSP Start up
typ set level no date WND program
key Y/N
AACC331 1 9 Print location file AA370 N AACR330
****** ******** End of report ********
F3=Exit F12=Cancel F19=Left F20=Right F21=Split F22=Width 80
AACC331 is the program name we want.
Key in GO JOBCON and press enter to go to the job control tasks menu.
*PL/480B* Job Control Tasks 5/02/14 15:16:42 JOBCON
Select one of the following: Application SoftWare
Release: XX1:480
1. Work with batch programs
2. Work with job control table
3. Display batch routine window
4. Activate save-parameter function
5. Reorganise batch parameter file
6. Work with printer file overrides
70. Direct job control tasks
Selection or command (C) IBS 1989-2002
===>
F3=Exit F4=Prompt F9=Retrieve F12=Cancel
F13=Information Assistant F16=System main menu
Select option 2 Work with job control table.
*PL/480B* Job control table maintenance 6/26/09 10:39:01 ASGD0291
-------------------------------------------------------------------------------
Program............. RWRC252 Name, *ALL, F4 for list
User................ *ALL Name, *ALL, F4 for list
Copy from
Program............. __________ F4 for list
User................ __________
Key in the program name, user *ALL, and press enter.
*PL/480B* Job control table maintenance 6/26/09 10:41:20 ASGD0292
-------------------------------------------------------------------------------
Program............. RWRC252 Print summary report Batch type 1
User................ *ALL
-------------------------------------------------------------------------------
Sq Keyword Line Parameter
-------------------------------------------------------------------------------
Sq Keyword Line
F1=Shift info F8=Resequence line number F10=Add job schedule entry
Press F6 to add.
*PL/480B* Job control table maintenance 6/26/09 10:43:00 ASGD0294
-------------------------------------------------------------------------------
Program............. RWRC252 Print summary report Batch type 1
User................ *ALL
-------------------------------------------------------------------------------
Keyword............. JOBQ F4 for list
Line number......... 10
Parameter........... QBATCH3
Copy to
Keyword.............
Line number.........
F8=Execute command F9=ASW command list F10=Work with parameters