On Wed, 5 Aug 2015 11:18:17 -0500, John McKown wrote:
>On Wed, Aug 5, 2015 at 9:13 AM, Bill Ashton wrote:
>>
>> I will try the Unix directory, as I can't rename the source files (I have
>> read only access).
>>
If you really need them in a PDS (why?), you can:
o rename them ad lib. in the UNIX directory, then FTP z/OS UNIX to z/OS PDS
o Explore the SUFFIX() option of the TSO OGETX command: z/OS 2.1.0>z/OS UNIX
System Services>z/OS UNIX System Services Command Reference>TSO/E
commands>OGETX - Copy z/OS UNIX files from a directory to an MVS PDS or PDSE
>I think this is your best bet. Once in z/OS, you can do something like the
>following at a UNIX prompt.
>
>for i in *.BIN;do cp -T ${i} "//my.pds(${i%.BIN}";done #copy members to PDS
>Too bad your PC is not running Linux or some other UNIX variant. You could
>do the following:
An alternative is Cygwin: of good quality and suitable for everyday use.
>
>{echo "??userid??"
>echo "??password??"
>echo "lcd my.pds"
>CD "the file server directory"
>for i in *.BIN;do
>echo "put ${i} ${i%.BIN}"
>done
>echo "quit"
>} | ftp -v zos.server
>
If the OP has a writeable directory on the originating platform, he
might symlink to the files with suitable names, then use FTP.
>Of course, replace ??userid??, ??password?? and my.pds with the proper
>values. Perhaps a Windows guru can fake up a PowerShell equivalent.
>
Or use SFTP with SSH authentication.
Did the OP identify the OS of the server?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN