• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Copy Message Descriptions

    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

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    ARCAD Software

    [Live Webinar] Rewrite your Synon in Java? It could be… a mistake!

    Converting from Synon CA 2E to a modern language? There are many good reasons to take this step. Beyond the critical shortage of Synon skills, applications developed in this 4GL environment can no longer take advantage of key technology advances in the IBM i operating system. And though a leader in its day, the Synon CASE tool is incompatible with modern DevOps practices and concurrent development.

    Do you think the best way to move away from Synon CA 2E is by rewriting everything in Java?

    Think again. A full rewrite is risky, expensive, and slow — often leading to years of redevelopment and countless functional regressions.

    Join Philippe Magne, CEO of ARCAD Software and Ray Bernardi, senior solution architect to learn why a conversion to Free Form RPG is a risk-free and high-performance option that leverages the architecture of the original Synon application – retaining all the reliability and security advantages of the host platform.

    In our Webinar, we will share a secure, automated migration path for business applications developed in Synon CA 2E:

    • 100% automated conversion to modern Free Form RPG and DDL (SQL)
    • Guaranteed conversion accuracy with test automation process
    • Possible modernization of the user interface during the project
    • Risk free, fixed price Modernization as a Service (MaaS)
    • Modern full DevOps framework for delivery

    Leverage the competitive advantage within your Synon application.

    Register Today!

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    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

    InfoPrint Solutions Expands Globally BCD’s WebSmart PHP Goes GA

    Leave a Reply Cancel reply

Volume 7, Number 39 -- November 7, 2007
THIS ISSUE SPONSORED BY:

Help/Systems
WorksRight Software
Krengeltech

Table of Contents

  • V6R1 CL Enhancements
  • Copy Message Descriptions
  • Admin Alert: Five Benefits of a High-Availability System

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Stacking Up Power10 And Power11 Systems Price/Performance
  • Where Infor Is Headed With Its ERPs For IBM i
  • Rocket Delivers More DevOps Capabilities For IBM i
  • A Few More Power Systems Announcements Before Year End
  • IBM i PTF Guide, Volume 27, Number 46
  • Bang For The Buck On Entry Power10 And Power11 Machines
  • A Hardware Refresh Is The Perfect Time To Re-Evaluate Your HA/DR Strategy
  • Fresche Taps AI For New RPG-To-Java Conversion Tool
  • Gartner Raises 2025 IT Spending Forecast, Puts Out 2026 Prediction
  • IBM i PTF Guide, Volume 27, Number 45

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle