23
Mon, Dec
3 New Articles

Demystifying AS/400 Subsystems

Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

Have you ever wondered what happens in a subsystem? Find out about several of the most common subsystems and how to tailor a subsystem for specific uses.

All of us have things we like to tinker with. As a youngster, I ruined my uncle’s pocket watch while examining its many springs and gears. As I got older, my fascination turned to cars, and eventually, I became a pretty good, self-acclaimed “Saturday afternoon mechanic.” When I began working on the AS/400, that same love for tinkering continued: I want to understand just what’s going on.

Understanding Begins Here

A subsystem is an AS/400 object that controls job queues, display stations, memory, how many jobs can run in that subsystem, and many other things. Throughout this article, I refer to the information you see when using the Work With Subsystem Description (WRKSBSD) command. To follow along, enter WRKSBSD SBS(QINTER) at a command line and press Enter. Then, select option 5. You should see the following subsystem attributes:

• Operational attributes. This component tells what sign-on display file is being used. The default is QSYS/QDSIGNON. For those who want to know where to change a subsystem’s sign-on display file, it is here. It also tells how many jobs the subsystem can run simultaneously.

• Pool definitions. Each subsystem needs memory to allocate to the jobs running in it. The pool definition tells the system which memory pool to grab memory from when the subsystem is active.

• Autostart jobs. If you need to automatically start particular jobs when the subsystem is activated, you will see those jobs listed here.

• Workstation name entries. You may want to allow only certain display stations to run in certain subsystems. With the Add Workstation Entry (ADDWSE) command, you can set up any workstation name to be allowed to run in this subsystem.

• Workstation type. If you want to add certain types, such as ASCII workstations, add them through the ADDWSE command.

• Job queue entries. This attribute specifies the name and library of the job queue attached to this subsystem.

• Routing entries. This component tells the subsystem what to do with the jobs that pass through it.

• Communications entries. If you work remotely with any device, you can add that communications device to the subsystem description by using the Add Communications Entry (ADDCMNE) command.

• Prestart job entries. You start this type of job before any other type of job in the subsystem. You can initiate it with the Add Prestart Job Entry (ADDPJE) command.

Interactively Speaking

Now that you know the components of a subsystem, take a look at the subsystem IBM supplies for your interactive needs: QINTER. The interesting thing about QINTER is that you can assign specific workstation entries to it. Notice that there are two default entries, *ALL and *CONS. These reserved entries specify all workstation types, including the system console, that can be active in this subsystem. Basically, by starting subsystem QINTER, any user who is able to connect to your AS/400 will see a sign-on screen, although without a valid user profile and password, that user won’t be able to log on.

Batch Me Up, Scotty

Now, let’s explore the IBM-supplied default subsystem for batch work, QBATCH. When you submit a job by using the Submit Job (SBMJOB) command, it is submitted to a job queue. This job queue must be attached to an active subsystem for these jobs to actually begin running. If the subsystem is not active, the jobs wait until the subsystem that the job queue is assigned to becomes active. Some of the attributes you find when you view this subsystem description are Operational attributes, Pool definitions, Routing entries, and the thing that makes this subsystem unique, Job queue entries.

Take a look at the Job queue entries attribute. Three Job queue entries are listed: QBATCH, QS36EVOKE, and QTXTSRCH. Look closely, and you’ll notice that each entry has a Max Active value assigned to it. This value tells you the maximum number of jobs that can be active at the same time in this subsystem. Notice that the IBM-supplied and unmodified QBATCH allows only one job to be active, while the other two do not have a maximum number specified for them. The Max by Priority entries you see all contain asterisks. This means that multiple jobs can run at the Job Priority. (The Job Priority is specified on the JOBPTY parameter of the SBMJOB command.) Even though multiple jobs can be specified at any of these priorities, only one job can run at a time. Jobs submitted with a JOBPTY of 1 will run before jobs submitted with a JOBPTY of 5, for example. (See Figure 1 for a list of other subsystems you’re likely to see and a short description of how each is used.)

Subsystems by Design

Now that you have a working understanding of subsystems, it’s time to take a look at how to customize them. In this example, you work with the interactive subsystem, QINTER.

In my shop, I don’t normally start the QINTER subsystem when I IPL for a couple of reasons. First, I need to keep the work organized by department, so I set up departmental subsystems. I do this so that if I need to exclusively allocate a file or run a particular job without interference from certain users, I don’t have to go to each user to request each one to sign-off. I can end that subsystem. Second, this approach allows me to target specific workstations to run only in specific subsystems. That way, no one can create a new display device without my knowing about it. This has the benefit of adding an extra layer of security.

To create the specific workstation entries needed, first copy the QINTER subsystem by using the following Create Duplicate Object (CRTDUPOBJ) command:

CRTDUPOBJ OBJ(QINTER) FROMLIB(QSYS) OBJTYPE(*SBSD) +

TOLIB() NEWOBJ(SALES)

Use this command so that anything you do here won’t affect the IBM-supplied subsytem. (I place this new subsystem in a user library rather than in the system library QSYS.)

Because the new subsystem allows all workstations to attach themselves to it, you need to remove the attribute that controls this capability. To do so, use the Remove Workstation Entry (RMVWSE) command:

RMVWSE SBSD(/SALES) WRKSTNTYPE(*ALL)

Before any changes can be made to the subsystem, it must be inactive. If you are changing a subsystem that is currently active, then use the End Subsystem (ENDSBS) command and allow it time to become inactive. The Add Workstation Entry (ADDWSE) command adds that new entry, which allows only a certain type of workstation entry (workstation name) to be attached to this subsystem:

ADDWSE SBSD(/SALES) WRKSTN(SALES*)

Now, all the workstation devices that begin with the name SALES (for example, SALES01), automatically will attach themselves to this subsystem when you start the subsystem using the Start Subsystem (STRSBS) command.

Final Thoughts

Subsystems are to the AS/400 what your spine is to your body. Just like your spine is the framework that supports your entire body, subsystems are the framework that allows you to process all the jobs that run on your AS/400. To carry this analogy a bit further, keep in mind that when you are tinkering with your AS/400 subsystems, you want to give them the same consideration and care your chiropractor would while adjusting your spine: A little bit of fine-tuning at a time works wonders!

Reference

OS/400 Work Management (SC41-5306, CD-ROM QB3ALG01)

Subsystem Function

QBASE and QCTL Define which subsystem your AS/400 will start from and which contains the system console. The controlling subsystem is determined by what you place in the system value QCTLSBSD Controlling subsystem.

QCMN Handles communications-type jobs, such as Client Access and server jobs

QLPINSTALL Used when licensed programs are being installed

QPGMR Used for batch processing, it is similar to QBATCH

QSERVER Used for server functions for network connectivity

QSNADS Used to distribute network files, remote commands, and Distributed Database access between System Network Architecture (SNA)-connected networks

QSPL Used for spooled files

QSYSSBSD Used as a backup subsystem to QCTL, and can even have its own job queue

QSYSWRK Used to initiate system jobs such as

Performance Management/400, TCP/IP, and server jobs

QDSNX (Distributed Exchanges data between an AS/400 Systems Node eXchange) and one or more remote sites

QFNC Labeled as the finance subsystem, but can be used for another job queue

Figure 1:These are common IBM subsystems and their functions.

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: