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



For anyone that looked at this the solution was related to the OVRDBF and
DLTOVR commands

This document explains the issue;
https://www.ibm.com/support/pages/problems-ile-batch-ftp-programs-and-activation-groups

The OVRDBF required; OVRSCOPE(*CALLLVL)

And the DLTOVR needed to be change to; LVL(*)

Cheers


Don Brown






From: "Don Brown via MIDRANGE-L" <midrange-l@xxxxxxxxxxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxxxxxxxx
Cc: "Don Brown" <DBrown@xxxxxxxxxx>
Date: 11/01/2020 05:46 PM
Subject: ftp command fails in batch bound program
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxxxxxxxx>



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)
INTNETADR('XXX.130.172.130')

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;
QSYS/FTP
QTCP/FTP

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;
*IMOD *BMOD *IREXX
*BREXX *BPGM *IPGM
*EXEC *INTERACT *BATCH

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-Ups:
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.