home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / 3x400 / discus3x.lzh / AS4BCH.THD < prev    next >
Text File  |  1990-10-07  |  4KB  |  59 lines

  1. AS4BCH.THD
  2.  
  3. AS/400 - Running queries in batch queue.
  4.  
  5. Is there any way to run queries in batch as on the S/38? A member suggests one
  6. way, involving predefined queries.
  7. .
  8. .This is an ASCII file.  READ or DOWNLOAD with any supported protocol.
  9. Upl: Anne E. Pruitt 72335,777
  10.  
  11. BATCH AS/400 IBM QUERY QUEUE     
  12.  
  13.                                                                               
  14. #: 29754 S5/Technical-Big Sys                                                 
  15.     22-May-90  12:37:21                                                       
  16. Sb: AS/400 Query in Batch?                                                    
  17. Fm: Tom Quinn 71101,3176                                                      
  18. To: All                                                                       
  19.                                                                               
  20. Here's a question for AS/400 gurus.  When we used to use a S/38 we could      
  21. easily run our Queries in batch just by selecting a batch queue.  The Query on
  22. the AS/400 doesn't give the option and our MIS people say AS/400 Query cannot 
  23. be run in batch.  We find this hard to believe.  What's the scoop?  Thanks.   
  24.                                                                               
  25. #: 29809 S5/Technical-Big Sys                                                 
  26.     22-May-90  18:23:51                                                       
  27. Sb: #29754-#AS/400 Query in Batch?                                            
  28. Fm: will cardwell 71560,1006                                                  
  29. To: Tom Quinn 71101,3176 (X)                                                  
  30.                                                                               
  31. You can run query in batch.  The problem is, you have to submit the RUNQRY    
  32. command and run a predefined query.  There is no way to force a user to do    
  33. this or even to offer him the option if he uses the IBM supplied menus.  The  
  34. typical user wants to define a query and then run it.  When you allow the user
  35. to do this, it will always be run interactively.                              
  36.                                                                               
  37. What I have done on my client's system is create a subsystem specifically for 
  38. query.  When a user wants run run query, he selects an option off of one of my
  39. menus.  The CL program controlling the menu transfers the user to the query   
  40. subsystem by way of the TFRJOB command and calls another CL program to run    
  41. Query (STRQRY).  The subsystem definition contains a routing entry and class  
  42. which cause the query job to run at a priority lower than normal interactive  
  43. work.  The subsystem also has its own storage pool.  Therefore, even though   
  44. the user is defining and running his queries interactively, there is minimal  
  45. impact on the other interactive users.   When the query user is finished, a   
  46. "return" from query returns to the CL program in the query subsystem which    
  47. then does a TFRJOB back to QINTER.                                            
  48.                                                                               
  49. #: 29834 S5/Technical-Big Sys                                                 
  50.     22-May-90  20:52:57                                                       
  51. Sb: #29809-AS/400 Query in Batch?                                             
  52. Fm: Tom Quinn 71101,3176                                                      
  53. To: will cardwell 71560,1006                                                  
  54.                                                                               
  55. Thanks for the info.  Running at a lower priority would not help us.  What we 
  56. need to do is free up the users from having to wait while their queries are   
  57. being run.  It would be nice if they could submit several and go onto         
  58. something else.  I find it curious that the batch option was dropped in the   
  59. AS/400.