× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



SimLibCopyObject is only part of the puzzle. I suspect you are wanting
to copy an entire item, not just the object.
You'll need a whole bunch of calls:

Assuming you know the item id you want to copy:

SimLibCreateItem - creates a new target item
SimLibGetItemAffiliatedTOC - gets a list of the objects in the source
item
SimLibCopyObject - call for each object in the source item
SimLibStoreObject - call for each new object to insert into the target
(new) item

AFAIK IBM never did produce a usable set of RPG prototypes for these.

Since CM is a stable product and is unlikely to ever change, a lot of
the time we just read and write the tables directly. For the most part
you just need to copy all the columns from the pertinent existing
EKD0310, EKD0317 and EKD0312 rows, just changing the DOCID values and
DOCID relationships. New DOCIDS can be pretty much any 13 character
value. IBM only produces new ones that start with 'B'. You can copy the
file object with CPY. It's a bit more complicated if you need to store
on optical (need to write EKD0111 and EKD0371 rows).

Cheers,
Randy
-----Original Message-----

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.