21
Sat, Dec
3 New Articles

HOT TIPS: Work Management (10 Tips)

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

Work Management

Eliminate Unwanted Printer Writer Job Logs

If you would like to reduce the amount of job logs generated on your system and see no need for logging printer writers, use the following command to eliminate the logging of all printer writers:

CHGJOBD JOBD(QSPLPRTW) LOG(0 99 *NOLIST)

- Fred Skinner

Routing Workstation Printkeys

You can route the printed output of screen prints created at a terminal to go to a specific printer regardless of the print device defined in the user profile. First create a print file using CRTDUPOBJ. Then change the printkey printer file for the display in the device description, as follows:

 CRTDUPOBJ OBJ(QSYSPRT) FROMLIB(QSYS) OBJTYPE(*FILE) + TOLIB(xxx) NEWOBJ(PRTFNAME) CHGPRTF FILE(xxx/PRTFNAME) DEV(PRTR_DEV_NAME) CHGDEVDSP DEVD(DEVNAME) PRTFILE(xxx/PRTFNAME) 

- Fred Skinner

Changing Interactive Job Time Slice

The default class description used for interactive jobs is QINTER and its time slice value is 2000 (2 seconds). For almost all interactive workloads, 2 seconds is acceptable, because interactive transactions should not last longer than 2 seconds. However, there are cases (e.g., during heavy interactive workload) where lowering the time slice to 500 (.5 seconds) may improve performance. Consider setting interactive job time slice to .5 seconds or less on AS/400s with faster processors, such as the B60 and up.

- Fred Skinner

Activating an Attention Key Program

A quick and dirty Attention key program useful for programmers is QSYS/QCMD. Or if you prefer the windowed variety, try QSYS/QUSCMDLN available with V2R1. While obviously not suited for end users, for programmers it sure beats not having any Attention key program defined.

To activate an Attention key program, specify the qualified program name in the ATNPGM parameter of the CHGUSRPRF command.

- Douglas Handy

Job Queue Gridlock

To find out what active jobs are keeping jobs in a job queue from beginning execution, use the following command:

WRKUSRJOB USER(*ALL) STATUS(*ACTIVE) ASTLVL(*BASIC)

You can limit the jobs you see by user and status. Specifying the assistance level *BASIC lists the job queues and the jobs that started from them.

- Bryan Leaman

Turn Your Job into a Group Job

It is possible to harness the power of group jobs with the use of the Attention key in one simple CL program. This program lets a user profile start a new group job or transfer to an existing group job by just pressing the Attention key. Specify this program as the Attention key handling program on your user profile.

When the Attention key is pressed the first time, the current job is made into a group job. The TFRGRPJOB command can then be used (F6) to create another group job by using a new group job name. Defining QCMD as the initial group routing program means that the user profile options are used and any initial program is called. (There is no need to use the SETATNPGM command.) On subsequent use of the Attention key, the user can start another group job or transfer to an existing one.

 PGM DCL VAR(&GRPJOB) TYPE(*CHAR) LEN(10) RTVGRPA GRPJOB(&GRPJOB) IF COND(&GRPJOB = *NONE) THEN(DO) CHGGRPA GRPJOB(GRPJOB1) TEXT('1st Group Job') ENDDO TRFRGRPJOB GRPJOB(*SELECT) INLGRPPGM(QSYS/QCMD) + TEXT('Another Group Job') ENDPGM 

- Ray Weekes

Quick Job Log Display

When testing CL programs, if the job attribute LOGCLPGM is set to *YES, then CL commands are visible from Command Entry. If you press F10 for low level messages, these can be displayed and retrieved. This is very useful when debugging an OPNQRY string that builds at run-time. The actual substituted string is shown, and by placing the cursor on the displayed string and pressing F9 to retrieve, the command can be tested with different variables in place.

- Kevin Heiman

What Job Queue Did This Come From?

Sometimes two job queues submit jobs to one subsystem and WRKACTJOB shows both jobs. When this happens, you might want to know which job queue they were submitted from. You can find out from the WRKSBSJOB screen by performing the following sequence: option 5 (Display Job); option 10 (Display Job Log); F10 (Display Detailed Messages); F17 (Top). Then press the Help key on the line that has "Job 999999/xxxxxx/zzzzzz submitted" (999999 = job number, xxxxxx = user profile, zzzzzz = job name) and the job queue will be shown.

- Tom Lucht

Monitoring Job Completion Messages

If you would like to access your completed job messages without having to look for them with a DSPMSG command, and you do not want the annoyance of break messages interrupting your current work, try this message handling program.

 MONMSG CL Program PGM PARM(&MSGQ &MSGQLIB &MSGK) DCL VAR(&MSGQ) TYPE(*CHAR) LEN(10) DCL VAR(&MSGQLIB) TYPE(*CHAR) LEN(10) DCL VAR(&MSGK) TYPE(*CHAR) LEN(4) DCL VAR(&MSGDTA) TYPE(*CHAR) LEN(132) RCVMSG MSGQ(&MSGQLIB/&MSGQ) MSGKEY(&MSGK) RMV(*NO) + MSG(&MSGDTA) SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MSGDTA) + TOPGMQ(*EXT) MSGTYPE(*STATUS) ENDPGM 

After compiling program MONMSG, execute the following command to cause your completion messages to appear unobtrusively as status messages at the bottom of your screen. You might add this command to your initial program or setup routine.

 CHGMSGQ MSGQ (current completion message queue) + DLVRY(*BREAK) PGM(MONMSG) 

It works by changing a message queue to *BREAK delivery mode and specifying a message handling program. This will cause OS/400 to call the MONMSG program each time a message arrives at the message queue. MONMSG will then send the message to the external program message queue.

- Bill O'Toole

Flush Clean Your Program Stack

All AS/400 users that have access to a command entry line can execute a command that has a command line, execute another command from that command line, execute another command, ad infinitum.

In my shop we have seen the system operator use WRKACTJOB, WRKSPLF, WRKSBMJOB over and over without pressing F3 to exit. The operator just keeps keying in the command he wants on the command line. We finally noticed this when canceling a job at the console and we saw that it ended at level 65!

This nesting of invocations has a deleterious effect on AS/400 performance, especially when it occurs at the system console. The reasons for this are simple:

More main storage is consumed.

More disk activity occurs when the job is paged in or out.

OS/400 does more work to maintain the integrity of the program stack as it increases.

At the console, this extra work occurs at a higher run priority (10).

The Reroute Job (RRTJOB) command entered at a command line with no parameters brings the interactive job back to its original level. Put another way, the job returns to the level it was at just after sign-on.

Note: Be aware that if your user profile has an initial program assigned to it, the program will be called when RRTJOB is executed. You may need to modify the initial program to allow it to be called repetitively.

- Steve Kontos

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: