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



Hey Mike,

Note: I am on V5R4

Display of the command for FTP in QSYS shows;

** Screen Data **

Command  . . . . . . . :   FTP           Library  . . . . . . . :   QSYS

Target command . . . . . . . . . . . . :   FTP
  Library  . . . . . . . . . . . . . . :     QTCP
Text . . . . . . . . . . . . . . . . . :   Start TCP/IP File Transfer

Current proxy chain  . . . . . . . . . :   QSYS/FTP
                                           QTCP/FTP

** End Screen Data **

Display of the command in QTCP shows in part;

** Screen Data **

Mode(s) in which valid . . . . . . . . :   *PROD
                                           *DEBUG
                                           *SERVICE
Where allowed to run . . . . . . . . . :   *IMOD      *BMOD      *IREXX
                                           *BREXX     *BPGM      *IPGM
                                           *EXEC      *INTERACT  *BATCH
** End Screen Data **

CL Program running the FTP with script;

START:      PGM
            DCL        VAR(&RMTSYSTEM) TYPE(*CHAR) LEN(200) +
                         VALUE('ptf.boulder.ibm.com')
            OVRDBF     FILE(INPUT) TOFILE(JIM/FTPSCRIPT2)
            OVRDBF     FILE(OUTPUT) TOFILE(JIM/FTPOUTPUT)
            CLRPFM     FILE(JIM/FTPOUTPUT)
            FTP        RMTSYS(&RMTSYSTEM)
            DLTOVR     FILE(INPUT)
            DLTOVR     FILE(OUTPUT)
END:        ENDPGM

PF FTPSCRIPT2 has the entries;

user  userid password
namefmt 1
lcd /ptfcatalog
ascii
cd /IBM/path/list/c
get ftpSF99539.txt
get ilstSF99539.txt
binary
get SF99539_1.bin
get SF99539_2.bin
get SF99539_3.bin
get SF99539_4.bin
get SF99539_5.bin
get SF99539_6.bin
quit



On 10/4/06, Mike Cunningham <MCUNNING@xxxxxxx> wrote:

I do not think that error is coming from the script. All OS/400 commands
can be defined as to what envorinments they can run in. Do a DSPCMD of
the FTP command for an example

Where allowed to run . . . . . . . . . :   *IMOD      *BMOD      *IREXX

                                           *BREXX     *BPGM      *IPGM

                                           *EXEC      *INTERACT  *BATCH


If *BATCH was not listed here and you tried to use the FTP command in
batch you would get that error. I assume you must have a CL program that
does the override database commands and they the FTP command. What other
commands are in the CL program?

>>> jlcrosby@xxxxxxxxxxxxxxxx 10/4/2006 4:06:09 PM >>>

What program is it that's issuing that message?

I do FTP in batch all day long.

--
Jeff Crosby
Dilgard Frozen Foods, Inc.
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531

The opinions expressed are my own and not necessarily the opinion of
my
company.  Unless I say so.


> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx
> [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jim Essinger
> Sent: Wednesday, October 04, 2006 3:49 PM
> To: midrange-l@xxxxxxxxxxxx
> Subject: Batch FTP Fails, Interactive works - what to change?
>
> Greetings all,
>
> I am new to FTP, and I am tying to set up a batch FTP using a
> script file.
> When I run interactive - the FTP works fine.  I am not
> prompted for anything, it just starts loading the files from
> the remote system to my IFS
> directory,   When I submit to batch I get a message that
> "Program contains
> commands only valid when run interactively."
>
> Here are the entries from my script file;
>
> user  userid password
> namefmt 1
> lcd /ptfcatalog
> ascii
> cd /ibmpath/to/ptf/images/c
> get ftpSF99539.txt
> get ilstSF99539.txt
> binary
> get SF99539_1.bin
> get SF99539_2.bin
> get SF99539_3.bin
> get SF99539_4.bin
> get SF99539_5.bin
> get SF99539_6.bin
> quit
>
>
> I have tried with and with out a blank line to start, and
> both fail on batch.  I look in the log file, and there are no
entries.
>
> Anyone run into this before and/or can help me?
>
>
> Thanks!
> --
> Jim Essinger
> Senior Programmer/Analyst
> UnLtd / SLFI / IMA
> PO Box 730
> Fruitland, ID  83619
> 208-452-4058 x133
> --
> This is the Midrange Systems Technical Discussion
> (MIDRANGE-L) mailing list To post a message email:
> MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change
> list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting,
> please take a moment to review the archives at
> http://archive.midrange.com/midrange-l.
>
>


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.





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.