To execute local commands inside an as400 ftp client session, use the ! command aka syscmd

get src1 qcblsrc.src1
! CHGPFM FILE(library/qcblsrc) MBR(src1) SRCTYPE(cbl)

Shalom Carmel
----------------
www.hackingiseries.com



----- Original Message -----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael Rosinger
Sent: Friday, November 10, 2006 4:31 PM
To: midrange-l@xxxxxxxxxxxx
Subject: FTP question

List,

I have an FTP job that will transfer a COBOL copybook from a VSE/ESA
system to a library/sourcefile on the iSeries. The process works fine,
but when the sourcefile member is first created the member "type" is
undefined. Is there an FTP command I can issue to set the source type?

I know that I can add a second step after the FTP and issue a command
remotely to do this:

       CHGPFM FILE(library/sourcefile) MBR(member) SRCTYPE(type)

but I was hoping to accomplish the entire task via FTP. TIA!

--
Regards,

Michael Rosinger
Systems Programmer / DBA
Computer Credit, Inc.
640 West Fourth Street
Winston-Salem, NC  27101
336-761-1524
m rosinger at cciws dot com




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.