23
Sat, Nov
1 New Articles

System Values to Control Your AS/400, Part 2

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

Part 2 of this series goes deeper into the exploration of the plethora of system control system values. This article investigates how you can use system values to manipulate power down, device recovery, queries....

In last month’s issue of MC, I started a discussion about system control system values (see “System Values to Control Your AS/400, Part 1,” MC, September 1998). This month, I will continue that discussion. You can find a table of all the system values reviewed in these articles by accessing the MC Web site at http://www.midrangecomputing. com/98/09. Just look in the online table of contents for “System Values to Control Your AS/400, Part 1.”

Query System Values

Do you have runaway queries? You can control how long the query runs—or at least the time the system estimates the query will run—via the QQRYTIMLMT system value.

• *NOMAX—The query could run forever; there is no maximum time.
• 0 to 2147352578—Specify in seconds how much time that the query time estimator is allowed to continue the query. If the estimation is greater than this system value, the query does not run.

Is it me, or does this seem ridiculous? (Come on, IBM, give us a figure that we can comprehend, like one measured in minutes.) If you use it at all, set this system value to something like 7200 seconds (2 hours) or 10800 seconds (3 hours) at most.

If you have multiple processor AS/400s, you might be interested in the Parallel processing degree (QQRYDEGREE) system value. It will allow you to configure parallel processing or symmetric multiprocessing (SMP).

• *NONE—No parallel processing for query.
• *IO—Use I/O parallel processing.
• *OPTIMIZE—The query processor can choose parallel I/O or SMP.

• *MAX—Similar to *OPTIMIZE, but the query processor allows itself to use all memory allocated to the pool the job is running in.

Even if you have a single processor, set the system value to *OPTIMIZE. This option allows the operating system to split processing cycles as it sees fit.

To determine if the double-byte character set (DBCS) is installed on your system, consult the QIGC (the DBCS version indicator) system value. When retrieved, it returns a logical value:

• 0—No, DBCS is not installed.
• 1—Yes, DBCS is installed. If you do have DBCS installed, the DBCS font name is located in QIGCCDEFNT.
• *NONE—No coded font is found.
/—The library (which can be *LIBL, *CURLIB, or a coded library name) and the font for DBCS are found.

The font name can be up to eight characters.

Communications

The Communications recovery limit (QCMNRCYLMT) system value is unique. Most system values contain a single value. This one contains two:

• 0 to 99—The count of attempts
• 0 to 120—The time limit in minutes Once the system reaches the count, it waits for the time interval and sends the system control message queue a message that the count has been reached.

If you need to keep a lid on the number of passthrough sessions, including Client Access and 5250 emulation, use the Passthrough server (QPASTHRSVR) system value.

• *CALC—Let the system calculate the number of passthrough jobs.
• 1 to 100—You define the number of passthrough jobs handled by your AS/400. *JOBCTL with *IOSYSCFG authority is required to change this system value.

Battery Backup

If your system has an installed battery backup unit (most AS/400s do, but it is an option and could be omitted) or a UPS, you can control when and if a power failure can shut down the system. First, a message is sent to the message queue specified in the UPS message queue (QUPSMSGQ) system value. If this system value is not the system operator message queue (QSYS/QSYSOPR), two message queues will receive power- related messages, QSYSOPR and the queue specified.

You can set a time system value to trigger a normal system power down. This is set in the UPS delay time (QUPSDLYTIM) system value.

• *NOMAX—The system does not start any action on its own.
• *BASIC—The system will power only the load source, the I/O processor, and the processor cards on a 9402 or 9404 AS/400.
• *CALC— The system calculates the wait time needed. The work management manual states that this should be used only on 9402 and 9404 systems.

• 0—Immediately start a system power down when the power failure occurs.
• 1 to 99999—You tell the system how many seconds (27.78 hours maximum) to wait before initiating a system power down.

I suggest that you have an external UPS powering your AS/400. The small battery backup units are not robust enough for most shops. UPSs are rated at an uptime per half load, and the UPS manufacturer should have those numbers available for your model of AS/400. You will know your AS/400 and how much it is loaded. Use sensibility when setting this system value. There is not one good value for everyone. Stay away from *NOMAX, 0, and *BASIC. Use *CALC or set a value yourself.

There are some gotchas with using these values.
• If *NOMAX is used for the delay time, the message queue must exist. If the queue is not QSYSOPR, it must be a workstation message queue and be in break or notify

IGC

mode; if it is not a workstation message queue, it must be allocated by a job. If these requirements are not met, the system begins an immediate power down.

• All messages in the QUPSMSGQ queue are cleared when the system IPLs.
• Changes to these system values take place when the next power failure occurs.

Device Configuration

Remember the old days (for me, it was the S/3 and S/34) when you had to preconfigure all new devices before connecting them? If you had several of the same devices, the task was not hard. However, the market for workstations flourished, and many new types of devices came on the market. I remember randomly trying different settings to get the devices to work. Enough nostalgia. Today, via the Automatic configuration of devices (QAUTOCFG) system value, the AS/400 automatically configures devices if you want it to. This system value is another logical value. • 0—You must configure all devices and controllers.
• 1—New devices are automatically configured, and a message is sent to the system operator message queue. I have found one scenario in which you still must configure a device, the connection on an ASCII workstation controller.

For most shops, letting the system configure new devices is not a problem. Unless your shop considers auto configuration a security risk, leave this value at 1.

There is a way to let the system configure these devices, yet avoid letting users on the system without your knowledge. Simply do not run subsystem QINTER, which has the ability to let any device attach to it. The subsystem description has the workstation type *ALL. I run other subsystems and allow only certain workstations in those subsystems. Even if a user is clever enough to add a new device, the user will not see a sign-on screen until that device is added to the subsystem with the Add Workstation Entry (ADDWSE) command.

Remote controllers can be configured as well. Set the Automatic configuration of remote controllers (QAUTORMT) system value accordingly.

• 0—You must configure all remote controllers.
• 1—Remote controllers are automatically configured. And, finally, we come to virtual devices (QAUTOVRT). I have never liked the term virtual devices. It implies that the devices are not real or valid, but they are. This system value either allows or disallows automatic configuration for these virtual devices (such as 5250 emulation). This value is a number rather than a logical value.

• 0—No virtual devices are automatically configured.
• 1 to 9999—Allow this number of virtual automatic configurations. If you have this system value set to 50 and have 50 virtual devices configured, what would happen if you lowered the value to 45? Would five virtual devices be deleted? No, they would not, but you would not have device 51 created automatically, either.

I’d like to move away from the automatic topic but remain on the device idea. How is a device automatically named? If the system creates it, what does the system name it? With the Device naming (QDEVNAMING) system value, you tell the system what to do.

• *S36—Use the S/36 device naming conventions (e.g., W1, W2,...).
• *NORMAL—Use the AS/400 naming conventions (e.g., DSP01, DSP02,...).
• *DEVADR—Use the AS/400 conventions with the device address (e.g., DSP010000, DSP0105,...).

Unless you are running in the S/36 environment, use either *NORMAL (my preference) or *DEVADR.

You can define the default printer for the system. It is found in the print device (QPRTDEV) system value.

Have you wondered where the header and border information come from when you use the print screen key? That information is contained in the Print key format (QPRTKEYFMT) system value.

• *PRTBDR—Print border information on print screens.

• *PRTHDR—Print header information on print screens.
• *PRTALL—Print header and border information on print screens.
• *NONE—Nothing but the print screen data appears. One of the things I hate about the computer industry is all the cords you have to put up with. Power, Ethernet, printer, monitor, speaker, twinax, phone—these cords are all there to add to your frustrations. Once I was working at a user’s desk, and the monitor and PC suddenly powered off. I thought this odd, but the user had a power strip that had been acting erratically with any touch. My foot happened to touch it. After replacing the power strip, I wondered what would happen to the user’s emulation session. The user had been on a Work with Output Queue (WRKOUTQ) screen, and I had my Device recovery action (QDEVRCYACN) system value set to return the system to where the user was before I kicked the power strip. These are the possible values:

• *DSCMSG—Disconnect the job and send a message to the application program.
• *DSCENDRQS—Disconnect the job and send a cancel request to the application program.

• *MSG—Send a message to the application program and let the program worry about recovery.
• *ENDJOB—End the job and write a job log entry and an entry to QHST. The system will lower the priority of the job by 10, set the timeslice to 100, and purge to *YES to lower the impact on the system.

• *ENDJOBNOLIST—End the job without a job log entry, but still write an entry to QHST to indicate that the job ended.

In a LAN or WAN, the disconnect values can allow others on the LAN or WAN to attach themselves to a disconnected job. To avoid this scenario, use another value.

Going through these system values has made me wonder why some of them are named as they are. Some—like QDEVRCYACN and QUPSDLYTIM—make sense to me. The Special environment (QSPCENV) system value seems misnamed. It isn’t special; it’s one of two values. It should be a logical value, but it is not.

• *NONE—When you sign on, you are in the AS/400 environment.
• *S36—When you sign on, you are in the S/36 environment. If I had been at the wheel when this system value was created, I would have named it Sign-on environment and made it a logical value.

The Keyboard type (QKBDTYPE) system value is set when the language of the AS/400 is installed.

Miscellaneous

The last time I helped set up a new general ledger chart of accounts, the client and I debated whether to have some miscellaneous accounts. These accounts would hold dollar amounts long enough to be moved to an actual account (usually a new account) at month end.

These last few system control system values had very little in common with the other values, so I set them in that dreaded miscellaneous account. I won’t move them out, though.

One of the (many) things I like about the newer releases is that the AS/400 manuals started coming on CD-ROM about five years ago. You can copy all of the manuals to the Integrated File Server (IFS), and everyone on the AS/400 can search them. That path name is in the Book path (QBOOKPATH) system value. It may have up to five entries of 63 characters apiece.

The Coded character set ID (QCCSID) system value is a set of characters that describes the character sets, code pages, and character representation used by your AS/400. Most people will set it at 65535. However, if you use the DBCS, it will be a mix of DBCS and single-byte character set (SBCS).

The Character set and code page (QCHRID) system values work hand in hand with the QCCSID system value. Those values must be compatible. To determine compatibility,

consult the Data Management and National Language Support books. QCHRID is a two- part, 10-position value. Half of it contains the character set identifier, and the other half contains the code page identifier. On my AS/400, the character set identifier is 697, and the code page identifier is 37.

The Country identifier (QCNTRYID) system value tells the system which country the machine is being used in. Mine is US for United States. Other valid countries include Australia (AU), Denmark (DK), and French Guiana (GF).

Tied closely with these system values is the Language ID (QLANGID) system value. Valid languages include United States English (ENU), United Kingdom English (ENG), and Danish (DAN).

Last in the languages category is the Locale path name (QLOCALE) system value. It determines the language, territory, and code set.

• *NONE
• *C
• *POSIX Most of us have had at least one abnormal system end. It seems like the system takes forever to come back up after an abend. For a part of that time, the system is rebuilding physical and logical file paths. The Database recovery wait (QDBRCVYWT) system value is a logical value that lets us control recovery.

• 0—Database recovery is completed before the IPL.
• 1—Database recovery is completed after the IPL. Much of recovery depends on how the files were created. If files were created with RECOVER(*IPL) in the Create Physical File or the Create Logical File (CRTPF or CRTLF) command, those files are recovered before the IPL, regardless of this system value. If you have a sufficiently sized UPS and the QUPS... system value’s set, this should not be a problem.

Last in this group of system values is the Server authentication interval (QSVRAUTITV) system value. It identifies the user’s time interval to access an object. Set this value between 1 and 108000 minutes (108,000 minutes equal 1,800 hours).

Examine Your System Values

I hope this series of discussions on system values makes you look at your values one more time. You may be able to lighten your loads (such as with QAUTOCFG and QUPSDLYTIM) and ease your minds.

Realize that an AS/400 is a powerful piece of hardware, but it gives you ample abilities to control it to your liking.

Next month, I will continue with the series on system values. I will discuss groups of values such as allocation, date and time, and library list values. Stay tuned....

Reference

OS/400 Work Management Guide V4R1 (SC41-5306, CD-ROM QB3ALG00)

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: