fhg
Volume 7, Number 39 -- November 7, 2007

Copy Message Descriptions

Published: November 7, 2007

Hey, Ted:

The Work with Message Descriptions (WRKSMSGD) panel gives me options 2, 4, 5, and 6 to change, delete, display, and print message descriptions. But there is no option to allow me to copy a message description. Such an option would be helpful when I need to create a new message description that is similar to an existing one, or when I copy a message description to another message file. Am I overlooking an easy way to copy message descriptions?

--Ron

To the best of my knowledge, no. (Buddy, I hope I'm wrong on this one.)

Let's take the second case you mentioned--copying a message description from one message file to another. You can use the Merge Message File (MRGMSGF) command, which copies messages from one file to another. The following command copies message XYZ1492 from message file XYZMSGF to message file NEWMSGF.

MRGMSGF FROMMSGF(XYZMSGF) +
   TOMSGF(NEWMSGF) SELECT(XYZ1492)

I used this technique recently to copy a message description on one system to the same message file on another system. I created a message file in QTEMP, ran MRGMSGF to copy the message to the temporary message file, ran SAVOBJ to save the message file to a save file, FTP'd the save file to the other system, restored the message file to QTEMP, and ran MRGMSGF to copy the message from the temporary message file to the production message file.

As for the first case, I know a method that is really crummy, but it works. (I really, really, really hope somebody writes in with a better idea.) You need to be working with an emulator session, not a dumb terminal. (I know some people still use those things, but I have a hard time believing that anyone who reads this newsletter does.)

In the "Work with Message Descriptions" panel, navigate to the message description that you want to copy. Enter option 2 to change the message description, even though you're not going to change it, and press "Enter." You will be in the "Change Message Description" panel, with the parameters filled in with their existing values. Key over one character in each parameter that you want to include in the creation of the new message. Press F14 to see the "Change Message Description" command that the system intends to execute when you press "Enter." If you don't see all the parameters you need, press "Enter" to return to the change screen and key over at least one character of the missing parameters. Keep this up until F14 shows you all the parameters you need. The command will look something like this:

CHGMSGD ?*MSGID(XYZ1066)                                  
        ?*MSGF(XYZMSGF)                             
        ?<MSG('Do &1 to &2 if &3 does &4.')               
        ?<SECLVL('Eat at Joe''s.')                         
        ?<FMT((*CHAR 10) (*CHAR 10) (*CHAR 10) (*CHAR 12))
        ?<DFTPGM(*LIBL/MYPGM)                             
        ??CCSID(*JOB)                                     

Copy the command to your PC's clipboard and press F12 until you're out of the "Change Message Description" panel without having changed the message description. Paste the clipboard into your favorite text editor. Change the CHGMSGD command to ADDMSGD, change the message ID parameter to the ID of the new message, change any other parameters as necessary, and get rid of those funny characters in front of each parameter keyword.

addMSGD MSGID(XYZ1492) MSGF(XYZMSGF)
MSG('Buy &1 from &2 if &3.')
SECLVL('Eat more possum.')
FMT((*CHAR 16) (*CHAR 12) (*CHAR 12))
CCSID(*JOB)

In your green-screen session, call QCMD and press F11 to get a full screen command entry field. Copy the modified command in your text editor and paste it into the green screen. Press "Enter." You've got yourself a new message description. It's just plain goofy, but it beats re-keying all those parameters and maybe making a mistake.




                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
WORKSRIGHT SOFTWARE

Do you need area code information?
Do you need ZIP Code information?
Do you need ZIP+4 information?
Do you need city name information?
Do you need county information?
Do you need a nearest dealer locator system?

We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

Just call us and we'll arrange for 30 days FREE use of either
ZIP/CITY or PER/ZIP4.

WorksRight Software, Inc.
Phone: 601-856-8337
Fax: 601-856-9432
E-mail: software@worksright.com
Web site: www.worksright.com


Senior Technical Editor: Ted Holt
Technical Editors: Howard Arner, Joe Hertvik, Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Brian Kelly, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Bug Busters Software Engineering:  High availability software that won't break the bank
COMMON:  Join us at the annual 2008 conference, March 30 - April 3, in Nashville, Tennessee
Maximum Availability:  The ultimate System i replication for business of all sizes


 

IT Jungle Store Top Book Picks

The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
The System i Pocket RPG & RPG IV Guide: List Price, $69.95
The iSeries Pocket Database Guide: List Price, $59.00
The iSeries Pocket Developers' Guide: List Price, $59.00
The iSeries Pocket SQL Guide: List Price, $59.00
The iSeries Pocket Query Guide: List Price, $49.00
The iSeries Pocket WebFacing Primer: List Price, $39.00
Migrating to WebSphere Express for iSeries: List Price, $49.00
iSeries Express Web Implementer's Guide: List Price, $59.00
Getting Started with WebSphere Development Studio for iSeries: List Price, $79.95
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00
WebFacing Application Design and Development Guide: List Price, $55.00
Can the AS/400 Survive IBM?: List Price, $49.00
The All-Everything Machine: List Price, $29.95
Chip Wars: List Price, $29.95


 
The Four Hundred
IBM Brags About Its Power6 Server Shipments

Neuwing, IBM to Quantify and Monetize IT Energy Savings

Ask TPM: Enticing Users to Upgrade Their i5/OS Hardware

Project ECLipz Surfaces, But Not the Way You Think

The Linux Beacon
Intel Quietly Releases 'Montvale' Itanium Kickers

Cray Revamps Supercomputers with XT5 Designs

Mandriva in a Tizzy after Microsoft Trumps Linux in Nigeria

Neuwing, IBM to Quantify and Monetize IT Energy Savings

Four Hundred Stuff
XAware Takes the Open Source Plunge

Quadrant Refines PPM Offering with IntelliChief 2.0

ARTech Nearly Done with 'Rocha' Rewrite of GeneXus 4GL

VAULT400 Offers Free Insurance with 'Quick-Ship'

Big Iron
IBM Readies Quad-Core z6 Chip for Mainframe Iron

Top Mainframe Stories From Around the Web

Chats, Webinars, Seminars, Shows, and Other Happenings

System i PTF Guide
November 3, 2007: Volume 9, Number 44

October 27, 2007: Volume 9, Number 43

October 20, 2007: Volume 9, Number 42

October 13, 2007: Volume 9, Number 41

October 6, 2007: Volume 9, Number 40

September 29, 2007: Volume 9, Number 39

The Windows Observer
Microsoft Unveils New 'Oslo' Approach to SOA

Good Times Roll for Microsoft Financially

Microsoft Concedes to EC, Slashes Protocol Pricing

'Viridian' Hypercall APIs to be Open Source, Microsoft Says

The Unix Guardian
SCO to Sell Unix Wares for $36 Million?

Sun Sues NetApp Right Back Over Patents

'Project Indiana' OpenSolaris Preview Debuts

Midrange Shops Get Disaster Recovery Services from IBM

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

THIS ISSUE SPONSORED BY:

Help/Systems
WorksRight Software
Krengeltech


Printer Friendly Version


TABLE OF CONTENTS
V6R1 CL Enhancements

Copy Message Descriptions

Admin Alert: Five Benefits of a High-Availability System

Four Hundred Guru

BACK ISSUES

From the IT Jungle Forums
Reallocate disk space from one LPAR to another

How to retrieve a workstation ID

Finding *OUTFILE Template Files

i5/OS V5R4 Release Notes

MCH1202





 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement