Thank you. I did not consider this and I like the fact that I do not
have to interpret the command string at every call. That is basically
why I was looking for some API that will move a file, without changing
the attributes.
Chris Bipes
Director of Information Services
CrossCheck, Inc.
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Thursday, November 12, 2009 1:57 PM
To: Midrange Systems Technical Discussion
Subject: Re: opendir() - THE ANSWER
Hi Chris,
Ok I am just going with using the system API and the MOV command. It
works.
I would give some thought to using the CL program approach instead of
the system() API. There are a few reasons why:
a) Special characters in the path names... In particular, if you have
any single quotes in the pathnames, they have to be doubled-up with the
system() approach. With a CL program, you wouldn't have to.
b) Performance. With a CL program, part of the interpretation of the
command string is done at compile-time. With system() you're doing it
at run-time.
These considerations may not be an issue in your shop, I don't know. I
just wanted to be sure that you had thought about them.
As an Amazon Associate we earn from qualifying purchases.