[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FTPAPI - Translation issue.



Hi there,

When I ftp_put an IFS file into an iSeries (V5R4) from another iseries,
the CCSID is set to 819 even though the default CCSID from both machines
is set to 37.

I tried using ftp_quote to change the type to 37 without success. I even
tried changing CRTCCSID to both *USER and *SYSVAL again using ftp_quote
but still no luck.

The code is listed below. Any help is appreciated. If you need additional
information, please let me know.

Thank you.

ftp_binaryMode(gSess: *on);

// Force coded set to 37
if ftp_quote(gSess: 'SITE CRTCCSID *USER') < 0;
   gMsg = ftp_errorMsg(gSess);
endif;
if ftp_quote(gSess: 'TYPE C 37') < 0;
   gMsg = ftp_errorMsg(gSess);
endif;

// FTP Put file
if ftp_put(gSess:lClientOutXML:lOutXML) < 0;
   gMsg = ftp_errorMsg(gSess);
endif;

ftp_quit(gSess);









-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------