TechTalk: Commands to Avoid Running in QINTER

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

This is in response to the "Commands to Avoid Running in QINTER" article in the November 1990 issue.

I agree that the commands listed should never be run interactively. But no matter how often people hear this, someone always thinks "one time won't hurt anything." To prevent people from executing commands interactively, the following command should be executed from each command to restrict:

CHGCMD CMD(xxx) ALLOW(*BATCH *BPGM)

This will issue an error message, CPD0031 - Command xxx not allowed in this setting, when someone attempts to run the command interactively.

Just a few notes on using this technique. The CHGCMD should be coded in a CL program so that the same commands can be issued when a new release of the operating system is installed. Also, you should *EXCLUDE the public from using the CHGCMD, because they could change it right back!

Louise Best Milwaukee, Wisconsin

Editor's Note:

The technique shown above will work provided that there are no interactive programs that legitimately run the commands being blocked. In order for this technique to work better, each command should be changed by issuing:

CHGCMD CMD(xxx) ALLOW(*BATCH *BPGM *IPGM *EXEC)

If you are on Release 3.0, you may wish to consider adding *BREXX and *IREXX if you are considering using REXX.

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • 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.

  • 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

  • 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: