On 26/01/2010, at 3:27 AM, Bob P. Roche wrote:
I am working on a web page to save attachments to verify a claim.
Due to
the cost of disk, I would like to store the attachments on a linux
server
mounted over a directory on our system. we are currently at v5r4m5.
When I
try to move/copy a JPG to eh mounted system I keep getting an error:
The CCSID of the target file could not be set to match the CCSID of
the
source file.
I am doing a straight move or copy,
MOVE OBJ('/sourcedir/pic.jpg') TOOBJ('/destdir/pic.jpg')
Is this just not possible due to CCSID support?
Is that message sent as an exception (*ESCAPE, etc.) or as a *DIAG
message? It appears to me that the message does not indicate a failure
of the copy or move--merely that the system could not set the CCSID on
the target file. Given that you have mounted a Unix/Linux file system
over the /destdir directory and that Unix/Linux does not have the
concept of externally tagging files with a CCSID the message seems to
make sense. I would expect it is a warning and the copy or move has
completed successfully. Is that not the case?
CPFA098 (the message ID of the message you reference) is not listed as
an exception message in the help text for either COPY or MOVE so I
expect it is sent as a diagnostic message. It's presence in the job
log does not necessarily indicate a failure of the entire copy/move
operation.
If the copy/move is successful (i.e., the new object is created) but
an exception is sent indicating that it failed then monitor for that
exception and determine the cause of failure. Either monitor for
CPFA098, if it is indeed an exception, and ignore or monitor for the
actual exception (possibly CPFA0BB for COPY and CPFA0B8 for MOVE) and
retrieve the previous diagnostic messages and check those for CPFA098
which can then be ignored.
I finally have the *NFS
mount working besides this. I can create directories. in it. Just
trying
to get the files off a web page. With out the NFS server mounted, I
can
save the file to the same directory.
Without an NFS mount you are coping/moving into a real OS/400
directory so the CCSID support works because it is a local copy/move
instead of a remote copy/move.
Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists
http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.