Can anyone shed any light as to why the FTP command will work in a CL
program but not in a bound program.

I had a CL Program that ran a FTP script and I needed some date
calculations so I added calls to CEELOCT and CEEDATE and some service
program procedures

Now to compile I create a module then create the program from that module
including the binding directory for the service program.

Now when the FTP command executes I get error CPD0772 Program contains
commands only valid when run interactively.

The line generating that error is FTP RMTSYS(*INTNETADR)

System is V7R3 and fairly recent (November 2019) on PTF's

If I call the program interactively it works fine but running in batch is
where I get this error.

The FTP command when dspcmd shows two proxy chains;

If I do dspcmd qsys/ftp I see the same proxy chain

If I do dspcmd qtcp/ftp I see the command is allowed to execute in;

So I am obviously missing something - any ideas ?

Thank you for any suggestions

Don Brown

This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 by 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.