Ask the Expert

Options when file names are longer 10 characters

I need to send -- via FTP -- a file in a directory called MIKROS : /MIKROS/MSD08042005.txt on another iSeries system in /QSYS.lib/HOSTIERJ.lib. The problem is: the file on the remote system must have the same name, MSD08042005.txt, as the file on the local system. How can I do that?

The files in QSYS are limited in length to 10 characters, so your proposed name is not acceptable in QSYS.LIB. Your options are:

  1. Use namefmt 1 and send the file to the remote as 400 IFS; or
  2. Truncate the name (or rename it ) during the ftp process.

If the target file in the QSYS.LIB is to be somehow accessed by SQL you may consider using an alias (i.e., create alias MSD08042005 for file with name D08042005).

This was first published in September 2005