• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • More About the SAVRSTxxx Commands

    March 16, 2005 Hey, Colleagues!

    It turns out quite a few of you are interested in The Save-Restore Commands. I got a lot of comments in response to that article. Here are some of them. I hope they’ll be of benefit to you. If I can find a way to test some things, I will have more information for you later. Thanks to all who wrote.

    –Ted

    The SAVRSTxxx commands are very nice commands indeed. We have been using them for some years now. But you should have mentioned that these commands are only available if you have installed OS/400 Option 22 (ObjectConnect).

    –André

    Regarding your recent article, The Save-Restore Commands, I’d like to suggest another tool for Andrew’s requirement “to set up a scheduled job to refresh certain files on the test system from the production system at night.” It’s Operations Navigator–Distribution and Packaging function, which has been available since around V4R3 (or V4R4, I’m not sure). This GUI-based function is very convenient to use. Chapter 1 of the Redbook SG24-6564-00 (“Managing OS/400 with Operations Navigator V5R1 Volume 4: Packages and Products”) tells all about this.

    –Satid, IBM Thailand

    Under some circumstances, if SAVRST* commands will work, there can be another alternative that’s still as slick as its always been. Good ol’ File Transfer Support– FTS. One advantage that I’ve made use of is that there is a much reduced need for synchronizing TGTRLS() between systems. I ran a transfer of a file created on V5R1 down to V4R4 today without a single hitch. I was also able to send the file to V5R3. I don’t know how long it will remain supported.

    I use the following command definition to make it easier to use FTS:

    /* QY2FTML */ 
    /* CRTCMD CMD( mylib/FTS ) + */ 
    /* PGM( QSYS/QY2FTML ) + */ 
    /* SRCFILE( mylib/QCMDSRC ) + */ 
    /* SRCMBR( FTS ) + */ 
    /* TEXT( 'QY2FTML File Transfer Services' ) + */ 
    /* MSGF( mylib/USRMSGF ) */
    
    FTS: CMD PROMPT('File Transfer to/from AS/400')
    
    PARM KWD(OPTION) TYPE(*CHAR) LEN(1) RSTD(*YES) + 
                 SPCVAL((*SEND S) (*RECEIVE R)) MIN(1) + 
                 PROMPT('Send (S) / Receive(R)')
    PARM KWD(FROMLIB) TYPE(*NAME) MIN(1) PROMPT('From + 
            library')
    PARM KWD(FROMFILE) TYPE(*NAME) MIN(1) + 
            PROMPT('From file')
    PARM KWD(FROMMBR) TYPE(*NAME) MIN(1) PROMPT('From + 
            member')
    PARM KWD(TYPE) TYPE(*CHAR) LEN(6) CONSTANT(' ')
    PARM KWD(TOLIB) TYPE(*NAME) DFT(*FROMLIB) + 
            SPCVAL((*FROMLIB ' ')) PROMPT('To library')
    PARM KWD(TOFILE) TYPE(*NAME) DFT(*FROMFILE) + 
            SPCVAL((*FROMFILE ' ')) PROMPT('To file')
    PARM KWD(TOMBR) TYPE(*NAME) DFT(*FROMMBR) + 
            SPCVAL((*FROMMBR ' ')) PROMPT('To member')
    PARM KWD(TODATE) TYPE(*CHAR) LEN(6) CONSTANT(' ')
    PARM KWD(REPLACE) TYPE(*CHAR) LEN(1) RSTD(*YES) + 
            SPCVAL((*YES Y) (*NO N)) MIN(0) + 
            PROMPT('Replace member')
    PARM KWD(RMTLOCNAME) TYPE(*NAME) LEN(8) + 
            PROMPT('Remote system') 
            DEP CTL(*ALWAYS) PARM((&RMTLOCNAME *NE ' ')) + 
            MSGID(USR5201)
    PARM KWD(PWD) TYPE(*NAME) DSPINPUT(*NO) + 
            PROMPT('Password on remote system') 
            DEP CTL(*ALWAYS) PARM((&PWD *NE ' ')) + 
            MSGID(USR5202)
    PARM KWD(RTNCODE) TYPE(*CHAR) LEN(1) CONSTANT(' ')
    PARM KWD(MSGNUM) TYPE(*CHAR) LEN(8) CONSTANT(' ')
    

    Here are two message descriptions can be dropped, but they help as reminders. As long as they’re in the message file named on CRTCMD, the message file name doesn’t matter:

    ADDMSGD MSGID( USR5201 ) MSGF( mylib/USRMSGF ) + 
               MSG( 'Remote location must be specified.' )
    ADDMSGD MSGID( USR5202 ) MSGF( mylib/USRMSGF ) + 
               MSG( 'Password must be specified.' )
    

    When I’m transferring source members, I always use FTS. FTP is great between AS/400s and other platforms, but I much prefer native methods between AS/400s, and FTS can be one of the best.

    –Tom


    I recently consulted for a large company running a total of 8 partitions on two different iSeries. Bug Busters Software has a great tool to transfer files from one partition to another. It’s called Remote Software Facility. It uses FTP to transfer and restore any type of object. It’s very easy to install and use, and it’s inexpensive. I consider it a “must have” for any LPAR environment.

    –Rosemary

    If I need to move source members between iSeries partitions, I use WDSC to simply drag and drop. However, if I attempt to do this with any other object type, I get an “Invalid Drag and Drop” message box. Is (will) this allowed in WDSC and if not, does IBM plan to add this function? Also, thanks for the SAVRSTOBJ tip in the last set of Guru tips. I’ve added it to my command list in WDSC.

    –Eddie

    Is there any good reason not to consider DDM over IP run across the VLAN between the partitions? You don’t need an 10/100 Mbit Ethernet card to use it (nor do you need to set up AnyNet, the other option). I know you can compile from a DDM source file, for example, and a data refresh would be no harder than running some CPYF, surely?

    –Richard

    When I read your article on the Save-Restore commands, I was very excited. What I found is there is a little configuration on the systems that must done before you can use them with TCP/IP. Here is a document that explains what must be configured. I am glad to share it. I can’t begin to tell you how many of your articles have helped me!

    –Tim

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    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
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    NetManage Positions Software for iSeries Single Sign-On Award Ceremony Another Haines Jewel

    Leave a Reply Cancel reply

Volume 5, Number 11 -- March 16, 2005
THIS ISSUE
SPONSORED BY:

WorksRight Software
iTera
Guild Companies

Table of Contents

  • Rounding Over a Set of Rows
  • More About the SAVRSTxxx Commands
  • Admin Alert: Using OS/400 Autostart Jobs for Repetitious Server Processing

Content archive

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

Recent Posts

  • Public Preview For Watson Code Assistant for i Available Soon
  • COMMON Youth Movement Continues at POWERUp 2025
  • IBM Preserves Memory Investments Across Power10 And Power11
  • Eradani Uses AI For New EDI And API Service
  • Picking Apart IBM’s $150 Billion In US Manufacturing And R&D
  • FAX/400 And CICS For i Are Dead. What Will IBM Kill Next?
  • Fresche Overhauls X-Analysis With Web UI, AI Smarts
  • Is It Time To Add The Rust Programming Language To IBM i?
  • Is IBM Going To Raise Prices On Power10 Expert Care?
  • IBM i PTF Guide, Volume 27, Number 20

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