× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Raj,

I'm cross posting to midrange-l list - please reply there, as this doesn't
have much to do with rpg (yet ;)

You answers are still a little vague.

I'm not sure what the desired end result is.

do you want to end up FTPing 3 separate files?  or one file with all record
types in it?

if 3 files, you could do 3 CPYFs fmtopt(*nochk), including only the
appropriate record type into 3 different flat files (CRTPF, specifying a
record length, no source member) and ftping those three files.

if the end result is a single file with variable length records, it gets a
little more complicated.  you may need to write a program to create these
records dynamically, using the IFS c functions.   if that's the case,
search the RPG400-l archives for 'output streamfile' or 'IFS C' - that
might get you started.

hth,

rick

---------original message-----------
Rick,

The rquirement is to send the details of consignments in three
different record formats.

Header  -->  Length of rcord is 67

Trailer -->  Length of rcord is 66

Detail  -->  Length of rcord is 200

All these details as of now are stored in single file but the client
needs in the above mentioned split when they receive it. They want the
the file to be in the above mentioned record Length. At Present we
have a copy of the file in the IFS folder as a CSV format.

I need to get around this issue.

Thanks
Regards
Raj


>From: "Richard B Baird" <rbaird@esourceconsulting.com>
>Reply-To: rpg400-l@midrange.com
>To: rpg400-l@midrange.com
>Subject: Re: FTP Issue
>Date: Fri, 6 Dec 2002 07:39:57 -0500
>
>
>Raj,
>
>your question is a little vague.  please elaborate exactly what you are
>trying to do.
>
>the iseries ftp server/client works well with both native and IFS files.
>but they work a little differently
>
>is(are) the file(s) native db2/400 or streamfile(s) on the IFS?
>
>when you say there are 3 different record lengths, what do you mean?  3
>different 400 files, combined into one?
>
>do the records have to be in a particular order (header, detail, trailer,
>for instance) by some key field?
>
>rick
>
>-------original message---------
>Dear All,
>
>I need to transfer three different record length precisely to that
>format across to another Server.
>
>1) Is it possible to do it by using only one file?
>2) Is it possible to transfer three different record Length on to the
>    Same file in an IFS folder?
>3) Is it possible to FTP the the file in one of the IFS folder through
>    the AS/400?
>
>I know the FTP process on an AS/400 to send files from AS/400 library
>but not from the IFS folders.
>
>Thanks in advance.
>
>Regards
>Raj



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.