|
Another possibility is not looking for those messages at all, but
simply get
a list of the file members afterward.
TAATOOLS has a RTVMBRLST command and I'm sure there's an API for that.
This
presumes there were no members beforehand (or you got a list of the
'befores'). If there could have been members beforehand, this is
probably
more work.
On Fri, Aug 19, 2011 at 3:21 AM, Booth Martin <booth@xxxxxxxxxxxx>
wrote:
Would the information you want be in the FTP log file in your OUTPUTfile?
script
fwiw; probably not useful for what you are describing,
http://www.martinvt.com/Code_Samples/FTP_Utility/ftp_utility.html
(With minimal tweaking, it can also run silent.)
On 8/18/2011 11:59 PM, sjl wrote:
I am prototyping a program which does batch FTP.
[ Cannot use FTPAPI... ;-( ]
1) Bound CL program A calls RPGIV program B which builds the FTP
into the
the source file.
2) Then program A calls bound CL program C, which overrides INPUT
script usesmember containing the FTP script built by program B. The FTP
library,MGET FILEXXX.* to get multiple files beginning with the characters"FILEXXX"
from the remote server.
Example of the remote files being retrieved:
FILEXXX.1.A000001
FILEXXX.2.A000002
...
The result of the MGET is a file named FILEXXX in the current
withuse the
two members:
A000001 and A000002.
So far, so good.
In order to capture the file and member names received, I want to
messages thatRCVMSG command in CLLE program C to retrieve the completion
to workappear in the job log.CPC7305
The specific messages in which I am interested are the CPC7301 and
messages issued by the FTP processor, but I cannot seem to get it
loop:properly - I never receive these completion messages in my RCVMSG
QDDCPF
CPC7301 Completion 00 08/18/11 20:11:16.133800
6QSYS 0567 QC2SYS QSYS *STMTQC2SYS
To module . . . . . . . . . :
To procedure . . . . . . . :system
Statement . . . . . . . . . :
FILEXXXMessage . . . . : File
6created in library SJLFTP.QDDCPFM
CPC7305 Completion 00 08/18/11 20:11:16.157120
QSYS 005B QC2SYS QSYS *STMTQC2SYS
To module . . . . . . . . . :
To procedure . . . . . . . :system
Statement . . . . . . . . . :
A000001Message . . . . : Member
6added to file FILEXXX in SJLFTP.QDDCPFM
CPC7305 Completion 00 08/18/11 20:11:16.264264
QSYS 005B QC2SYS QSYS *STMTQC2SYS
To module . . . . . . . . . :
To procedure . . . . . . . :system
Statement . . . . . . . . . :
A000002Message . . . . : Member
similar?added to file FILEXXX in SJLFTP.
Does anyone have a working example of code which does something
mailing list
Regards,
SJL
--
Booth Martin
802-461-5349
http://www.martinvt.com
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
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.
--
Jeff Crosby
VP Information Systems
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531
www.dilgardfoods.com
The opinions expressed are my own and not necessarily the opinion of my
company. Unless I say so.
--
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 mailing list archive is Copyright 1997-2025 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.