Link to home
Start Free TrialLog in
Avatar of jingyizou
jingyizou

asked on

Scheduled Job

Our AS/400 IPL everynight. It does backup first, then system cleaning and IPL. I'm just trying to find out where those jobs get defined?
Avatar of Member_2_276102
Member_2_276102

jingyizou:

Hard to be certain since there are multiple possibilities.

The cleaning is likely scheduled through the GO CLEANUP menu. The IPL might be scheduled through the GO POWER menu. The backup might be scheduled through the GO BACKUP menu.

I figure none are scheduled through the standard job scheduler since that's probably the first place you looked and some functions can be tricky to make work through there. But you might want to review the list of scheduled jobs through the WRKJOBSCDE command just to see what else might be affecting the others.

If none of those show anything useful, let us know. There are some more difficult procedures possible.

Tom
It is possible you have a single job scheuled though WRKJOBSCDE which calls a CL program to perform all or some of the functions...  

It could back up the system, do the system clean (not sure what this covers) and then power down the system with option restart(*YES)
>> this would perform an abbreviated IPL.

It could back up the system, do the system clean (not sure what this covers), set the system value QIPLDATTIM for an auto-IPL and then powerdown the system with option restart(*NO)

Or as Tom has suggested you may have IPL's scheduled through the GO POWER menu.. the CL program could back up the system, do the system clean (not sure what this covers) and then powerdown the system with option restart(*NO)


Tony.
Avatar of jingyizou

ASKER

Tony, Tom, thank you for you guys quick response.

I went to go power, there is nothing schedule there. See following screenshot

                         Display Power On/Off Schedule                  
                                                             05/10/06  16:26:25
 Start list at  . . . . . . . .              Date                              
                                                                               
                     Power     Power                                            
 Date      Day       On        Off       Description                            
 05/10/06  Wed                                                                  
 05/11/06  Thu                                                                  
 05/12/06  Fri                                                                  
 05/13/06  Sat                                                                  
                                                                               
 05/14/06  Sun                                                                  
 05/15/06  Mon                                                                  
 05/16/06  Tue                                                                  
 05/17/06  Wed                                                                  
 05/18/06  Thu                                                                  
 05/19/06  Fri                                                                  
 05/20/06  Sat                                                                  
                                                                               
                                                                        More...
 Press Enter to continue.                                                      
                                                                               
 F1=Help   F3=Exit   F12=Cancel          

Then I ran wrkjobscde, see following screenshot (2 pages)

--Page 1--

                         Work with Job Schedule Entries                
                                                             05/10/06  16:27:31
                                                                               
                                                                               
 Type options, press Enter.                                                    
   2=Change   3=Hold   4=Remove   5=Display details   6=Release                
   8=Work with last submission    10=Submit immediately                        
                                                                               
                                                                    Next        
                          -----Schedule------             Recovery  Submit      
 Opt  Job         Status  Date       Time      Frequency   Action   Date        
      QEZBKTMFRI   SCD    *FRI       20:30:00  *WEEKLY    *NOSBM    05/12/06    
      QEZBKTMMON   SCD    *MON       20:30:00  *WEEKLY    *NOSBM    05/15/06    
      QEZBKTMTHU   SCD    *THU       20:30:00  *WEEKLY    *NOSBM    05/11/06    
      QEZBKTMTUE   SCD    *TUE       20:30:00  *WEEKLY    *NOSBM    05/16/06    
      QEZBKTMWED   SCD    *WED       20:30:00  *WEEKLY    *NOSBM    05/10/06    
      QSDAUTOTST   SCD    *TUE       15:00:00  *WEEKLY    *SBMRLS   05/16/06    
      Q3BB         SCD    *ALL       01:14:04  *WEEKLY    *SBMRLS   05/11/06    
                                                                        More...
 Parameters or command                                                          
 ===>                                                                          
 F3=Exit   F4=Prompt          F5=Refresh   F6=Add    F9=Retrieve                
 F11=Display job queue data   F12=Cancel   F17=Top   F18=Bottom                
 
--page 2--                                                                              
                         Work with Job Schedule Entries                
                                                             05/10/06  16:27:31
                                                                               
                                                                               
 Type options, press Enter.                                                    
   2=Change   3=Hold   4=Remove   5=Display details   6=Release                
   8=Work with last submission    10=Submit immediately                        
                                                                               
                                                                    Next        
                          -----Schedule------             Recovery  Submit      
 Opt  Job         Status  Date       Time      Frequency   Action   Date        
      STARTWTR     SCD    USER DEF   06:00:00  *WEEKLY    *SBMRLS   05/11/06    
                                                                                                                                      Display detail for job Q3bb, i can see command field as following
                                     
 Command  . . . . . . . . . . . :   CALL PGM(QSYS/QYPSSTRT) PARM(X'000003BB' X'0
0000001' 0 0)          

Any idea what's the program for?

Display detail for job STARTWTR,

                       Display Job Schedule Entry Details                      
                                                             System:   MAESTRO  
 Job:   STARTWTR       Entry number:   000118     Status:   SCD                
                                                                               
 Next submit date . . . . . . . :   05/11/06                                    
 Command  . . . . . . . . . . . :   CALL PGM(STARTWTR)                          
                                                                               
                                                                               
 Job queue  . . . . . . . . . . :   *JOBD                                      
   Library  . . . . . . . . . . :                                              
 Job queue status . . . . . . . :                                              
 Job description  . . . . . . . :   *USRPRF                                    
   Library  . . . . . . . . . . :                                              
 Scheduled by . . . . . . . . . :   TEST1                                      
 User profile . . . . . . . . . :   QSECOFR                                    
 Message queue  . . . . . . . . :   *USRPRF                                    
   Library  . . . . . . . . . . :                                              
 Text . . . . . . . . . . . . . :                                              
                                                                               
                                                                         Bottom
 Press Enter to continue.                                                      
                                                                               
 F3=Exit   F6=Display last successful submission   F12=Cancel                  

The library filed is blank, how can i find pgm startwtr?
                                                         
                                                                                                   
                                                                               
                                                                               
                                                                               
                                                                               
                                                                         Bottom
 Parameters or command                                                          
 ===>                                                                          
 F3=Exit   F4=Prompt          F5=Refresh   F6=Add    F9=Retrieve                
 F11=Display job queue data   F12=Cancel   F17=Top   F18=Bottom                
                                                                               
                                       
                                                                               

ASKER CERTIFIED SOLUTION
Avatar of Member_2_276102
Member_2_276102

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry... I meant Tony might have other thoughts (though Barry might also, not to mention Dave and...)

Tom
Hi
cleanup is the best option as there is an option for schedule power off, the screen will look like this.



                             Change Cleanup Options                    
                                                             16/06/06  15:44:22
 Type choices below, then press Enter.                                          
                                                                               
 Allow automatic cleanup . . . . . . . . . . . . .   Y             Y=Yes, N=No  
                                                                               
 Time cleanup starts each day  . . . . . . . . . .   04:30:00      00:00:00-    
                                                                   23:59:59,    
                                                                   *SCDPWROFF,  
                                                                   *NONE        
                                                                               
 Number of days to keep:                                                        
   User messages . . . . . . . . . . . . . . . . .   10            1-366, *KEEP
   System and workstation messages . . . . . . . .   10            1-366, *KEEP
   Job logs and other system output  . . . . . . .   7             1-366, *KEEP
   System journals and system logs . . . . . . . .   40            1-366, *KEEP
                                                                               
                                                                               
                                                                               
 F1=Help   F3=Exit   F5=Refresh   F12=Cancel                                    

Dave