Guild Companies, Inc.  
ASNA
 
Midrange Guru - Tech Tips
OS/400 Edition
Volume 2, Number 39 - May 22, 2002

You Can Re-IPL an AS/400 into Restricted State

Hey, Joe:

Sometimes when I'm performing an upgrade or installing PTFs, I need to re-IPL my AS/400 into restricted state so that I can bring the system console up and check the results without invoking the QSTRUP startup program. What's the best way to do this so users can't get back on the system before I make my final changes?

-- Jim

ASNA

I know what you're looking for, and it's a lot simpler to invoke than you think.

Before you power down your system, open the Change IPL Attributes (CHGIPLA) command, press F4 for prompting, and look at a field called Start to Restricted State (STRRSTD). This field has two values: *YES and *NO. The default value is *NO, and it is always reset to that initial value after each IPL. However, if you change this field to *YES, OS/400 will bring up your system in restricted state the next time you perform an IPL restart. Here's the drill:

Use the CHGIPLA command to change the STRRSTD parameter to *YES. You can do this from a command line by issuing the following command:

CHGIPLA STRRSTD(*YES)

Alternatively, you can also type in CHGIPLA from the command line and press F4 to view and modify the parameter.

From the command line, power down your AS/400 by using the Power Down System (PWRDWNSYS) command with the Restart after power down parameter (RESTART) equal to *YES. Here's the simple command syntax to do this:

PWRDWNSYS  RESTART(*YES)

As you probably already know, this will IPL your iSeries or AS/400 and then automatically restart the system. The trick here is that the CHGIPLA STRRSTD(*YES) parameter will only bring your AS/400 up in restricted state if you specify RESTART(*YES) on your PWRDWNSYS statement. If you specify that you want the system to end and power off (by using the RESTART(*NO) parameter), modifying the CHGIPLA STRRSTD parameter to *YES will have no effect on your OS/400 system the next time you power it up.

It should also go without saying--but I'll say it anyway--that you must ensure that all active users have been notified before you re-IPL the system, and that all relevant batch, interactive, and server jobs are also ended before you IPL. Failure to do this may abnormally end critical processing, and cause problems in your database.

When your OS/400 system restarts, it will automatically put the system into restricted state with only the system console active. What's more, it will then automatically reset the CHGIPLA STRRSTD parameter to its initial *NO value so you don't need to worry about resetting this capability for the next IPL.

After you've checked your changes and you're ready to take your iSeries or AS/400 out of restricted state, you can then call your QSTRUP program from the command line with a simple call statement, such as this:

CALL PGM(LIBRARY/QSTRUP program)

You can find the actual name and library for your QSTRUP program by using the Display System Value command to view the Startup Program (QSTRUPPGM) system value, as follows:

	DSPSYSVAL SYSVAL(QSTRUPPGM)  

And that's how you can re-IPL an iSeries or AS/400 into restricted state without invoking the QSTRUP program. I tested this technique on a V5R1 machine and it worked beautifully. It's a very simple procedure that you can use to keep users off your AS/400 or iSeries box while you're busy performing an upgrade.

Hope this helps,

-- Joe Hertvik

Sponsored By
ASNA

Why Iredell Memorial Hospital Uses ASNA Visual RPG for Web Development

In an effort to help the most patients, doctors are always looking for the quickest and easiest way to get things done. At Iredell Memorial Hospital in Statesville, NC, the green screen application that accessed patient records and information was just not good enough. Scott Philemon was charged with the task of bringing this valuable information to a browser-based system and he found that AVR was the best way for him to do that. He has created a simple point-and-click system that is intuitive rather than the cumbersome green-screen system with which most doctors were uncomfortable. The most important feature of this new application is that doctors will be able to connect, via a modem, to this application and not have to make the trip into the hospital to check on the status of patient blood tests and other medical procedures.

"I was given this project and told to just find the best way to get it done. I heard java, java, java all the time so I took a couple of introductory classes and realized that I would spend a year just learning it before I would even be able to start on this project. With AVR I can really use my RPG skills to create browser-based applications. The transition was so easy and I'm so pleased with the results that I'm recommending that we do ONLY Web applications in the future."

—Scott Philemon, Iredell Memorial Hospital

ASNA Visual RPG (AVR) for Web, Windows and .NET Development

ASNA Visual RPG (AVR) is an integrated development environment for creating enterprise Web, Windows and .NET applications. Transparent database access; an integrated editor, compiler and debugger; support for emerging standards such as XML and SOAP; and equally powerful Web or Windows deployment possibilities make ASNA Visual RPG the one application development environment you can't afford to ignore! Use your RPG skills to develop Web, Windows and .NET applications today.

Download your FREE trial of AVR today!

http://www.asna.com/downloads.asp

THIS ISSUE
SPONSORED BY:
Advanced Systems Concepts
ASNA
BACK ISSUES
TABLE OF CONTENTS
Print Query Definitions from a Batch Job
You Can Re-IPL an AS/400 into Restricted State
Reader Feedback and Insights: I Didn't Know You Could Do That
  Newsletters | Subscribe | Advertise | About Us | Contact | Search | Home  
  Last Updated: 5/21/02
Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.