× 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.



Hello,

On 1/19/2012 1:26 PM, Jeff Young wrote:
I did not make myself clear.
I was refering to the sFTP commands being placed in a flat file and then
copied to the IFS for use as a batch file in sFTP.

Since you're already using QShell to launch the sftp command, wouldn't it be easier to use QShell to write the script as well? Just a thought.


The data file is being created as a flat file with the pipe delimiter. If
I use the CPYTOIMPF command to place the file in the IFS, then I should be
able to send that file to the vendor.

Wouldn't it make more sense to use CPYTOSTMF?

Just in case you are new to the IFS, I'll explain:

-- CPYTOIMPF is for files that have fields defined in them.
It reads the data on a field-by-field basis, converting
each individual field to human-readable text, and
optionally inserting delimiters.

-- CPYTOSTMF is for files that don't have fields defined.
(aka "flat" files.) It works on a record-by-record
basis, and treats the entire record as a single character
string.

In an attempt to prevent mistakes, CPYTOSTMF verifies that your program doesn't have fields defined, and will refuse to work on files that have fields in them. (Except SRCPFs.)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.