On Dec 1, 2010, at 11:13, Mark Pace wrote:

> Yes - write your FTP commands in a file.
>
> 'FILEDEF INPUT DISK CP3K FTPINPUT A'
>
Ah!  I knew about that for z/OS.  I didn't know it works likewise
for CMS.  Presumably after such as:

    'callpipe hole' ,
        '| append literal' userid password ,
        '| append literal cd' whereever ,
        '| append literal dir' ,  /* but what if it's not a CMS FS?  */
        '| append literal quit' ,
        '| > CP3K FTPINPUT A' ,
        /* No more input.  */

I just need to keep my fileIDs unique.  I think I can extract
the stage name for that.  If it's even a concern.

> 'PIPE (name CP3K.EXEC:10)',
>
>   '|command FTP 10.6.0.10 (EXIT',    /* go get a directory listing  */
>
>   '| inside  /150/ /226/ ',
>
>   '| stem ftpfile.'

    address COMMAND 'ERASE CP3K FTPINPUT A'

Thanks,
gil

Reply via email to