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

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


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!


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

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page