/*+------------------------------------------------------------------+*/ /* LABEL540 - change '540xxx' labels in SYSTEM CONFIG or USER DIRECT */ /*+------------------------------------------------------------------+*/ /* For details on how this macro is used, see one of the two books: "z/VM and Linux on IBM System z: The Virtualization Cookbook for SLES 10 SP2" on the Web at: http://www.redbooks.ibm.com/abstracts/SG247493.html -or- "z/VM and Linux on IBM System z: The Virtualization Cookbook for RHEL 5.2" on the Web at: http://www.redbooks.ibm.com/abstracts/SG247492.html */ /*------------------------------------------------------------------ THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES -------------------------------------------------------------------*/ firstChar = 'M' /* change this for an LPAR ID other than 'M' */ parse upper arg res spl pag w01 w02 . parse upper arg fn ft fm '(' options ')' res spl pag w01 w02 . if (w02 = '') then do say "5 arguments required - exiting" exit end 'command set stay on' 'command set num on' 'command set nulls on' 'command set serial off' 'command set cmdline bottom' 'command set curline on 3' 'command set serial off' 'command set scale off' 'command set case m i' 'command set pre off' 'command set v 1 80' 'command top' 'command c/540RES/'firstChar'V'res'/*' 'command c/540W01/'firstChar'V'w01'/*' 'command c/540W02/'firstChar'V'w02'/*' 'command c/540SPL/'firstChar'V'spl'/*' 'command c/540PAG/'firstChar'V'pag'/*'