Q

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?

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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close