fhg
Volume 8, Number 12 -- March 26, 2008

One Save File from More than One Library

Published: March 26, 2008

Hey, Ted:

I would like to place objects from several libraries in a save file. When I run a Save Library (SAVLIB) or Save Object (SAVOBJ) command that specifies more than one library, I receive message CPF3789: Only one library allowed with specified parameters. I really don't want a bunch of save files. Is there another way?

--Jackie


A save file can contain other save files, so here's a method you can try. To keep it simple, let's say you want to save the contents of two libraries--MYLIB1 and MYLIB2--to one save file--SOMELIB/SOMESAVF.

1. Create a save file for each library.

CRTSAVF FILE(SOMELIB/MYLIB1)
CRTSAVF FILE(SOMELIB/MYLIB2)

2. Use the appropriate SAVxxx command to load the save files.

SAVLIB LIB(MYLIB1) DEV(*SAVF) SAVF(SOMELIB/MYLIB1)
SAVLIB LIB(MYLIB2) DEV(*SAVF) SAVF(SOMELIB/MYLIB2)

3. Save the save files to the single save file.

SAVOBJ OBJ(MYLIB*) LIB(SOMELIB) DEV(*SAVF) +
          SAVF(SOMELIB/SOMESAVF)

Let's say you want to restore program object DOIT to some system. Here's what you'd have to do.

1. Create the individual save file if necessary.

CRTSAVF FILE(SOMELIB/MYLIB1)

2. Restore the objects from the single save file to the individual save file.

RSTOBJ OBJ(*ALL) SAVLIB(SOMELIB) DEV(*SAVF) +
          SAVF(SOMELIB/SOMESAVF)

3. Use the appropriate restore command to restore objects from the individual save file.

RSTOBJ OBJ(DOITC) SAVLIB(MYLIB1) DEV(*SAVF) OBJTYPE(*PGM)
          SAVF(SOMELIB/MYLIB1) RSTLIB(QTEMP) 

--Ted




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


Sponsored By
PRODATA COMPUTER SERVICES

Push-Pull-Synchronize Data TODAY!

Finally, a product that provides easy and full SQL access to remote databases
from all System i high-level languages. Remote Database Connect gives you
easy access to remote databases from your System i programs.

Share real time data across platforms NOW!

Use RDB Connect today.....download a free trial NOW.

Order today and SAVE $$$!

800.228.6318

sales@prodatacomputer.com

www.prodatacomputer.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

LANSA:  It's Time for 4 days of education at the LANSA User Conference, May 4 – 7, in Orlando
MoshiMoshi:  An Interactive Experience for the System i Community. Coming March 30.
Vision Solutions:  A Rewind Button for i5 Data? Read the Whitepaper


 

IT Jungle Store Top Book Picks

Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
Getting Started with PHP for i5/OS: List Price, $59.95
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
Recession Alert: IBM Gooses System i Maintenance Prices

i5/OS V6R1 Ships, And Shops Begin to Move

Global Services Offers i5/OS V6R1 Migration Help

Disk Array Capacity and Sales Still Growing at Historical Rates

Sun Backs Into the SMB Customer Space

The Linux Beacon
Novell Previews Features in SUSE Linux Enterprise 11

Making the Case for System z10 Server Consolidation

Sun Backs Into the SMB Customer Space

CMDB: A Journey, Not a Destination

Disk Array Capacity and Sales Still Growing at Historical Rates

Four Hundred Stuff
Lawson Debuts New Offerings at User Conference

Open Source Systems Management Works with i5/OS

IBM Places Mobile Computing, Composite Apps on UC Pedestal

ProData Updates Database Utility

Pat Townsend Turns to Managed Services

Big Iron
System z10 Sales: Banking on IBM

Top Mainframe Stories From Around the Web

Chats, Webinars, Seminars, Shows, and Other Happenings

System i PTF Guide
March 22, 2008: Volume 10, Number 12

March 15, 2008: Volume 10, Number 11

March 8, 2008: Volume 10, Number 10

March 1, 2008: Volume 10, Number 9

February 23, 2008: Volume 10, Number 8

February 16, 2008: Volume 10, Number 7

The Windows Observer
Intel and Microsoft Look to Jump Start Parallel Computing

HP Goes Big Iron with Eight-Socket Opteron Box

Intel Talks Up X64, Itanium Roadmaps Ahead of IDF

Dynamics AX 2009 Previewed at Convergence 2008

Kidaro Buy to Boost Microsoft's Desktop Virtualization Strategy

The Unix Guardian
Intel Talks Up X64, Itanium Roadmaps Ahead of IDF

Sun Backs Into the SMB Customer Space

Bye Bye System p and i, Hello Power Systems

As I See It: Bringing the Funny

The HP Pitch on Rehosting i5/OS Applications on Integrity

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

THIS ISSUE SPONSORED BY:

ProData Computer Services
SPSS
Guild Companies


Printer Friendly Version


TABLE OF CONTENTS
One Save File from More than One Library

Performance Advice from a Mysterious Friend, Part 2

Admin Alert: How System i Boxes Impersonate Each Other, Part 1

Four Hundred Guru

BACK ISSUES

From the IT Jungle Forums
Data Type *DEC in MSGF

How to identify when the OS upgrade was performed ???

FTP in arrival sequence

S36 environment problem

QSH won't write in batch!





 
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