× 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.



Peter,

I think you'd have to do a RTVDTAARA/CHGDTAARA pair to copy the contents. If you're worried about data area changes during the copy you could lock the data areas during the copy with ALCOBJ. You could put this in a separate CL program and write a Command front end to make your own single command to do the copy.

Paul

Principal Programmer Analyst
IS Supply Chain/Replenishment
508-253-3934

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter_Vidal@xxxxxxxx
Sent: Friday, October 01, 2010 8:36 AM
To: midrange-l@xxxxxxxxxxxx
Subject: How to copy a data area (with one simple command)?

Hi list!

I need to know if it is possible to copy the contents of an existing data
area into another existing data area (same object attributes) and all in
one single command.

TIA and HAPPY FRIDAY to all!


PETER VIDAL
PALL CORPORATION
SR System Analyst | WH Application Development
10540 Ridge Rd., Suite 203, New Port Richey, FL 34654-5111
727-815-3104 | Fax: 727-815-3120 | www.pall.com

"Imagination is more important than knowledge"
Albert Einstein (1879 - 1955)

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.