On Tue, 20 Aug 2013 08:53:32 -0400, Dazzo, Matt wrote:
>The ftp commands provided by IBM below once worked with zos1.11 but now on
>zos1.13 it does not, can't be 100% sure but I believe that's when it stopped
>working. I did the upgrade from 1.11 to 1.13 so I know there were no changes
>made to the TCPIP config files. I tried adding in keyword SITE LISTSUBDIR but
>I got the same error.
>
>What I have to do to get the files is modify the commands to cd into SMPPTFIN
>and SMPHOLD and do a get on the file in each folder. What am I missing here?
>tks Matt
>
>
>cd 2013081959238/PROD
>lcd /u/st1mat/IBM/
>binary
>lmkdir U01302168
>lmkdir U01302168/SMPPTFIN
>lmkdir U01302168/SMPHOLD
>lcd U01302168
>mget * (REPLACE
>
At this point, I'd suggest "mget GIM* (REPLACE" to get the
GIMPAF.XML and GIMPAF.XSL files but ignore the SMP* directories.
But wouldn't it be great if you could get the whole ensemble in a
pax envelope, and extract it with a single command on the target
system? Does your waystation system support pax, or equivalently,
tar?
I've done things similar to (from memory; not verbatim tested):
ssh waystation "tar -cf - U01302168" |
iconv -f IBM-1047 -t ISO8859-1 | # I hate EBCDIC!
tar -xvf -
>lcd SMPPTFIN
>mget SMPPTFIN/* (REPLACE
>lcd ../SMPHOLD
>mget SMPHOLD/* (REPLACE
>quit
>/*
> ...
>EZA1736I mget * (REPLACE
> ...
>150 Opening BINARY mode data connection for GIMPAF.XML.
>226 Transfer complete.
> ...
>150 Opening BINARY mode data connection for GIMPAF.XSL.
>226 Transfer complete.
>EZA1617I 4800 bytes transferred in 0.320 seconds. Transfer rate 15.00
>Kbytes/se
>EZA2554W Get fails: /u/st1mat/IBM/U01302168/SMPHOLD is a directory.
>EZA1735I Std Return Code = 22000, Error Code = 00018
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN