21
Sat, Dec
3 New Articles

Understanding the Basics of Work Management on the iSeries and AS/400

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times
Recently, I stumbled onto a message board where a fellow reader was struggling with work management. It reminded me just how complex work management is. If you don't think so, just print out IBM's 573-page manual and take a look at it. But don't let the manual intimidate you. It's not imperative you understand every single page of the work management guide, and it's not my intention to explain every single aspect of work management in this article. That would be impossible. However, if you simply understand the basic flow, you can then build on your work management knowledge. Understanding the basic flow enables you to troubleshoot and set up your systems much more efficiently. For now, just put the manual down. If you take a step back from the enormity of it and simply use some analogies, understanding the basics of work management can be achieved. Since I'm a big picture person, I want to give you a simplistic view of how jobs are processed on the iSeries.

Simply put, work enters the system, gets processed, and leaves. I think of it like a mall, full of stores that have stuff in it that we want. We go to the appropriate store. We pick out our items. We go home. The key is entering the store first. After all, we can't leave the store first, then enter the store, and then pick out our items. That wouldn't make any sense. Although this analogy is somewhat silly, it does stress the point that there is a logical progression to work management. Now, let's build on this simplistic view.

Keeping with our "store" analogy, we have to address some key components:

Who Is Going to the Store?

This would be our customer. Each user has a unique user profile (Userid) that identifies him on the system. The user profile is set via the Create User Profile (CRTUSRPRF) command. A key parameter of the user profile is the job description. Figure 1 shows an example of how to set the job description parameters.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V600.png

Figure 1: The Additional Parameters screen of CRTUSRPRF lets you set up the job description.

What Store Is the Customer Going To?

Most people don't just blindly go to the store. They have a plan. If they need golf balls or a 60" TV, they need a specific store. This plan is determined by a job description. A job description describes the work coming into the subsystem and contains pieces of information such as Userids, job queues, and routing data. From a basic work management flow, the job queue and routing data are the key components. Job queues point to the desired subsystem. Routing data is a compare value that will help dictate how the job is processed. The job description is set up via the Create Job Description (CRTJOBD) command. If a job description exists, you can display it via the Display Job Description (DSPJOBD) command. The key to remember with this command is to press the F10 function key. Only then will you see the routing data parameter. See Figures 2 and 3.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V601.png

Figure 2: Notice the Job queue (JOBQ) parameter.


Pressing F10 allows you to set the routing data.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V602.png

Figure 3: Set a job description's routing data (QCMDI) from this screen.

In our example, QCMDI is the routing data. This exact value will need to be set up in the subsystem description as a routing entry.

Where in the Store Does the Customer Go?

A store can have multiple departments, and the iSeries or AS/400 uses the same concept. It uses routing entries to differentiate various types of processing. The combination of routing entries and routing data (from the job description) determines how your job will be handled. The routing entry can be set up via the Create Routing Entry (CRTRTGE) command or changed via the Change Routing Entry (CHGRTGE) command. Figure 4 shows the routing entries that are already set up in IBM's QINTER subsystem.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V603.png

Figure 4: The Display Subsystem Description screen shows the routing entries in QINTER.


Pressing 7 brings up the Display Routing Entries screen, as shown in Figure 5.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V604.png

Figure 5: Note the Compare Values on the Display Routing Entries screen.

Remember the QCMDI routing data from the job description in Figure 3? It is an exact match with routing entry sequence number 10 (QCMDI). This means that, upon entering this subsystem, we will use this routing entry to help process our job. Next, we need to display the routing entry details.

What Kind of Service Will the Customer Get?

Customers have individual characteristics and needs. Consequently, they require different attention. Likewise, not every job is processed the same way. In fact, key run attributes are determined by an object called a class. The class can be set up via the Create Class (CRTCLS) command or changed via the Change Class (CHGCLS) command. What's interesting about the class is how it's referenced. Remember our routing entry in the previous section? Class is determined when there is an exact match between the job description routing data and the compare value within the routing data. Since we had an exact match, we will use that routing entry. Pressing F9 (or simply entering a 5 and pressing Enter) displays the routing entry parameters. In Figure 6, we will see the class that is referenced.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V605.png

Figure 6: This screen shows the routing entry points to the class object QINTER.


Finally, we can see class screen in Figure 7.

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V606.png

Figure 7: The Display Class Information screen shows class object parameters.

We just were hit with a lot of work management terms. The table in Figure 8 reviews them, continuing with the "store" analogy.

Store
iSeries or AS/400
Customer
User Profile (Userid)
Store
iSeries or AS/400 System
What the customer needs
Job
Individual store
Subsystem
Plan (what store?)
Job Description & Routing Data
Where in the store does the customer go?
Routing Entry
What kind of service does the customer get?
Class

 

Figure 8: This cross-reference "store" analogy helps to explain work management terminology.

Another way to look at things is via a pictorial view, as shown in Figure 9. Again, we will add in our relative work management objects.

 

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V607.png

Figure 9: Pictorial view of our "store" analogy. Notice the iSeries and AS/400 objects.

The flow in Figure 9 is as follows:

Our customer (Userid) has a plan (Job D & Routing Data) and needs to go to the store (Subsystem).

Her plan (Job D) dictates that she go to the shoe store (her desired subsystem). Because she needs shoes, she ignores the sports and electronics stores (our user doesn't need those subsystems).

Her plan also specifies that she needs red shoes (routing data).

Within the shoe store, the store has two options--black shoes and red shoes. These options represent routing entries. Her red shoes request (routing data) is compared to what is in the store (red shoes and black shoes). Since our request of red shoes matches exactly to the type of shoes in the store (red), we can continue with our purchase (AS/400 processing).

The class indicates that the transaction will happen a certain way. In this case, she gets the shoes on sale.


From an iSeries or AS/400 standpoint only, a basic work management flow would be as shown in Figure 10.

 

http://www.mcpressonline.com/articles/images/2002/WorkManagementArticle%201V608.png

Figure 10: This flowchart represents basic iSeries and AS/400 work management.


Figure 10 shows us the following:

The user profile is set up. It contains a parameter called the job description.

The job description object contains the job queue, which, when active, is attached to an active subsystem. Additionally, the routing data is specified. F10 (Additional Parameters) must be pressed.

Upon entering the subsystem, the routing data from the JOBD is compared with the subsystem routing entry compare value. If it matches, the processing will occur.

Finally, the routing entry points to the class. This determines what priority our job will run in.


So now that you know a few basics, look at your own user profile (DSPUSRPRF). Note the job description it references. Display your job description (DSPJOBD) and note the job queue and routing data. Take it to the next step and look at subsystem description (DSPSBSD). Choose option 7 (routing data) and press F9. Note the compare value parameter and the class it references. Finally, display the class (DSPCLS) and note the priority.


Only the Beginning

The goal of this article was to teach people the basics, not to teach people all facets of work management. I know I barely scratched the surface. However, I did show readers who have never been exposed to work management some basic work management concepts.

There are countless books on the subject by experts whom I would bow to (including iSeries and AS/400 Work Management by IBM's own Chuck Stupca). Trying to teach every aspect in one 1,500 word article would be like trying to teach you how to play golf in one day. That's ridiculous. And that's why you'll find more work management articles coming up in future issues of MC Mag Online. Later, we'll explore system values, routing programs, pools, routing entries, and the difference between interactive and batch work management.

It's now okay to open up the manual. That is, if you can pick it up.

Doug Mewmaw is an 18-year "jack of all trades" IT veteran. He currently works at Boise Office Solutions, a business-to-business catalog order company in Itasca, Illinois, that deals in office products. Doug has been in IT since '83 and lives with his beautiful wife (Cathy) and five children (Stephanie, Abbey, Faith, Matthew, and Andrew). While his kids think he's obsessed with golf, Doug contends that he is merely a passionate golfer. His wish is to someday watch the Masters in person. He can be reached by email at This email address is being protected from spambots. You need JavaScript enabled to view it.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: