Midrange News for the IBM i Community


Posted by: clbirk
transferring ifs from one to another -different topic
has no ratings.
Published: 23 Aug 2012
Revised: 23 Jan 2013 - 1853 days ago
Last viewed on: 19 Feb 2018 (3452 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

transferring ifs from one to another -different topic Published by: clbirk on 23 Aug 2012 view comments(2)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: DaleB
Premium member *
Reading, PA
Comment on: transferring ifs from one to another -different topic
Posted: 5 years 5 months 29 days 7 hours 35 minutes ago

SAVOBJ and RSTOBJ work on objects in a library.
SAVLIB and RSTLIB work on libraries and objects contained in those libraries.
SAVDLO and RSTDLO work on documents and folders.

SAV and RST work on IFS directories and files. Use OBJ, PATTERN, and SUBTREE to specify which objects; typically I only use OBJ.

The main difficulty, if you want to call it that, is naming the device. Device de!--script--ions for tape (and optical) are type *DEVD in library QSYS, so DEV('/QSYS.LIB/TAP01.DEVD'). A save file would probably be in some other library, so more like DEV('/QSYS.LIB/MYLIB.LIB/MYSAVF.FILE').

When you use SAV and RST, attributes like the CCSID will be preserved. If you use a save file, you can FTP the save file, just remember to do it in BINary.

Posted by: DaleB
Premium member *
Reading, PA
Comment on: transferring ifs from one to another -different topic
Posted: 5 years 5 months 29 days 7 hours 29 minutes ago
Edited: Thu, 23 Aug, 2012 at 08:41:27 (2006 days ago)

An alternative to save files, for IFS objects, is to use the jar utility. jar is equivalent to zip and unzip. You need to have QShell installed.