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


  • Subject: RE: CL variables in FTP commands
  • From: jerickson@xxxxxxx
  • Date: Thu, 25 Jan 2001 15:35:47 -0800

Title: RE: CL variables in FTP commands

I've written similar processes in RPG where it call QCMDEXC to retrieve information to build the FTP input file of commands, then submit the FTP CLP job to do the overrides, etc.


Regards,
Jon A. Erickson
Sr. Programmer Analyst
800.COM Inc.
1516 NW Thurman St
Portland, OR  97209-2517
 
Direct: 503.944.3613
Fax: 503.944.3690
Web: http://800.com



-----Original Message-----
From: Patrick Townsend [mailto:patownsend@patownsend.com]
Sent: Thursday, January 25, 2001 1:43 PM
To: MIDRANGE-L@midrange.com
Subject: Re: CL variables in FTP commands


Adam,

FTP input in batch mode is normally done by overriding a file for input. We
support substitution in our product. If you are writing your own you could
probably do the same with a little creative coding.

Patrick
---
IBM AS/400 communications, FTP automation, and eCommerce
software and consulting services.

http://www.patownsend.com

----- Original Message -----
From: "Ray, Adam" <aray@fhp.org>
To: <MIDRANGE-L@midrange.com>
Sent: Thursday, January 25, 2001 12:55 PM
Subject: CL variables in FTP commands


> Good afternoon everyone.
> I was wondering if it is possible to use CL variables in a batch FTP
> session. I need to transfer a file from our AS/400 to one of our NT
servers
> without any user intervention. The file to be put on the server is to be
> named using the files last change date. So the PUT command would look
> something like this
> put mylib/myfile.mymbr mmddyyyy.raw
>
> I know I can get the files change date using the CL command RTVOBJD,
> something like this:
> RTVOBJD    OBJ(MYLIB/MYFILE) OBJTYPE(*FILE) CHGDATE(&CHGDATE)
> And I know the FTP commands would be contained in a source physical file.
>
> So can I use the CL variable &CHGDATE in the PUT command contained in the
> PF? My guess is it would look like this:
> put mylib/myfile.mymbr &CHGDATE.raw
>
> Can you do that? If not, is there another way to do this? Any input is
> appreciated.
>
>
> Adam Ray
> Applications Programmer
> Family Health Partners
> Voice: 816-855-1822
> Fax: 816-855-1890
> Cell: 913-221-8685
> Email: aray@fhp.org <mailto:aray@fhp.org>
>
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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