Paul So, what you are suggesting goes something like the following perhaps:
/* REXX */ /**/ QUEUE "Userid" QUEUE "Password" QUEUE "CD /DIROFINTEREST" QUEUE "GET thefirstfile" QUEUE "QUIT" "FTP 123.456.78.9 (EXIT" SAY 'FTP OF 'thefirstfile' RETURN CODE=' RC /**/ QUEUE "Userid" QUEUE "Password" QUEUE "CD /DIROFINTEREST" QUEUE "GET thesecondfile" QUEUE "QUIT" "FTP 123.456.78.9 (EXIT" SAY 'FTP OF 'thesecondfile' RETURN CODE=' RC /**/ QUEUE "Userid" QUEUE "Password" QUEUE "CD /DIROFINTEREST" QUEUE "GET thethirdfile" QUEUE "QUIT" "FTP 123.456.78.9 (EXIT" SAY 'FTP OF 'thethirdfile' RETURN CODE=' RC /**/ and so on, which, if more extensive, clearly calls out for a looped structure - but I won't spoil Lucy's fun by trying to work that out for her! Chris Mason ----- Original Message ----- From: "Paul Gilmartin" <[EMAIL PROTECTED]> Newsgroups: bit.listserv.ibm-main To: <[email protected]> Sent: Friday, 26 January, 2007 3:28 AM Subject: Re: Condition code checking for FTP > On Thu, 25 Jan 2007 16:10:25 -0800, Greg Grimm wrote: > > > > I 'get' two files. > > The first step is IKJEFT01 - it runs the following REXX > > ... > Heck, if you're writing an EXEC, do it all in one step, with an invocation > of FTP to GET each file and omit the DIR. This avoids numerous problems: > > o Authorization: DIR shows the file exists, but GET fails because > you haven't sufficient permission on the server system to read it. > > o Timing: the DIR step reports the file exists, but another process > deletes it before the GET, which fails. > > o Syntactic: The format of the reply from DIR on the remote system is > different from what you expect. > > o Structural: the files to be fetched exist in different directories, > and a single call to DIR doesn't show them all. > > ... and it's less code. > > -- gil > -- > StorageTek > INFORMATION made POWERFUL ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

