Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6140091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:04:24+00:00 2026-05-23T18:04:24+00:00

GIVEN: I am a novice on the AS400 platform, at best PROBLEM: We need

  • 0

GIVEN: I am a novice on the AS400 platform, at best

PROBLEM: We need to transfer variable width, pipe-delimited ASCII files from a Windows 2003 server to an FTP server running on V6R1. The files arrive and are properly translated to EBCDIC, but they are huge. A 3.5Mb file becomes a 200+ Mb member. A 9Gb file fails because we bump up against some manner of quota.

INTERESTING FACT: When done in binary mode (no translation), the file appears on the server side as FILENAME.FILE with one member named FILENAME.MBR. The transfer size is correct, but the file is not readable by native tools because of the ASCII encoding.

INTERESTING FACT: This has been tried on three V6R1 machines with the same results. So I’m fairly certain this is normal behavior that I just do not understand well.

My gut feeling here is that the server is extending the file as it adds new rows to it — but I really don’t have a better guess that that at this point. Has anyone seen this behavior before, and do you know what it takes to avoid it?

Thanks in advance to anyone taking the time to contribute. I do appreciate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:04:25+00:00Added an answer on May 23, 2026 at 6:04 pm

    The IBM i FTP server can either deal with objects in the “classic” QSYS.LIB file system (where you have objects such as files residing in a single layer of libraries) or stream files on the Integrated File System (a hierarchical file system similar to what’s used in Windows and Unix).

    It sounds like you’re sending the file into a Physical File (PF) in the QSYS.LIB file system. A PF has fixed-length records, so you’re probably seeing some slack space at the end of most records. You can see how many records are in the PF and the record length using the DSPFD CL command.

    If you want to send the file to a PF, the FTP server defaults to name format 0, which is the QSYS.LIB file system. In this mode you’d send to a PF such as this:

    SEND myfile.txt DMCLIB/MYFILE.MYMBR
    

    If you want to send the file to a stream file, you have to first send a command to the FTP server:

    QUOTE SITE NAMEFMT 1
    

    This switches the FTP server into IFS naming mode. As a result, when you send the file you’ll need to specify what directory you want to send it to. For example:

    SEND myfile.txt /home/dmc/myfile.txt
    

    If you’re sending up variable-length records, that IFS stream file will have no slack as you’d see in a Physical File.

    If the pipe-delimited file contains a single layout, you can use the CPYFRMIMPF CL command to map it into a PF with an actual record format, which is probably the more “native” way to do it. If it’s a more complex file format, however, you might have to write an ILE RPG program to convert the stream file into whatever form it needs to be in. Here are some great tutorials on accessing stream files from ILE RPG.

    Also note that you can see some interesting help info from the IBM i FTP server using the QUOTE HELP command while connected from a command-line FTP client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given the following problem : Given the directed graph G=(V,E) with the weight function
Given the following LINQ to SQL query: var test = from i in Imports
I am a novice jQuery user and i need some help in implementing a
I am a complete novice to Drupal and module integration. I am given a
I'm a novice Android developer. I used the code given at Google's Android developer
Given a classic controller action. Have a look at the MARK. I need to
Given a specific DateTime value, how do I display relative time, like: 2 hours
Given a Python object of any kind, is there an easy way to get
Given a select with multiple option's in jQuery. $select = $(<select></select>); $select.append(<option>Jason</option>) //Key =
Given a DateTime representing a person's birthday, how do I calculate their age in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.